xdumaine / ghost-aside

A simplistic ghost theme based on Casper, but with a fixed sidebar
MIT License
13 stars 11 forks source link

Copyright year is hard-coded to 2013 #5

Open rhester72 opened 9 years ago

rhester72 commented 9 years ago

It should probably follow the Casper model and make the year dynamic:

$ diff ghost-aside-master/index.hbs ghost-aside/index.hbs
38c38
<              <section class="copyright">All content copyright <a href="/">{{@blog.title}}</a> &copy; 2013 &bull; All rights reserved.</section>

---
>              <section class="copyright">All content copyright <a href="/">{{@blog.title}}</a> &copy; {{date format="YYYY"}} &bull; All rights reserved.</section>
$ diff ghost-aside-master/tag.hbs ghost-aside/tag.hbs
34c34
<              <section class="copyright">All content copyright <a href="/">{{@blog.title}}</a> &copy; 2013 &bull; All rights reserved.</section>

---
>              <section class="copyright">All content copyright <a href="/">{{@blog.title}}</a> &copy; {{date format="YYYY"}} &bull; All rights reserved.</section>

I also noticed that Casper does this in default.hbs, which may be a cleaner approach.

xdumaine commented 9 years ago

If you PR this, I'll hit merge. I'm a bit busy and don't have a lot of time to put into this right now.

rhester72 commented 9 years ago

OK - will look into moving it to default.hbs to clean things up a bit and PR. Sorry for the wall o' issue reports, yours is the first Ghost theme I've run across that was nearly exactly what I've been looking for for months. =)