$-- head.html $-- This file should go directly inside and existing `head` element $-------------------------------------------------------------------- $-- charset (utf-8 please) $-- must be defined early in the document (within first 1024 bytes) $-- https://www.w3.org/TR/2012/CR-html5-20121217/document-metadata.html#charset $-- generator $-- credit to John MacFarlane's wonderful software $-- and of course GNU make $-- viewport $-- https://developer.mozilla.org/fr/docs/Web/HTML/Viewport_meta_tag $-------------------------------------------------------------------- $-- Metadata $-- For `title`, `author` and `description`, pandoc automatically $-- sets the matching variables suffixed with `-meta`. $-- https://pandoc.org/MANUAL.html#metadata-variables $-------------------------------------------------------------------- $-- page title $-------------------------------------------------------------------- ${if(title-prefix)}${title-prefix} – ${endif}${pagetitle} $-- author $-- this site is designed to accomodate for a *single* author $-- and expects an object (`author.first`, `author.last`, ...) $-------------------------------------------------------------------- ${if(author)} ${endif} $-- description $-------------------------------------------------------------------- ${if(description-meta)} ${endif} $-- date $-------------------------------------------------------------------- ${if(date-meta)} ${elseif(date)} ${endif} $-- keywords $-- (note that keywords listed here have little if no impact on SEO) $-------------------------------------------------------------------- ${if(keywords)} ${endif} $-- additional stylesheets may be defined through the `css` prop $-- in theme.yml $-------------------------------------------------------------------- $-- @todo : mettre dans component et CSS BEM ${for(css)} ${endfor} $-- scripts $-- additional scripts may be defined through the `js` prop $-- in theme.yml ${for(js)} ${endfor} $-- favicon $-- If the favicon is set, reference it; otherwise, resort to a small $-- transparent Gif, which avoids a useless request to the server $-- (and therefore avoids such error in the console). $-------------------------------------------------------------------- ${if(favicon)} ${else} ${endif} $-- math $-------------------------------------------------------------------- ${if(math)} ${if(mathjax)} $-- beware, this script is loaded externally (through a CDN) ${endif} ${math} ${endif}