tiny cleanup
This commit is contained in:
parent
7e3c2d5a6c
commit
e057d0adf3
|
@ -8,7 +8,7 @@ module PreprocessHelper
|
||||||
|
|
||||||
def update_blog_attributes
|
def update_blog_attributes
|
||||||
@items.find_all('/blog/**/*').each do |i|
|
@items.find_all('/blog/**/*').each do |i|
|
||||||
year_str = %r{/(\d\d-\d\d)/}.match(i.identifier).captures[0]
|
year_str = i.identifier.to_s[/\d\d-\d\d/]
|
||||||
|
|
||||||
attr_hash = {
|
attr_hash = {
|
||||||
# Tag all posts with article (for Blogging helper)
|
# Tag all posts with article (for Blogging helper)
|
||||||
|
|
Loading…
Reference in a new issue