Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/the2ne/hugo-frais.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fredon <the2ne@gmail.com>2016-10-08 18:06:28 +0300
committerOlivier Fredon <the2ne@gmail.com>2016-10-08 18:06:28 +0300
commitf234b60fff7ec22a8d706d0ff1faa44ada31da99 (patch)
tree16cecd67d998cf73cce431df4c03e2699ececb07 /layouts
parent7063b55e65e1ca1cb229421b333da01b70378406 (diff)
fix params item and add pagination template
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/partials/header.html4
-rw-r--r--layouts/partials/meta.html2
-rw-r--r--layouts/partials/meta_opengraph.html2
-rw-r--r--layouts/partials/meta_twittercard.html2
5 files changed, 6 insertions, 6 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 5006ef4..b806a3f 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -16,7 +16,7 @@
</section>
</article>
</main>
-
+ {{ partial "pagination" . }}
{{ partial "social" . }}
{{ partial "footer" . }}
{{ partial "konami" . }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 3430252..4a3b89e 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,8 +1,8 @@
<header class="headlines" itemscope itemtype="http://schema.org/Person" role="banner">
<h1 class="headlines__title" itemprop="name">
- {{ if .IsHome }}<a href="/" title="Retourner à l'accueil">{{ end }}
+ {{ if .IsPage }}<a href="/" title="Retourner à l'accueil">{{ end }}
<span itemprop="givenName">Olivier</span> <span itemprop="familyName"> Fredon</span>
- {{ if .IsHome }}</a>{{ end }}
+ {{ if .IsPage }}</a>{{ end }}
</h1>
<h2 class="headlines__baseline" itemprop="jobTitle" lang="en">UI Designer &amp; <wbr>Front-End Developer</h2>
</header>
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
index 6ea8b4f..63f65fb 100644
--- a/layouts/partials/meta.html
+++ b/layouts/partials/meta.html
@@ -1,4 +1,4 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="{{ .Site.Params.author }}">
-<meta name="description" content="{{ with .Description }}{{ . }}{{ end }}" />
+<meta name="description" content="{{ if .IsHome}}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}" />
diff --git a/layouts/partials/meta_opengraph.html b/layouts/partials/meta_opengraph.html
index 45e3afe..abc3631 100644
--- a/layouts/partials/meta_opengraph.html
+++ b/layouts/partials/meta_opengraph.html
@@ -1,7 +1,7 @@
<!-- Opengraph -->
<meta property="og:locale" content="{{ .Site.LanguageCode }}">
<meta property="og:title" content="{{ .Title }}" />
-<meta property="og:description" content="{{ .Description }}" />
+<meta property="og:description" content="{{ if .IsHome}}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}" />
<meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:url" content="{{ .Permalink }}" />
diff --git a/layouts/partials/meta_twittercard.html b/layouts/partials/meta_twittercard.html
index 4cd039a..b0caf3c 100644
--- a/layouts/partials/meta_twittercard.html
+++ b/layouts/partials/meta_twittercard.html
@@ -1,7 +1,7 @@
<!-- Twitter Card -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="{{ .Title }}" />
-<meta name="twitter:description" content="{{ .Description }}" />
+<meta name="twitter:description" content="{{ if .IsHome}}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}" />
<meta name="twitter:url" content="{{ .Permalink }}" />
<meta name="twitter:image:src" content="{{ .Site.BaseURL }}/media/twitter-card.jpg">
<meta name="twitter:domain" content="{{ .Site.BaseURL }}">