Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support dynamic year #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/_partials/footer.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ footer
.container
.row
.col-sm-6
p: small © 2013 #{ site_title }
p: small © #{(new Date()).getFullYear()} #{ site_title }
.col-sm-6
p.pull-right
small: a(href="/rss.xml", title="#{ site_title } RSS feed")
Expand Down
5 changes: 5 additions & 0 deletions public/index.jade
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
- function excerpt(content) {
- if(content.indexOf("<!-- more -->") == -1) return content;
- else return content.split("<!-- more -->")[0];
- }

each post, slug in public.posts._data
!= partial("/posts/" + slug, post)
2 changes: 2 additions & 0 deletions public/posts/hello-world.jade
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ p Lorem ipsum Sunt occaecat exercitation quis voluptate tempor non dolore tempor

p: img.img-responsive(src="http://placekitten.com/g/500/300")

<!-- more -->

p Laborum ut aliqua eu fugiat sed laboris consectetur culpa anim deserunt eiusmod esse sunt commodo dolore ex amet irure ut tempor exercitation magna sit voluptate cupidatat adipisicing velit reprehenderit nostrud enim cupidatat id fugiat eu dolor laborum consectetur velit magna laboris incididunt nostrud sint exercitation id aliqua in Duis laboris cillum proident aliqua dolore et incididunt cillum in exercitation id veniam ex Ut dolore quis

blockquote
Expand Down