hugo.soucy.cc

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

commit ba98acad1b1eaca8b93e91b312904677c694f7ff
parent 32411cc2a0b04fc86bbd07bdb6acb21de10a28ac
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Fri,  2 Feb 2018 11:14:40 -0500

Remove capitalize mustache keys

Diffstat:
Msite.config.lua | 58++++++++++++++++++++++++++++++----------------------------
Mtag.lua | 2+-
Mtemplates/curriculum-vitae.mustache | 6+++---
Mtemplates/default-index.mustache | 2+-
Mtemplates/default.mustache | 12++++++------
Mtemplates/feed.mustache | 18+++++++++---------
Mtemplates/index.mustache | 16++++++++--------
Mtemplates/note-index.mustache | 10+++++-----
Mtemplates/note.mustache | 6+++---
Mtemplates/partials/bottom_script.mustache | 2+-
Mtemplates/partials/footer.mustache | 4++--
Mtemplates/partials/head.mustache | 20++++++++++----------
Mtemplates/partials/nav.mustache | 12++++++------
Mtemplates/rss2.mustache | 6+++---
14 files changed, 88 insertions(+), 86 deletions(-)

diff --git a/site.config.lua b/site.config.lua @@ -2,29 +2,31 @@ -- Website Configuration File -- -SITE = { - DOMAINNAME = "hugo.soucy.cc", - URL = "https://hugo.soucy.cc", - URLDEV = "http://localhost:8181", - PORTDEV = "8181", - BASEURL = "http://localhost:8181", - LANGUAGE = "fr", +site = { + domainname = "hugo.soucy.cc", + url = "https://hugo.soucy.cc", + urldev = "http://localhost:8181", + portdev = "8181", + baseurl = "http://localhost:8181", + language = "fr", + created = "2014-02-19" - METAS = { - DESCRIPTION = "Développeur Web frontend ayant plus de 10 ans d'expérience dans le milieu des technologies de l'information. Il habite dans le quartier Limoilou à Québec.", - KEYWORDS = "développeur frontend, développeur web front-end, intégrateur web, webdev, ville de Québec, Limoilou", - GENERATOR = "Ferron SSG" + metas = { + description = "Développeur Web frontend ayant plus de 10 ans d'expérience dans le milieu des technologies de l'information. Il habite dans le quartier Limoilou à Québec.", + keywords = "développeur frontend, développeur web front-end, intégrateur web, webdev, ville de Québec, Limoilou", + generator = "Ferron SSG" }, - AUTHOR = { - NAME = "Hugo Soucy", - JOBTITLE = "Développeur Web frontend", - EMAIL = "hugo@soucy.cc", - PHONE = "581-996-6481", - LOCALITY ="Québec", - REGION = "Qc", - URI = "https://hugo.soucy.cc/#hs", - RELME = { + author = { + name = "Hugo Soucy", + nickname = "hs0ucy" + jobtitle = "Développeur Web frontend", + email = "hugo@soucy.cc", + phone = "581-996-6481", + locality ="Québec", + region = "Qc", + uri = "https://hugo.soucy.cc/#hs", + relme = { "https://hugo.soucy.cc/#hs", "http://shr.soucy.cc/", "https://bandcamp.com/hs0ucy", @@ -47,17 +49,17 @@ SITE = { } }, - PATHS = { - ARCHETYPES = "/archetypes", - CONTENT = "/content", - DATA = "/data", - HTML = "/public_html", - STATIC = "/static/dst", - TEMPLATES = "/templates" + paths = { + archetypes = "/archetypes", + content = "/content", + data = "/data", + html = "/public_html", + static = "/static/dst", + templates = "/templates" }, -- Accepted mime types of the non-textual content - MIMETYPES = { + mimetypes = { "image/svg+xml", "image/jpeg", "image/png", diff --git a/tag.lua b/tag.lua @@ -26,7 +26,7 @@ local function tablelength(tab) end local function getpagetags() - local contentpath = lfs.currentdir() .. SITE.PATHS.CONTENT + local contentpath = lfs.currentdir() .. paths.content local tags = {} path.each( diff --git a/templates/curriculum-vitae.mustache b/templates/curriculum-vitae.mustache @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang="{{ SITE.LANGUAGE }}"> +<html lang="{{ site.language }}"> {{> head }} <body class="cv"> @@ -20,9 +20,9 @@ <p> <a href="{{ permalink }}">#</a> - Créé à {{ SITE.AUTHOR.LOCALITY }} le <time datetime="{{ date }}T{{ datetime }}">{{ date }}</time> par + Créé à {{ site.author.locality }} le <time datetime="{{ date }}T{{ datetime }}">{{ date }}</time> par - <a href="{{{ SITE.BASEURL }}}#hs" rel="author"><i>{{ SITE.AUTHOR.NAME }}</i></a>. + <a href="{{{ site.baseurl }}}#hs" rel="author"><i>{{ site.author.name }}</i></a>. Modifié le <time>{{ updated }}</time>. </p> diff --git a/templates/default-index.mustache b/templates/default-index.mustache @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang="{{ SITE.LANGUAGE }}"> +<html lang="{{ site.language }}"> {{> head }} <body id="list" class="list"> diff --git a/templates/default.mustache b/templates/default.mustache @@ -1,12 +1,12 @@ <!DOCTYPE html> -<html lang="{{ SITE.LANGUAGE }}"> +<html lang="{{ site.language }}"> {{> head }} - <body id="single" class="single"> + <body id="single" class="single"> <article class="h-entry hentry"> - <div class="layout e-content p-name single"> + <div class="layout e-content p-name single"> {{{ content }}} - </div> + </div> <footer class="single__footer"> <address class="layout"> @@ -14,9 +14,9 @@ <p> <a class="u-url u-uid u-syndication" href="#" rel="bookmark">#</a> - Créé à {{ SITE.AUTHOR.LOCALITY }} le <time class="dt-published" datetime="{{ date }}T{{ datetime }}">{{ date }}</time> par + Créé à {{ site.author.locality }} le <time class="dt-published" datetime="{{ date }}T{{ datetime }}">{{ date }}</time> par - <a class="p-author author" href="{{{ SITE.BASEURL }}}#hs" rel="author"><i>{{ SITE.AUTHOR.NAME }}</i></a>. + <a class="p-author author" href="{{{ site.baseurl }}}#hs" rel="author"><i>{{ site.author.name }}</i></a>. Modifié le <time class="dt-updated">{{ updated }}</time>. </p> diff --git a/templates/feed.mustache b/templates/feed.mustache @@ -1,25 +1,25 @@ <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> - <title>Flux Atom de {{{ SITE.DOMAINNAME }}}</title> - <subtitle>{{{ SITE.METAS.DESCRIPTION }}}</subtitle> - <id>tag:hugo.soucy.cc,2014-02-19:hs0ucy</id> - <link href="{{{ SITE.URL }}}/feed.atom.xml" rel="self" type="application/atom+xml"/> + <title>Flux Atom de {{{ site.domainname }}}</title> + <subtitle>{{{ site.metas.description }}}</subtitle> + <id>tag:{{{ site.domainname }}},{{{ site.created }}}:{{{ site.author.nickname }}}</id> + <link href="{{{ site.url }}}/feed.atom.xml" rel="self" type="application/atom+xml"/> <!-- PubSubHubbub Discovery --> <link href="https://hs0ucy.superfeedr.com/" rel="hub" /> <!-- End Of PubSubHubbub Discovery --> - <link href="{{{ SITE.URL }}}" rel="alternate" /> + <link href="{{{ site.url }}}" rel="alternate" /> <updated>{{{ lastupdate }}}Z</updated> <author> - <name>{{{ SITE.AUTHOR.NAME }}}</name> - <email>{{{ SITE.AUTHOR.EMAIL }}}</email> - <uri>{{{ SITE.AUTHOR.URI }}}</uri> + <name>{{{ site.author.name }}}</name> + <email>{{{ site.author.email }}}</email> + <uri>{{{ site.author.uri }}}</uri> </author> {{# entries }} <entry> <title>{{{ title }}}</title> <id>{{{ id }}}</id> - <link href="{{{ permalink }}}" hreflang="{{{ SITE.LANGUAGE }}}" rel="alternate" /> + <link href="{{{ permalink }}}" hreflang="{{{ site.language }}}" rel="alternate" /> <updated>{{ updated }}Z</updated> <content type="html" xml:base="{{{ permalink }}}"> {{ content }} diff --git a/templates/index.mustache b/templates/index.mustache @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang="{{ SITE.LANGUAGE }}"> +<html lang="{{ site.language }}"> {{> head }} <body id="index" @@ -11,12 +11,12 @@ vocab="http://schema.org/"> <header> <div class="layout"> - <h1 class="logo p-name" property="name">{{ SITE.AUTHOR.NAME }}</h1> - <h2 class="visuallyhidden p-job-title" property="jobTitle">{{ SITE.AUTHOR.JOBTITLE }}</h2> + <h1 class="logo p-name" property="name">{{ site.author.name }}</h1> + <h2 class="visuallyhidden p-job-title" property="jobTitle">{{ site.author.jobtitle }}</h2> <a class="u-url visuallyhidden" - href="{{{ SITE.BASEURL }}}" + href="{{{ site.baseurl }}}" rel="me" - property="url">{{{ SITE.BASEURL }}}</a> + property="url">{{{ site.baseurl }}}</a> </div> </header> @@ -30,10 +30,10 @@ <address class="layout"> <hr/> Vous pouvez communiquer avec moi par courriel à - l'adresse <a href="mailto:{{ SITE.AUTHOR.EMAIL }}" property="email" rel="me"> - <span class="u-email">{{ SITE.AUTHOR.EMAIL }}</span></a>; + l'adresse <a href="mailto:{{ site.author.email }}" property="email" rel="me"> + <span class="u-email">{{ site.author.email }}</span></a>; sinon vous pouvez également vous connecter au réseau Freenode <abbr title="Inter Relay Chat">IRC</abbr> et faire <code>/msg - hs0ucy [votremessage]</code>, + {{ site.author.mickname }} [votremessage]</code>, pour me parler en direct. </address> </footer> diff --git a/templates/note-index.mustache b/templates/note-index.mustache @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang="{{ SITE.LANGUAGE }}"> +<html lang="{{ site.language }}"> {{> head }} <body id="note" class="note"> @@ -42,7 +42,7 @@ {{/ permalink }} rel="syndication"> <time class="dt-published dt-updated" {{# datetime }}datetime="{{ date }}T{{ datetime }}"{{/ datetime }}>{{ date }}</time></a>. - <span class="visuallyhidden">par <em class="p-author author h-card">{{ SITE.AUTHOR.NAME }}</em></span> + <span class="visuallyhidden">par <em class="p-author author h-card">{{ site.author.name }}</em></span> </footer> </li> {{/entries}} @@ -52,9 +52,9 @@ <footer class="note_footer-banner footer-banner"> <p class="layout"> - <a href="{{{ SITE.BASEURL }}}/note/2018"><time>2018</time></a> | - <a href="{{{ SITE.BASEURL }}}/note/2017"><time>2017</time></a> | - <a href="{{{ SITE.BASEURL }}}/note/2016"><time>2016</time></a> + <a href="{{{ site.baseurl }}}/note/2018"><time>2018</time></a> | + <a href="{{{ site.baseurl }}}/note/2017"><time>2017</time></a> | + <a href="{{{ site.baseurl }}}/note/2016"><time>2016</time></a> </p> </footer> diff --git a/templates/note.mustache b/templates/note.mustache @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang="{{ SITE.LANGUAGE }}"> +<html lang="{{ site.language }}"> {{> head }} <body id="note" class="note"> @@ -61,8 +61,8 @@ Publié le <time class="dt-published" {{# datetime }}datetime="{{ date }}T{{ datetime }}"{{/ datetime }}>{{ date }}</time> par - <a class="p-author author h-card" href="{{{ SITE.BASEURL }}}#hs" rel="author"> - <i>{{ SITE.AUTHOR.NAME }}</i> + <a class="p-author author h-card" href="{{{ site.baseurl }}}#hs" rel="author"> + <i>{{ site.author.NAME }}</i> <img alt="" class="u-photo visuallyhidden" src="http://assets.soucy.cc/images/hugosoucy/favicon/hs-autoportrait-2010-nb-favion-32x32.png"/> diff --git a/templates/partials/bottom_script.mustache b/templates/partials/bottom_script.mustache @@ -4,7 +4,7 @@ if (cuttingTheMustard) { bottomjs = document.createElement('script'); - bottomjs.src = '{{{ SITE.BASEURL }}}/js/script.min.js'; + bottomjs.src = '{{{ site.baseurl }}}/js/script.min.js'; bottomjs.id = 'bottomjs'; document.body.appendChild(bottomjs); diff --git a/templates/partials/footer.mustache b/templates/partials/footer.mustache @@ -2,7 +2,7 @@ <address class="layout"> <hr> - <p>Page Web conçue par <a rel="author" href="{{{ SITE.BASEURL }}}#hs">{{ SITE.AUTHOR.NAME }}</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 à {{ SITE.AUTHOR.LOCALITY }} le <time datetime="{{ DATE.UPDATE }}T{{ DATE.UPDATETIME }}">{{ DATE.UPDATE }}</time>.</p> + <p>Page Web conçue par <a rel="author" href="{{{ site.baseurl }}}#hs">{{ site.author.name }}</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 à {{ site.author.locality }} le <time datetime="{{ date.update }}T{{ date.updatetime }}">{{ date.update }}</time>.</p> </address> </footer> diff --git a/templates/partials/head.mustache b/templates/partials/head.mustache @@ -3,11 +3,11 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> - <title>{{ title }} &mdash; {{ SITE.DOMAINNAME }}</title> + <title>{{ title }} &mdash; {{ site.domainname }}</title> - <link href="{{{ SITE.BASEURL }}}/css/styles.min.css" rel="stylesheet" /> + <link href="{{{ site.baseurl }}}/css/styles.min.css" rel="stylesheet" /> <!-- Feed Atom --> - <link href="{{{ SITE.BASEURL }}}/feed.atom.xml" + <link href="{{{ site.baseurl }}}/feed.atom.xml" rel="alternate" title="Feed des contenus de hugo.soucy.cc" type="application/atom+xml" /> @@ -18,20 +18,20 @@ <link href="https://webmention.herokuapp.com/api/webmention" rel="webmention" /> <link href="https://webmention.io/hugo.soucy.cc/webmention" rel="webmention" /> - {{# SITE.AUTHOR.RELME }} + {{# site.author.relme }} <link rel="me" href="{{{ . }}}" /> - {{/ SITE.AUTHOR.RELME }} + {{/ site.author.relme }} - {{# SITE.PREFETCHLIST }} + {{# site.prefetchlist }} <link rel="prefetch" href="{{{ . }}}" /> - {{/ SITE.PREFETCHLIST }} + {{/ site.prefetchlist }} <link href="https://assets.soucy.cc/images/hugosoucy/favicon/hs-autoportrait-2010-nb-favion-32x32.png" rel="icon" type="image/png" /> - <link href="{{{ permalink }}}" hreflang="{{ SITE.LANGUAGE }}" rel="canonical" /> + <link href="{{{ permalink }}}" hreflang="{{ site.language }}" rel="canonical" /> <meta name="robots" content="index, follow" /> - <meta name="author" content="{{ SITE.AUTHOR.NAME }}" /> - <meta name="generator" content="{{ SITE.METAS.GENERATOR }}" /> + <meta name="author" content="{{ site.author.name }}" /> + <meta name="generator" content="{{ site.metas.generator }}" /> {{# description }} <meta name="description" content="{{ description }}" /> diff --git a/templates/partials/nav.mustache b/templates/partials/nav.mustache @@ -5,32 +5,32 @@ <ul class="nav__list" role="menubar"> <li class="nav__item"> - <a class="nav__link" href="{{{ SITE.BASEURL }}}" rel="index"> + <a class="nav__link" href="{{{ site.baseurl }}}" rel="index"> Retour à l'accueil </a> </li> <li class="nav__item"> - <a class="nav__link" href="{{{ SITE.BASEURL }}}/note"> + <a class="nav__link" href="{{{ site.baseurl }}}/note"> Notes </a> </li> <li class="nav__item"> - <a class="nav__link" href="{{{ SITE.BASEURL }}}/txt"> + <a class="nav__link" href="{{{ site.baseurl }}}/txt"> Textes </a> </li> <li class="nav__item"> - <a class="nav__link" href="{{{ SITE.BASEURL }}}/file/curriculum-vitae.html"> + <a class="nav__link" href="{{{ site.baseurl }}}/file/curriculum-vitae.html"> Curriculum vitae </a> </li> <li class="nav__item"> - <a class="nav__link" href="{{{ SITE.BASEURL }}}/a-propos.html"> + <a class="nav__link" href="{{{ site.baseurl }}}/a-propos.html"> À propos </a> </li> <li class="nav__item"> - <a class="nav__link" href="{{{ SITE.BASEURL }}}/feed.atom.xml"> + <a class="nav__link" href="{{{ site.baseurl }}}/feed.atom.xml"> Flux Atom </a> </li> diff --git a/templates/rss2.mustache b/templates/rss2.mustache @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"> <channel> - <title>Flux RSS 2 de {{{ SITE.DOMAINNAME }}}</title> - <description>{{{ SITE.METAS.DESCRIPTION }}}</description> + <title>Flux RSS 2 de {{{ site.domainname }}}</title> + <description>{{{ site.metas.description }}}</description> <lastBuildDate>{{{ lastupdate }}}Z</lastBuildDate> - <link>{{{ SITE.URL }}}</link> + <link>{{{ site.url }}}</link> {{# entries }} <item>