diff --git a/src/render.rs b/src/render.rs index 69e7524..1125ee1 100644 --- a/src/render.rs +++ b/src/render.rs @@ -82,9 +82,8 @@ lazy_static! { }; } -handlebars_helper!(cur_year: |dummy: u64| Date::new_0().get_full_year()); -handlebars_helper!(build_num: |dummy: u64| BuildTag{}.get_build_timestamp()); -// TODO: actually implement this helper +handlebars_helper!(cur_year: | | Date::new_0().get_full_year()); +handlebars_helper!(build_num: | | BuildTag{}.get_build_timestamp()); handlebars_helper!(format_date: |date: u64, format: str| { NaiveDateTime::from_timestamp(date as i64, 0).format(format).to_string() }); diff --git a/theme/default/home.hbs b/theme/default/home.hbs index ea5991a..ba794e6 100644 --- a/theme/default/home.hbs +++ b/theme/default/home.hbs @@ -2,7 +2,7 @@ {{ blog.title }} - + {{> loading.hbs }} @@ -29,6 +29,6 @@ - + \ No newline at end of file diff --git a/theme/default/post.hbs b/theme/default/post.hbs index 101a38b..f33e3ea 100644 --- a/theme/default/post.hbs +++ b/theme/default/post.hbs @@ -2,7 +2,7 @@ {{ title }} - {{ blog.title }} - + {{> loading.hbs }} @@ -20,6 +20,6 @@ - + \ No newline at end of file diff --git a/theme/default/sidebar.hbs b/theme/default/sidebar.hbs index a5cb8f8..0dd24d4 100644 --- a/theme/default/sidebar.hbs +++ b/theme/default/sidebar.hbs @@ -13,7 +13,7 @@