posts -> blog
This commit is contained in:
parent
1692e29d21
commit
2b833a6066
159 changed files with 20 additions and 10 deletions
10
Rules
10
Rules
|
@ -18,13 +18,13 @@ preprocess do
|
|||
@items.delete_if do |item|
|
||||
ident = item.identifier.to_s
|
||||
|
||||
next unless ident.to_s.start_with?('/posts/')
|
||||
next unless ident.to_s.start_with?('/blog/')
|
||||
|
||||
!ident.start_with?('/posts/16-17/')
|
||||
!ident.start_with?('/blog/16-17/')
|
||||
end
|
||||
end
|
||||
|
||||
@items.find_all('/posts/**/*').each do |i|
|
||||
@items.find_all('/blog/**/*').each do |i|
|
||||
year_str = %r{/(\d\d)-\d\d/}.match(i.identifier).captures[0]
|
||||
academic_year = year_str.to_i
|
||||
|
||||
|
@ -105,7 +105,7 @@ end
|
|||
#
|
||||
# POSTS
|
||||
#
|
||||
compile '/posts/**/*' do
|
||||
compile '/blog/*/*' do
|
||||
layout '/blogpost.md'
|
||||
filter :kramdown
|
||||
|
||||
|
@ -114,7 +114,7 @@ compile '/posts/**/*' do
|
|||
layout '/default.*'
|
||||
end
|
||||
|
||||
compile '/posts/**/*', rep: :text do
|
||||
compile '/blog/*/*', rep: :text do
|
||||
filter :kramdown
|
||||
filter :strip_html
|
||||
end
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
text-align: justify;
|
||||
}
|
||||
|
||||
html, .footer {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.hero {
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue