posts -> blog

This commit is contained in:
Lorin Werthen 2016-10-31 13:48:39 +01:00
parent 1692e29d21
commit 2b833a6066
No known key found for this signature in database
GPG key ID: F11FFC921E0E08E0
159 changed files with 20 additions and 10 deletions

10
Rules
View file

@ -18,13 +18,13 @@ preprocess do
@items.delete_if do |item| @items.delete_if do |item|
ident = item.identifier.to_s 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
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] year_str = %r{/(\d\d)-\d\d/}.match(i.identifier).captures[0]
academic_year = year_str.to_i academic_year = year_str.to_i
@ -105,7 +105,7 @@ end
# #
# POSTS # POSTS
# #
compile '/posts/**/*' do compile '/blog/*/*' do
layout '/blogpost.md' layout '/blogpost.md'
filter :kramdown filter :kramdown
@ -114,7 +114,7 @@ compile '/posts/**/*' do
layout '/default.*' layout '/default.*'
end end
compile '/posts/**/*', rep: :text do compile '/blog/*/*', rep: :text do
filter :kramdown filter :kramdown
filter :strip_html filter :strip_html
end end

View file

@ -2,6 +2,10 @@
text-align: justify; text-align: justify;
} }
html, .footer {
background-color: white;
}
.hero { .hero {
background-position: center; background-position: center;
background-size: cover; background-size: cover;

Some files were not shown because too many files have changed in this diff Show more