hugo.soucy.cc

The personnal website source code of Hugo Soucy. Creates from an homebrewed static website generator (Ferron).
Log | Files | Refs

commit c6e12672e0f824e5a823a8023c3c96a0ea7e7658
parent 63cc5c6a5f4bf93d705b79c9013a7b327418c465
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Fri, 13 Jul 2018 13:41:37 -0400

Add IDs for entries

Diffstat:
Mtemplates/default-index.mustache | 44++++++++++++++++++++++----------------------
Mtemplates/note-index.mustache | 2+-
2 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/templates/default-index.mustache b/templates/default-index.mustache @@ -1,29 +1,29 @@ <!DOCTYPE html> <html lang="{{ site.language }}"> - {{> head }} + {{> head }} - <body id="list" class="list"> - <main> - <div class="layout"> - {{{ content }}} + <body id="list" class="list"> + <main> + <div class="layout"> + {{{ content }}} - <ol class="list__list"> - {{# entries }} - <li class="list__item h-entry hentry"> - <a class="list__link dt-published dt-updated u-url u-uid like-h2" - href="{{{ permalink }}}"> - {{{ title }}} - </a> &mdash; + <ol class="list__list"> + {{# entries }} + <li class="list__item h-entry hentry" id="id{{{ shortlink }}}"> + <a class="list__link dt-published dt-updated u-url u-uid like-h2" + href="{{{ permalink }}}"> + {{{ title }}} + </a> &mdash; - <time class="dt-published" datetime="{{{ date }}}T{{{ datetime }}}">{{{ date }}}</time> - </li> - {{/ entries }} - </ol> - </div> - </main> + <time class="dt-published" datetime="{{{ date }}}T{{{ datetime }}}">{{{ date }}}</time> + </li> + {{/ entries }} + </ol> + </div> + </main> - {{> nav_button }} - {{> nav }} - {{> bottom_script }} - </body> + {{> nav_button }} + {{> nav }} + {{> bottom_script }} + </body> </html> diff --git a/templates/note-index.mustache b/templates/note-index.mustache @@ -9,7 +9,7 @@ <ol class="note__list"> {{# entries }} - <li class="note__item h-entry hentry as-note"> + <li class="note__item h-entry hentry as-note" id="id{{{ shortlink }}}"> {{# citeurl }} <blockquote class="note__blockquote p-name e-content"> <div class="note__blockquote__quote">