hugosoucycc

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

commit a855718472c57025d6cd59fb92517b66d72d1754
parent 35adcc8c364b00bdb8442d7af144c877a13112e1
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Thu,  4 Aug 2016 22:24:09 -0400

Add new partial for the navigation btn

Diffstat:
Mtemplates/mustache/curriculum-vitae.mustache | 2++
Mtemplates/mustache/default-index.mustache | 2++
Mtemplates/mustache/default.mustache | 2++
Mtemplates/mustache/index.mustache | 4+++-
Mtemplates/mustache/note-index.inc.mustache | 2+-
Mtemplates/mustache/note-index.mustache | 4+++-
Mtemplates/mustache/note.mustache | 3++-
Mtemplates/mustache/partials/head.mustache | 3++-
Atemplates/mustache/partials/nav.button.mustache | 13+++++++++++++
Mtemplates/mustache/partials/nav.index.mustache | 4++--
Mtemplates/mustache/partials/nav.mustache | 6+++---
Dtemplates/mustache/partials/nav.open.mustache | 13-------------
12 files changed, 35 insertions(+), 23 deletions(-)

diff --git a/templates/mustache/curriculum-vitae.mustache b/templates/mustache/curriculum-vitae.mustache @@ -1,6 +1,8 @@ {{> partials/head.mustache }} <body class="cv" id="cv"> + {{> partials/nav.button.mustache }} + <header class="cv__banner"> <div class="layout"> <h1 class="cv__title"> diff --git a/templates/mustache/default-index.mustache b/templates/mustache/default-index.mustache @@ -1,6 +1,8 @@ {{> partials/head.mustache }} <body id="list" class="list"> + {{> partials/nav.button.mustache }} + <main> <div class="layout"> $body$ diff --git a/templates/mustache/default.mustache b/templates/mustache/default.mustache @@ -1,6 +1,8 @@ {{> partials/head.mustache }} <body id="single"> + {{> partials/nav.button.mustache }} + <article class="h-entry hentry"> <div class="layout e-content p-name single"> <!-- Pandoc var --> diff --git a/templates/mustache/index.mustache b/templates/mustache/index.mustache @@ -1,7 +1,9 @@ {{> 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/"> + {{> partials/nav.button.mustache }} + + <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> diff --git a/templates/mustache/note-index.inc.mustache b/templates/mustache/note-index.inc.mustache @@ -18,7 +18,7 @@ $body$ </div> $endif$ - <footer> + <footer class="note__footer"> Publié le <a class="note__link u-url u-uid u-syndication" $if(url)$ diff --git a/templates/mustache/note-index.mustache b/templates/mustache/note-index.mustache @@ -1,6 +1,8 @@ {{> partials/head.mustache }} -<body id="note" class="note"> +<body id="note" class="note"> + {{> partials/nav.button.mustache }} + <main> <div class="layout"> $body$ diff --git a/templates/mustache/note.mustache b/templates/mustache/note.mustache @@ -26,12 +26,13 @@ </div> $endif$ - <footer> + <footer class="note__footer"> <a class="note__link u-url u-uid u-syndication bookmark" href="#">#</a> Publié le <time class="dt-published" $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>. $if(modified)$Modifié le <time class="dt-updated">$modified$</time>.$endif$ + <br/>&crarr; <a href="{{ SITE_URL }}/note">Retourner aux notes</a>. </footer> </div> $if(bridgy)$ diff --git a/templates/mustache/partials/head.mustache b/templates/mustache/partials/head.mustache @@ -1,11 +1,12 @@ <!DOCTYPE html> -<html class="no-js" lang="{{ SITE_LANGUAGE }}"> +<html lang="{{ SITE_LANGUAGE }}"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>$pagetitle$ &mdash; {{ SITE_DOMAINNAME }}</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> + <script src="{{ BASE_URL }}/js/vendor/modernizr-3.3.1-custom.min.js"></script> <link rel="stylesheet" href="{{ BASE_URL }}/css/styles.css" /> <!-- webmention.io --> diff --git a/templates/mustache/partials/nav.button.mustache b/templates/mustache/partials/nav.button.mustache @@ -0,0 +1,13 @@ + + +<div class="layout"> + <a class="nav-button" href="#menu"> + <span class="nav-button__text"> + Menu <span class="visuallyhidden">principal</span> + </span> + + <span class="nav-button__burger"> + <i class="nav-button__burger__ico"></i> + </span> + </a> +</div> diff --git a/templates/mustache/partials/nav.index.mustache b/templates/mustache/partials/nav.index.mustache @@ -1,8 +1,8 @@ <nav class="nav"> - {{> nav.open.mustache }} - <div class="nav__panel" id="menu" tabindex="0"> <div class="nav__panel__content layout"> + <h2 class="visuallyhidden">Navigation</h2> + <ul class="nav__list" role="menubar"> <li class="nav__item"> <a class="nav__link" href="{{ BASE_URL }}/note"> diff --git a/templates/mustache/partials/nav.mustache b/templates/mustache/partials/nav.mustache @@ -1,8 +1,8 @@ -<nav class="nav"> - {{> nav.open.mustache }} - +<nav class="nav"> <div class="nav__panel" id="menu" tabindex="0"> <div class="nav__panel__content layout"> + <h2 class="visuallyhidden">Navigation</h2> + <ul class="nav__list" role="menubar"> <li class="nav__item"> <a class="nav__link" href="{{ BASE_URL }}" rel="index"> diff --git a/templates/mustache/partials/nav.open.mustache b/templates/mustache/partials/nav.open.mustache @@ -1,13 +0,0 @@ -<h2 class="visuallyhidden">Navigation</h2> - -<div class="layout"> - <a class="nav__button" href="#menu"> - <span class="nav__button__text"> - Menu <span class="visuallyhidden">principal</span> - </span> - - <span class="nav__burger"> - <i class="nav__burger__ico"></i> - </span> - </a> -</div>