aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/mypaper/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'themes/mypaper/layouts')
-rw-r--r--themes/mypaper/layouts/_default/list.html2
-rw-r--r--themes/mypaper/layouts/_default/single.html22
-rw-r--r--themes/mypaper/layouts/partials/footer.html2
-rw-r--r--themes/mypaper/layouts/partials/header.html5
4 files changed, 4 insertions, 27 deletions
diff --git a/themes/mypaper/layouts/_default/list.html b/themes/mypaper/layouts/_default/list.html
index 30acea5..f632c09 100644
--- a/themes/mypaper/layouts/_default/list.html
+++ b/themes/mypaper/layouts/_default/list.html
@@ -23,7 +23,7 @@
<p>{{ .Summary | plainify | htmlUnescape }}...</p>
</section>
<footer class="entry-footer">
- <time>{{ .Date.Format "January 2, 2006" }}</time>
+ <time>{{ .Date.Format "2006-01-02" }}</time>
</footer>
<a class="entry-link" href="{{ .Permalink }}"></a>
</article>
diff --git a/themes/mypaper/layouts/_default/single.html b/themes/mypaper/layouts/_default/single.html
index 103f9a1..06735a3 100644
--- a/themes/mypaper/layouts/_default/single.html
+++ b/themes/mypaper/layouts/_default/single.html
@@ -6,7 +6,7 @@
<div class="post-meta">
{{- if or .Params.Author .Site.Author.name }}
{{- .Params.Author | default .Site.Author.name }} · {{ end }}
- {{- .Date.Format "January 2, 2006" -}}
+ {{- .Date.Format "2006-01-02" -}}
</div>
</header>
<div class="post-content">{{ .Content }}</div>
@@ -20,26 +20,6 @@
</ul>
</footer>
{{- end }}
- <!-- Comments area start -->
- {{- if not (eq .Params.comments false) }}
- {{- if .Site.DisqusShortname }}
- <div id="disqus_thread"></div>
- <script>
- var disqus_shortname = '{{ .Site.DisqusShortname }}';
- (function() {
- var d = document, s = d.createElement('script');
- s.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
- s.setAttribute('data-timestamp', +new Date());
- (d.head || d.body).appendChild(s);
- })();
- </script>
- <noscript>
- Please enable JavaScript to view the
- <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a>
- </noscript>
- <!-- Comments area end -->
- {{- end }}
- {{- end }}
</article>
{{- partial "footer.html" . }}
diff --git a/themes/mypaper/layouts/partials/footer.html b/themes/mypaper/layouts/partials/footer.html
index ebc84ef..a7798d7 100644
--- a/themes/mypaper/layouts/partials/footer.html
+++ b/themes/mypaper/layouts/partials/footer.html
@@ -3,8 +3,6 @@
<span>&copy; {{ now.Year }} <a href="{{ "" | absURL }}">{{ .Site.Title }}</a></span>
<span>&middot;</span>
<span>Powered by <a href="https://gohugo.io/" rel="noopener" target="_blank">Hugo️️</a>️</span>
- <span>&middot;</span>
- <span>Theme️ <a href="https://github.com/nanxiaobei/hugo-paper" rel="noopener" target="_blank">Paper</a></span>
</footer>
<script src="{{ "highlight.min.js" | absURL }}"></script>
<script>
diff --git a/themes/mypaper/layouts/partials/header.html b/themes/mypaper/layouts/partials/header.html
index 9e56cac..830acd5 100644
--- a/themes/mypaper/layouts/partials/header.html
+++ b/themes/mypaper/layouts/partials/header.html
@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Title -->
- <title>{{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
+ <title>{{ if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
<!-- Meta -->
{{- if eq .Kind "page" }}
<meta name="description" content="{{ .Summary }}">
@@ -19,8 +19,7 @@
<link href="{{ "style.css" | absURL }}" rel="stylesheet">
<link href="{{ "custom.css" | absURL }}" rel="stylesheet">
<!-- Favicons -->
- <link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}">
- <link rel="icon" href="{{ "favicon.ico" | absURL }}">
+ <link rel="icon" href="{{ "favicon.svg" | absURL }}">
<!-- Generator -->
{{- hugo.Generator }}
<!-- RSS -->