ferron

Ferron is a fast and simple static website generator made with Lua.
Log | Files | Refs | Submodules | README | LICENSE

commit 20e9c1c23a075524b7c690db033b7fc7d16f418e
parent b3ada85c04eba4330068b660c277fcb8ed436787
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Fri,  3 Aug 2018 17:15:31 -0400

Update the website sample.

Diffstat:
Msites/ferron-ssg.tld/templates/default-index.mustache | 13++++++++++---
Msites/ferron-ssg.tld/templates/rss2.mustache | 28++++++++++++++--------------
2 files changed, 24 insertions(+), 17 deletions(-)

diff --git a/sites/ferron-ssg.tld/templates/default-index.mustache b/sites/ferron-ssg.tld/templates/default-index.mustache @@ -7,9 +7,16 @@ <div> {{{ content }}} - <ol class="list__list"> - {{# entries }} - {{{ content }}} + <ol class="list__list"> + {{# entries }} + <li class="list__item h-entry hentry" id="id{{{ shortlink }}}"> + <a class="list__link u-url u-uid" + href="{{{ permalink }}}"> + {{{ title }}} + </a> &mdash; + + <time class="dt-published" datetime="{{{ date }}}T{{{ datetime }}}">{{{ date }}}</time> + </li> {{/ entries }} </ol> </div> diff --git a/sites/ferron-ssg.tld/templates/rss2.mustache b/sites/ferron-ssg.tld/templates/rss2.mustache @@ -1,18 +1,18 @@ <?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"> - <channel> - <title>RSS Feed of {{{ site.domainname }}}</title> - <description>{{{ site.metas.description }}}</description> - <lastBuildDate>{{{ lastupdate }}}Z</lastBuildDate> - <link>{{{ site.url }}}</link> + <channel> + <title>RSS Feed of {{{ site.domainname }}}</title> + <description>{{{ site.metas.description }}}</description> + <lastBuildDate>{{{ lastupdate }}}Z</lastBuildDate> + <link>{{{ site.url }}}</link> - {{# entries }} - <item> - <!-- <title></title> --> - <description>{{ content }}</description> - <pubDate>{{ updated }}Z</pubDate> - <link>{{{ permalink }}}</link> - </item> - {{/ entries }} - </channel> + {{# entries }} + <item> + <title>{{{ title }}}</title> + <description>{{ content }}</description> + <pubDate>{{ updated }}Z</pubDate> + <link>{{{ permalink }}}</link> + </item> + {{/ entries }} + </channel> </rss>