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

github.com/nanxiaobei/hugo-paper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/partials/head.html2
2 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index fac5bd9..d1b471e 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -3,7 +3,9 @@
<article class="post-single">
<header class="post-title">
<p>
+ {{ if .Date }}
<time>{{ .Date | time.Format ":date_medium" }}</time>
+ {{ end }}
{{ if or .Params.Author site.Author.name }}
<span>{{ .Params.Author | default site.Author.name }}</span>
{{ end }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index b2aaef6..af9acc0 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -61,6 +61,8 @@
<!---->
{{ template "_internal/google_analytics_async.html" . }}
<!---->
+ {{ template "_internal/google_analytics.html" . }}
+ <!---->
{{ template "_internal/google_news.html" . }}
<!---->
{{ template "_internal/opengraph.html" . }}