diff options
author | Olivier Fredon <the2ne@gmail.com> | 2016-10-10 20:46:37 +0300 |
---|---|---|
committer | Olivier Fredon <the2ne@gmail.com> | 2016-10-10 20:46:37 +0300 |
commit | 86cf45abd8967a27dd1420887590eee04ed61844 (patch) | |
tree | b94eb1938746ad8b298c0e7e399b289561357874 /layouts | |
parent | 877a707204d6ade1ff773e6cfea00a65c57a51d4 (diff) |
Revert "Hugo Frais is not dead"
This reverts commit fb49c8930f365ed66d9476f2db1ce860c811ff4c.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/404.html | 68 | ||||
-rw-r--r-- | layouts/_default/list.html | 7 | ||||
-rw-r--r-- | layouts/_default/single.html | 14 | ||||
-rw-r--r-- | layouts/humans.txt | 38 | ||||
-rw-r--r-- | layouts/index.html | 9 | ||||
-rw-r--r-- | layouts/partials/footer.html | 21 | ||||
-rw-r--r-- | layouts/partials/head.html | 3 | ||||
-rw-r--r-- | layouts/partials/head_includes.html | 5 | ||||
-rw-r--r-- | layouts/partials/header.html | 4 | ||||
-rw-r--r-- | layouts/partials/js.html | 4 | ||||
-rw-r--r-- | layouts/partials/navigation.html | 2 | ||||
-rw-r--r-- | layouts/partials/pagination.html | 6 | ||||
-rw-r--r-- | layouts/partials/post-meta.html | 31 | ||||
-rw-r--r-- | layouts/partials/social.html | 26 | ||||
-rw-r--r-- | layouts/robots.txt | 5 | ||||
-rw-r--r-- | layouts/shortcodes/img.html | 18 | ||||
-rw-r--r-- | layouts/shortcodes/vimeo.html | 3 | ||||
-rw-r--r-- | layouts/shortcodes/youtube.html | 4 |
18 files changed, 37 insertions, 231 deletions
diff --git a/layouts/404.html b/layouts/404.html deleted file mode 100644 index 82826a4..0000000 --- a/layouts/404.html +++ /dev/null @@ -1,68 +0,0 @@ -<!doctype html> -<html lang="en"> -<head> - <meta charset="utf-8"> - <title>Page Not Found - error 404</title> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <style> - - * { - line-height: 1.2; - margin: 0; - } - - html { - color: #111; - display: table; - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 1em; - line-height: 1.5; - height: 100%; - text-align: center; - width: 100%; - - background: url(img/bg-404.jpg) no-repeat center center fixed #666; - -webkit-background-size: cover; - -moz-background-size: cover; - -o-background-size: cover; - background-size: cover; - } - - body { - display: table-cell; - vertical-align: middle; - margin: 2em auto; - } - - h1 { - font-size: 3em; - font-weight: 400; - } - - p { - font-family: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace; - font-size: 1.25em; - font-weight: bold; - margin: 0 auto; - } - - @media only screen and (max-width: 280px) { - - body, p { - width: 95%; - } - - h1 { - font-size: 1.5em; - margin: 0 0 0.3em; - } - - } - - </style> -</head> -<body> - <h1>“There's no place like home”</h1> - <p>Sorry, but the page you were trying to view does not exist.</p> -</body> -</html> diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b56fe25..4972bf9 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,21 +2,14 @@ <body class="list-template"> <div class="page"> - {{ partial "header" . }} {{ partial "navigation" . }} - <main class="content" role="main" id="contenu-principal"> {{ partial "post-list" . }} {{ partial "pagination" . }} </main> - - {{ partial "social" . }} {{ partial "footer" . }} - </div> - {{ partial "js" . }} - </body> </html> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c96d227..38ba5fa 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,29 +2,23 @@ <body class="post-template"> <div class="page"> - {{ partial "header" . }} {{ partial "navigation" . }} - - <main class="content" role="main" id="contenu-principal" itemscope itemtype="http://schema.org/Article"> + <main class="content" role="main" id="main-content" itemscope itemtype="http://schema.org/Article"> <article class="post"> <header> <h1 class="post-title" itemprop="name" role="heading" arial-level="1">{{ .Title }}</h1> </header> - <section class="post-content" itemprop="articleBody"> {{ .Content }} </section> - {{ partial "post-meta" . }} + <footer class="post-meta"> + {{ partial "post-meta" . }} + </footer> </article> </main> - - {{ partial "social" . }} {{ partial "footer" . }} - </div> - {{ partial "js" . }} - </body> </html> diff --git a/layouts/humans.txt b/layouts/humans.txt deleted file mode 100644 index a3d0240..0000000 --- a/layouts/humans.txt +++ /dev/null @@ -1,38 +0,0 @@ - ___ ___ ___ ___ ___ ___ - /__/\ /__/\ /__/\ / /\ /__/\ / /\ - \ \:\ \ \:\ | |::\ / /::\ \ \:\ / /:/_ - \__\:\ \ \:\ | |:|:\ / /:/\:\ \ \:\ / /:/ /\ - ___ / /::\ ___ \ \:\ __|__|:|\:\ / /:/~/::\ _____\__\:\ / /:/ /::\ - /__/\ /:/\:\ /__/\ \__\:\ /__/::::| \:\ /__/:/ /:/\:\ /__/::::::::\ /__/:/ /:/\:\ - \ \:\/:/__\/ \ \:\ / /:/ \ \:\~~\__\/ \ \:\/:/__\/ \ \:\~~\~~\/ \ \:\/:/~/:/ - \ \::/ \ \:\ /:/ \ \:\ \ \::/ \ \:\ ~~~ \ \::/ /:/ - \ \:\ \ \:\/:/ \ \:\ \ \:\ \ \:\ \__\/ /:/ - \ \:\ \ \::/ \ \:\ \ \:\ \ \:\ /__/:/ - \__\/ \__\/ \__\/ \__\/ \__\/ \__\/ - - -# humanstxt.org/ -# The humans responsible & technology colophon - -# TEAM - - OneManTeam: Olivier Fredon - Site: http://www.olivierfredon.com - Twitter: @the2ne - Location: Dirty South, France - -# THANKS - - Name: My mom, my dad and my wonderful wife - -# TECHNOLOGY COLOPHON - - HTML5, CSS3, SVG - Sass, Node, Git - Photoshop, Illustrator - -# SITE - - Language: English / French / Japanese - Doctype: HTML5 - IDE: Atom diff --git a/layouts/index.html b/layouts/index.html index f58da18..ac7229f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,21 +2,14 @@ <body class="home-template"> <div class="page"> - {{ partial "header" . }} {{ partial "navigation" . }} - - <main class="content" role="main" id="contenu-principal"> + <main class="content" role="main" id="main-content"> {{ partial "post-list" . }} {{ partial "pagination" . }} </main> - - {{ partial "social" . }} {{ partial "footer" . }} - </div> - {{ partial "js" . }} - </body> </html>
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 02d6bb4..890f888 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,19 +1,12 @@ <footer class="legal" role="contentinfo" itemscope itemtype="http://schema.org/Person"> - <p> - <span itemprop="name"> + <ul> + <li itemprop="name"> <span itemprop="givenName">{{ .Site.Params.firstName }}</span> <span itemprop="familyName">{{ .Site.Params.lastName }}</span> - </span> - · {{ .Date.Format "2006" }} · - Merci à <a href="http://gohugo.io" title="Générateur de site static en Go">Hugo</a> <a href="//github>com/the2ne/hugo-frais" title="Theme entièrement créé de mes dix doigts">Frais</a>. - <em>Les cookies ça fait grossir, alors on s'en passe très bien.</em> - </p> - + </li> + <li>Powered by <a href="http://gohugo.io" title="Hugo">Hugo</a> and <a href="//github>com/the2ne/hugo-frais" title="Theme by Olivier Fredon">Hugo Frais</a>.</li> + </ul> <link itemprop="url" href="{{ .Site.BaseURL }}"> - <link itemprop="email" href="mailto:hello@olivierfredon.com"> - <link itemprop="worksFor" href="http://www.jechange.fr"> - <meta itemprop="jobTitle" content="UI Designer and Front-End Developer"> - <meta itemprop="additionalName" content="{{ .Site.Params.pseudo }}"> - <meta itemprop="gender" content="male"> - <meta itemprop="nationality" content="France"> + <link itemprop="email" href="mailto:{{ .Site.Params.email }}"> + {{ partial "social" . }} </footer> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 474260b..2b186df 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -3,14 +3,11 @@ <head> <meta charset="utf-8"> <title>{{ if .IsHome }}{{ .Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title> - {{ partial "meta.html" . }} {{ partial "meta_opengraph.html" . }} {{ partial "meta_twittercard.html" . }} - <base href="{{ .Site.BaseURL }}"> <link rel="canonical" href="{{ .Permalink }}"> {{ if .RSSlink }}<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Title }}" />{{ end }} - {{ partial "head_includes.html" . }} </head> diff --git a/layouts/partials/head_includes.html b/layouts/partials/head_includes.html index 3636050..9fb47cc 100644 --- a/layouts/partials/head_includes.html +++ b/layouts/partials/head_includes.html @@ -1,7 +1,4 @@ <link rel="stylesheet" href="/css/style.css"> -<!--[if (lt IE 9)&(!IEMobile)]> -<link rel="stylesheet" type="text/css" href="/css/enhanced.css" /> -<![endif]--> <link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png"> <link rel="icon" type="image/png" href="/img/favicon-32x32.png" sizes="32x32"> @@ -10,4 +7,4 @@ <link rel="mask-icon" href="/img/safari-pinned-tab.svg" color="#636363"> <meta name="apple-mobile-web-app-title" content="{{ .Site.Title }}"> <meta name="application-name" content="{{ .Site.Title }}"> -<meta name="theme-color" content="#333333">
\ No newline at end of file +<meta name="theme-color" content="#333333"> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 76f2bd9..a6b633d 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,8 +1,8 @@ <header class="headlines" role="banner"> <h1 class="headlines__title"> - {{ if .IsPage }}<a href="/" title="Retourner à l'accueil">{{ end }} + {{ if .IsPage }}<a href="{{ .Site.BaseURL }}">{{ end }} {{ .Site.Params.headline }} {{ if .IsPage }}</a>{{ end }} </h1> - <h2 class="headlines__baseline" lang="en">{{ .Site.Params.baseline }}</h2> + <h2 class="headlines__baseline">{{ .Site.Params.baseline }}</h2> </header> diff --git a/layouts/partials/js.html b/layouts/partials/js.html index d64a8e5..7da97a5 100644 --- a/layouts/partials/js.html +++ b/layouts/partials/js.html @@ -1,2 +1,2 @@ -<script type="text/javascript" src="/js/vendor/konami.js"></script> -<script type="text/javascript" src="/js/easteregg.js"></script> +<!-- Add your js files --> +<!-- e.g. <script type="text/javascript" src="/js/vendor/jquery.min.js"></script> --> diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html index 528b8ab..5defb8f 100644 --- a/layouts/partials/navigation.html +++ b/layouts/partials/navigation.html @@ -1,5 +1,5 @@ {{ if .Site.Menus.main }} -<nav class="menu wrapper" role="navigation" id="menu-principal" aria-label="menu principal"> +<nav class="menu" role="navigation" id="main-menu"> <ul class="menu__items"> {{ range .Site.Menus.main }} <li class="item"><a href="{{.URL}}">{{ .Name }}</a></li> diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index 934b8f7..40a54e8 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -2,13 +2,13 @@ <nav class="pagination" role="pagination"> {{ if .Paginator.HasPrev }} <section class="pagination__prev"> - <a class="newer" href="{{ .Paginator.Prev.URL }}" title="Article précédent : {{ .Prev.Title }}">{{.Prev.Title}}</a> + <a class="newer" href="{{ .Paginator.Prev.URL }}" title="{{ .Prev.Title }}">{{.Prev.Title}}</a> </section> {{ end }} - <span class="pagination__current">Page {{ .Paginator.PageNumber }} sur {{ .Paginator.TotalPages }}</span> + <span class="pagination__current">Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</span> {{ if .Paginator.HasNext }} <section class="pagination__next"> - <a class="older" href="{{ .Paginator.Next.URL }}" title="Article suivant : {{ .Next.Title }}">{{.Next.Title}}</a> + <a class="older" href="{{ .Paginator.Next.URL }}" title="{{ .Next.Title }}">{{.Next.Title}}</a> </section> {{ end }} </nav> diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html index 0704904..2a15b6c 100644 --- a/layouts/partials/post-meta.html +++ b/layouts/partials/post-meta.html @@ -1,20 +1,13 @@ {{ $baseurl := .Site.BaseURL }} -<footer class="post-meta"> - <section class="post-meta__date"> - <time datetime="{{ .Date.Format "2006-01-02" }}" itemprop="datePublished">{{ .Date.Format "02 January 2006" }}</time> - </section> - <section class="post-meta__tags"> - {{ range .Params.tags }} - <a href="{{ $baseurl }}tags/{{ . }}">{{ . }} </a> - {{ end }} - </section> - <section class="post-meta__categories"> - {{ range .Params.categories }} - <a href="{{ $baseurl }}/categories/{{ . | urlize }}">{{ . }}</a> - {{ end }} - </section> - <meta itemprop="url" content="{{ .Permalink }}"> - <meta itemprop="author" content="{{ .Site.Params.author }}"> - <meta itemprop="wordCount" content="{{ .WordCount }}" /> - <meta itemprop="timeRequired" content="{{ .ReadingTime }} Min" /> -</footer> +<section class="post-meta__date"> + <time datetime="{{ .Date.Format "2006-01-02" }}" itemprop="datePublished">{{ .Date.Format "02 January 2006" }}</time> +</section> +<section class="post-meta__tags"> + {{ range .Params.tags }} + <a href="{{ $baseurl }}tags/{{ . }}">{{ . }} </a> + {{ end }} +</section> +<meta itemprop="url" content="{{ .Permalink }}"> +<meta itemprop="author" content="{{ .Site.Params.author }}"> +<meta itemprop="wordCount" content="{{ .WordCount }}" /> +<meta itemprop="timeRequired" content="{{ .ReadingTime }} Min" /> diff --git a/layouts/partials/social.html b/layouts/partials/social.html index 39bc270..9f9a082 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -1,31 +1,13 @@ <aside> - <ul class="social-networks" lang="en"> + <ul class="social-networks"> <li class="twitter"> - <a href="https://twitter.com/{{ .Site.Params.twitter }}" title="Follow me"> - <span class="visua11y-hidden">Twitter</span> - <svg id="twitter" class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" aria-labelledby="title" role="img" width="24" height="24"> - <title>Twitter</title> - <path d="M26.3,6.3A6.4,6.4,0,0,0,29,2.8a11.8,11.8,0,0,1-3.9,1.6,5.9,5.9,0,0,0-4.4-2,6.3,6.3,0,0,0-6.1,6.4,6.7,6.7,0,0,0,.2,1.5A17,17,0,0,1,2.2,3.5a6.7,6.7,0,0,0-.8,3.2A6.5,6.5,0,0,0,4.1,12a5.9,5.9,0,0,1-2.8-.8h0a6.3,6.3,0,0,0,4.9,6.3l-1.6.2H3.5a6.1,6.1,0,0,0,5.7,4.5,11.8,11.8,0,0,1-7.6,2.7H.2a16.6,16.6,0,0,0,9.3,2.9c11.2,0,17.3-9.8,17.3-18.3,0-.3,0-.6,0-.8a12.7,12.7,0,0,0,3-3.3,11.7,11.7,0,0,1-3.5,1Zm0,0"/> - </svg> - </a> + <a href="https://twitter.com/{{ .Site.Params.twitter }}" title="Follow me">Twitter</a> </li> <li class="github"> - <a href="https://github.com/{{ .Site.Params.github }}" title="Fork me"> - <span class="visua11y-hidden">GitHub</span> - <svg id="github" class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" aria-labelledby="title" role="img" width="24" height="24"> - <title>GitHub</title> - <path d="M0,15.4A15.4,15.4,0,0,0,10.3,30c.8.1,1-.3,1-.7s0-1.3,0-2.6c-4.2.9-5.1-2.1-5.1-2.1a4,4,0,0,0-1.7-2.2c-1.4-1,.1-.9.1-.9A3.2,3.2,0,0,1,6.9,23a3.1,3.1,0,0,0,4.4,1.3,3.3,3.3,0,0,1,1-2.1c-3.3-.4-6.8-1.7-6.8-7.6A6,6,0,0,1,7,10.4a5.7,5.7,0,0,1,.1-4.1S8.4,6,11.2,8a13.9,13.9,0,0,1,7.5,0c2.9-2,4.1-1.6,4.1-1.6a5.7,5.7,0,0,1,.1,4.1,6,6,0,0,1,1.5,4.1c0,5.9-3.5,7.2-6.8,7.6a3.7,3.7,0,0,1,1,2.8c0,2.1,0,3.7,0,4.2s.3.9,1,.7A15.4,15.4,0,0,0,30,15.4,15.2,15.2,0,0,0,15,0,15.2,15.2,0,0,0,0,15.4Zm0,0"/> - </svg> - </a> + <a href="https://github.com/{{ .Site.Params.github }}" title="Fork me">GitHub</a> </li> <li class="linkedin"> - <a href="https://fr.linkedin.com/in/{{ .Site.Params.linkedin }}" title="About me"> - <span class="visua11y-hidden">LinkedIn</span> - <svg id="linkedin" class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" aria-labelledby="title" role="img" width="24" height="24"> - <title>LinkedIn</title> - <path d="M.8,9.6H6.6V30H.8V9.6ZM3.5,7.1h0A3.4,3.4,0,0,1,0,3.5,3.4,3.4,0,0,1,3.6,0,3.4,3.4,0,0,1,7.1,3.5,3.4,3.4,0,0,1,3.5,7.1ZM30,30H23.4V19.5c0-2.8-1-4.6-3.3-4.6a3.4,3.4,0,0,0-3.2,2.5,5.1,5.1,0,0,0-.1,1.7V30H10.2s.1-18.7,0-20.4h6.6v3.2c.4-1.4,2.5-3.4,5.8-3.4S30,12.4,30,18.7V30Zm0,0"/> - </svg> - </a> + <a href="https://fr.linkedin.com/in/{{ .Site.Params.linkedin }}" title="About me">LinkedIn</a> </li> </ul> </aside> diff --git a/layouts/robots.txt b/layouts/robots.txt deleted file mode 100644 index d0e5f1b..0000000 --- a/layouts/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# www.robotstxt.org/ - -# Allow crawling of all content -User-agent: * -Disallow: diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html deleted file mode 100644 index 7ec4955..0000000 --- a/layouts/shortcodes/img.html +++ /dev/null @@ -1,18 +0,0 @@ -<!-- image --> -<figure {{ with .Get "class" }}class="{{.}}"{{ end }}> - {{ with .Get "link"}}<a href="{{.}}">{{ end }} - <img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }} /> - {{ if .Get "link"}}</a>{{ end }} - {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}} - <figcaption>{{ if isset .Params "title" }} - <h4>{{ .Get "title" }}</h4>{{ end }} - {{ if or (.Get "caption") (.Get "attr")}}<p> - {{ .Get "caption" }} - {{ with .Get "attrlink"}}<a href="{{.}}"> {{ end }} - {{ .Get "attr" }} - {{ if .Get "attrlink"}}</a> {{ end }} - </p> {{ end }} - </figcaption> - {{ end }} -</figure> -<!-- image --> diff --git a/layouts/shortcodes/vimeo.html b/layouts/shortcodes/vimeo.html deleted file mode 100644 index 9dd8e7f..0000000 --- a/layouts/shortcodes/vimeo.html +++ /dev/null @@ -1,3 +0,0 @@ -<div class="embed video-player"> -<iframe src="http://player.vimeo.com/video/{{ index .Params 0 }}" width="640" height="385" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> -</div> diff --git a/layouts/shortcodes/youtube.html b/layouts/shortcodes/youtube.html deleted file mode 100644 index 610240b..0000000 --- a/layouts/shortcodes/youtube.html +++ /dev/null @@ -1,4 +0,0 @@ -<div class="embed video-player"> -<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/{{ index .Params 0 }}" allowfullscreen frameborder="0"> -</iframe> -</div> |