ferron

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

commit 2700f029e3efccec63822841dd10e21ef7dc3cce
parent 2c16fe87af9f8a40cd69bb6e2c9bcbc9bf07b075
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Fri,  2 Feb 2018 11:15:55 -0500

Remove capitalized mustache keys.

Diffstat:
Msites/ferron-ssg.tld/site.config.lua | 54+++++++++++++++++++++++++++---------------------------
Msites/ferron-ssg.tld/templates/default-index.mustache | 8++++----
Msites/ferron-ssg.tld/templates/default.mustache | 2+-
Msites/ferron-ssg.tld/templates/feed.mustache | 22+++++++++++-----------
Msites/ferron-ssg.tld/templates/partials/footer.mustache | 4++--
Msites/ferron-ssg.tld/templates/partials/head.mustache | 12++++++------
6 files changed, 51 insertions(+), 51 deletions(-)

diff --git a/sites/ferron-ssg.tld/site.config.lua b/sites/ferron-ssg.tld/site.config.lua @@ -1,41 +1,41 @@ -- --- Website Configuration File +-- Web Site Configuration File -- -SITE = { - DOMAINNAME = "ferron-ssg.tld", - URL = "http://ferron-ssg.tld", - URLDEV = "http://localhost:8181", - PORTDEV = "8181", - BASEURL = "http://ferron-ssg.tld", - LANGUAGE = "fr", +site = { + domainname = "ferron-ssg.tld", + url = "http://ferron-ssg.tld", + urldev = "http://localhost:8181", + portdev = "8181", + baseurl = "http://ferron-ssg.tld", + language = "fr", - METAS = { - DESCRIPTION = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit.", - KEYWORDS = "SSG, lua", - GENERATOR = "Ferron SSG" + metas = { + description = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit.", + keywords = "SSG, lua", + generator = "Ferron SSG" }, - AUTHOR = { - NAME = "John Doe", - JOBTITLE = "Web Developper", - EMAIL = "john@samplesite.tld", - PHONE = "555-555-5555", - LOCALITY ="Quebec city", - REGION = "Qc", - URI = "http://johndoe.tld/#i" + author = { + name = "John Doe", + jobtitle = "Web Developper", + email = "john@samplesite.tld", + phone = "555-555-5555", + locality ="Quebec city", + region = "Qc", + uri = "http://johndoe.tld/#i" }, - PATHS = { - ARCHETYPES = "/archetypes", - CONTENT = "/content", - HTML = "/public_html", - STATIC = "/static", - TEMPLATES = "/templates" + paths = { + archetypes = "/archetypes", + content = "/content", + html = "/public_html", + static = "/static", + templates = "/templates" }, -- Accepted mime types of the non-textual content - MIMETYPES = { + mimetypes = { "image/svg+xml", "image/jpeg", "image/png", diff --git a/sites/ferron-ssg.tld/templates/default-index.mustache b/sites/ferron-ssg.tld/templates/default-index.mustache @@ -1,10 +1,10 @@ <!DOCTYPE html> -<html lang="{{ SITE.LANGUAGE }}"> +<html lang="{{ site.language }}"> {{> head }} - <body id="list" class="list"> + <body id="list" class="list"> <main> - <div> + <div> {{{ content }}} <ol class="list__list"> @@ -14,7 +14,7 @@ </ol> </div> </main> - + {{> footer }} </body> </html> diff --git a/sites/ferron-ssg.tld/templates/default.mustache b/sites/ferron-ssg.tld/templates/default.mustache @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang="{{ SITE.LANGUAGE }}"> +<html lang="{{ site.language }}"> {{> head }} <body id="single" class="single"> diff --git a/sites/ferron-ssg.tld/templates/feed.mustache b/sites/ferron-ssg.tld/templates/feed.mustache @@ -1,22 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> - <title>Flux Atom de {{{ SITE.DOMAINNAME }}}</title> - <subtitle>{{{ SITE.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"/> - <link href="{{{ SITE.URL }}}" rel="alternate" /> + <title>Atom Feed of {{{ site.domainname }}}</title> + <subtitle>{{{ site.description }}}</subtitle> + <id>tag:{{{ site.domainname }}},2014-01-01:{{{ site.author.email }}}</id> + <link href="{{{ site.url }}}/feed.atom.xml" rel="self" type="application/atom+xml"/> + <link href="{{{ site.url }}}" rel="alternate" /> <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>{{{ date }}}T{{{ datetime }}}Z</updated> - </entry> + </entry> {{/ entries }} </feed> diff --git a/sites/ferron-ssg.tld/templates/partials/footer.mustache b/sites/ferron-ssg.tld/templates/partials/footer.mustache @@ -1,5 +1,5 @@ -<footer id="footer"> +<footer id="footer"> <p> - <time datetime="{{ DATE.UPDATE }}T{{ DATE.UPDATETIME }}">{{ DATE.UPDATE }}</time>. + <time datetime="{{ date.update }}T{{ date.updatetime }}">{{ date.update }}</time>. </p> </footer> diff --git a/sites/ferron-ssg.tld/templates/partials/head.mustache b/sites/ferron-ssg.tld/templates/partials/head.mustache @@ -3,15 +3,15 @@ <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 rel="stylesheet" href="{{{ SITE.BASEURL }}}/css/styles.css" /> - <link href="{{{ SITE.BASEURL }}}/feed.atom.xml" rel="alternate" title="Feed de tous les contenus" type="application/atom+xml" /> - <link href="{{ permalink }}" hreflang="{{ SITE.LANGUAGE }}" rel="canonical" /> + <link rel="stylesheet" href="{{{ site.baseurl }}}/css/styles.css" /> + <link href="{{{ site.baseurl }}}/feed.atom.xml" rel="alternate" title="Feed de tous les contenus" type="application/atom+xml" /> + <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 }}" />