hugosoucycc

[ARCHIVED] Another old source code of <hugo.soucy.cc>.
Log | Files | Refs | Submodules

commit a1021bfa3fbbb8c663926949adc206e34626ac75
parent a6870306061d82410759efc5f275fa0b6ad82885
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Tue, 26 Jul 2016 21:45:37 -0400

Add or ajuste h-entries.

Diffstat:
Mtemplates/mustache/curriculum-vitae.mustache | 2+-
Mtemplates/mustache/default.mustache | 19++++++++++++-------
Mtemplates/mustache/index.mustache | 55++++++++++++++++++++++++++-----------------------------
Mtemplates/mustache/note-index.inc.mustache | 12++++++------
Mtemplates/mustache/note-index.mustache | 4++--
Mtemplates/mustache/note.mustache | 12+++++++-----
Mtemplates/mustache/partials/footer.mustache | 3++-
7 files changed, 56 insertions(+), 51 deletions(-)

diff --git a/templates/mustache/curriculum-vitae.mustache b/templates/mustache/curriculum-vitae.mustache @@ -1,7 +1,7 @@ {{> partials/head.mustache }} <body class="cv" id="cv"> - <header class="cv__banner" role="banner"> + <header class="cv__banner"> <div class="layout"> <h1 class="cv__title"> <span class="visuallyhidden">Curriculum vitæ de</span> diff --git a/templates/mustache/default.mustache b/templates/mustache/default.mustache @@ -1,16 +1,21 @@ {{> partials/head.mustache }} <body id="single"> - <div class="layout"> - <article class="single"> + <article class="h-entry hentry"> + <div class="layout e-content p-name single"> <!-- Pandoc var --> $body$ - </article> + </div> - </div> + {{> partials/nav.mustache }} - {{> partials/nav.mustache }} - - {{> partials/footer.mustache }} + <footer> + <address class="layout"> + <hr/> + + <p>Créé à Québec le <time class="dt-published dt-updated" $if(datetime)$datetime="$date$T$datetime$"$endif$>$date$</time> par <a class="p-author author" href="{{ BASE_URL }}#hs" rel="author"><i>{{ SITE_AUTHOR }}</i></a>. <a class="note__link u-url u-uid u-syndication" href="#">#</a></p> + </address> + </footer> + </article> </body> </html> diff --git a/templates/mustache/index.mustache b/templates/mustache/index.mustache @@ -1,39 +1,36 @@ {{> partials/head.mustache }} <body id="index" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/"> - <div class="h-card" id="hs" resource="#hs" typeof="Person" vocab="http://schema.org/"> - <header> - <div class="layout"> - <h1 class="logo p-name" property="name">{{ SITE_AUTHOR }}</h1> - <h2 class="visuallyhidden p-job-title" property="jobTitle">{{ SITE_AUTHOR_TITLE }}</h2> - <img alt="" - class="u-photo visuallyhidden" - src="http://assets.soucy.cc/images/hugosoucy/avatars/hs-gabriel-dumont-avatar-112x112.png"/> - <a class="u-url visuallyhidden" href="{{ SITE_URL }}" rel="me">{{ SITE_URL }}</a> - </div> - </header> + <div class="h-card" id="hs" resource="#hs" typeof="Person" vocab="http://schema.org/"> + <header> + <div class="layout"> + <h1 class="logo p-name" property="name">{{ SITE_AUTHOR }}</h1> + <h2 class="visuallyhidden p-job-title" property="jobTitle">{{ SITE_AUTHOR_TITLE }}</h2> + <a class="u-url visuallyhidden" href="{{ SITE_URL }}" rel="me">{{ SITE_URL }}</a> + </div> + </header> - <main> - <div class="layout"> - <!-- Pandoc var --> - $body$ - </div> - </main> + <main> + <div class="layout"> + <!-- Pandoc var --> + $body$ + </div> + </main> - {{> partials/nav.index.mustache }} + {{> partials/nav.index.mustache }} - <hr/> + <hr/> - <footer> - <address class="layout"> - Écrire à <a href="mailto:{{ SITE_AUTHOR_EMAIL }}" rel="me"> - <span class="u-email" property="email">{{ SITE_AUTHOR_EMAIL }}</span> - </a>. + <footer> + <address class="layout"> + Écrire à <a href="mailto:{{ SITE_AUTHOR_EMAIL }}" rel="me"> + <span class="u-email" property="email">{{ SITE_AUTHOR_EMAIL }}</span> + </a>. - Empreinte <abbr title="Pretty Good Privacy">PGP</abbr> - <code class="u-key">E34D 5C69 33B3 5B5C 5B78 3402 ADBE 89F9 DFEA A914</code>. - </address> - </footer> - </div> + Empreinte <abbr title="Pretty Good Privacy">PGP</abbr> + <code class="u-key">E34D 5C69 33B3 5B5C 5B78 3402 ADBE 89F9 DFEA A914</code>. + </address> + </footer> + </div> </body> </html> diff --git a/templates/mustache/note-index.inc.mustache b/templates/mustache/note-index.inc.mustache @@ -1,4 +1,4 @@ -<article class="note__item h-entry hentry as-note"> +<li class="note__item h-entry hentry as-note"> $if(citeurl)$ <blockquote class="note__blockquote p-name e-content"> <div class="note__blockquote__quote">$body$</div> @@ -20,13 +20,13 @@ $endif$ <footer> Publié le - <a class="note__link dt-published dt-updated u-url u-uid" + <a class="note__link u-url u-uid u-syndication" $if(url)$ href="$url$" $endif$ - rel="permalink"> - <time class="value">$date$</time> + rel="permalink syndication"> + <time class="dt-published dt-updated" $if(datetime)$datetime="$date$T$datetime$"$endif$>$date$</time> </a> - par <em class="p-author author">hs0ucy</em> + par <em class="p-author author">{{ SITE_AUTHOR }}</em> </footer> -</article> +</li> diff --git a/templates/mustache/note-index.mustache b/templates/mustache/note-index.mustache @@ -5,11 +5,11 @@ <div class="layout"> $body$ - <div class="note__list"> + <ol class="note__list"> $for(include-after)$ $include-after$ $endfor$ - </div> + </ol> </div> </main> diff --git a/templates/mustache/note.mustache b/templates/mustache/note.mustache @@ -2,7 +2,7 @@ <body id="note" class="note"> <main> - <article class="layout h-entry hentry as-note"> + <div class="layout h-entry hentry as-note"> <div class="layout__vcenter"> $if(citeurl)$ <blockquote class="note__blockquote p-name e-content"> @@ -24,13 +24,15 @@ </div> $endif$ - <footer class="dt-published dt-updated"> + <footer> + <a class="note__link u-url u-uid u-syndication" + href="#">#</a> Publié le - <time class="value">$date$</time> - par <em class="p-author author">hs0ucy</em> + <time class="dt-published dt-updated" $if(datetime)$datetime="$date$T$datetime$"$endif$>$date$</time> + par <a class="p-author author" href="{{ SITE_URL }}#hs" rel="author"><i>{{ SITE_AUTHOR }}</i></a> </footer> </div> - </article> + </div> </main> {{> partials/nav.mustache }} diff --git a/templates/mustache/partials/footer.mustache b/templates/mustache/partials/footer.mustache @@ -1,7 +1,8 @@ -<hr> <footer id="footer"> <address class="layout"> + <hr> + <p>Page Web conçue par <a rel="author" href="{{ BASE_URL }}#hs">Hugo Soucy</a> &amp; propulsée par HTML 5, <a href="https://www.w3.org/2012/pyRdfa/extract?uri=http%3A%2F%2Fhugo.soucy.cc%2F%23hs&format=xml&rdfagraph=output&vocab_expansion=false&rdfa_lite=false&embedded_rdf=true&space_preserve=true&vocab_cache=true&vocab_cache_report=false&vocab_cache_refresh=false">RDFa</a> &amp; un générateur de site statique fait maison. <br>Dernière modification à Québec le <time datetime="{{ SITE_LASTMOD_DATETIME }}">{{ SITE_LASTMOD_DATE }}</time>.</p>