aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2022-04-19 20:28:06 +0900
committernsfisis <nsfisis@gmail.com>2022-04-19 20:33:38 +0900
commit0dfaa9b0e79e45bfc40d10418443d1d868fbb930 (patch)
tree7e80f7fe58fcfeae6757f2f405696378b1435243 /themes
parent6e2a31185145d4690dbf897b56a682113ce62d8f (diff)
downloadnsfisis.github.io-0dfaa9b0e79e45bfc40d10418443d1d868fbb930.tar.gz
nsfisis.github.io-0dfaa9b0e79e45bfc40d10418443d1d868fbb930.tar.zst
nsfisis.github.io-0dfaa9b0e79e45bfc40d10418443d1d868fbb930.zip
update theme
Diffstat (limited to 'themes')
-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
-rw-r--r--themes/mypaper/static/apple-touch-icon.pngbin866 -> 0 bytes
-rw-r--r--themes/mypaper/static/favicon.icobin689 -> 0 bytes
-rw-r--r--themes/mypaper/static/favicon.svg27
7 files changed, 31 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 -->
diff --git a/themes/mypaper/static/apple-touch-icon.png b/themes/mypaper/static/apple-touch-icon.png
deleted file mode 100644
index 75ed2a4..0000000
--- a/themes/mypaper/static/apple-touch-icon.png
+++ /dev/null
Binary files differ
diff --git a/themes/mypaper/static/favicon.ico b/themes/mypaper/static/favicon.ico
deleted file mode 100644
index acfbca3..0000000
--- a/themes/mypaper/static/favicon.ico
+++ /dev/null
Binary files differ
diff --git a/themes/mypaper/static/favicon.svg b/themes/mypaper/static/favicon.svg
new file mode 100644
index 0000000..2d1559b
--- /dev/null
+++ b/themes/mypaper/static/favicon.svg
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg
+ width="100" height="100" viewBox="0 0 100 100"
+ xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
+>
+ <defs>
+ <g id="favicon.l">
+ <line x1="50" y1="5" x2="50" y2="50" stroke="white" stroke-width="2"/>
+ <path d="M 50 10 L 46 5 L 54 5" fill="white"/>
+ <path d="M 50 30 L 47 50 L 53 50" fill="white"/>
+ </g>
+ </defs>
+ <circle cx="50" cy="50" r="50" fill="orange"/>
+ <circle cx="50" cy="50" r="45" fill="orange" stroke="white" stroke-width="4"/>
+ <circle cx="50" cy="50" r="8" fill="white"/>
+ <use transform="rotate( 0, 50, 50)" xlink:href="#favicon.l"/>
+ <use transform="rotate( 36, 50, 50)" xlink:href="#favicon.l"/>
+ <use transform="rotate( 72, 50, 50)" xlink:href="#favicon.l"/>
+ <use transform="rotate(108, 50, 50)" xlink:href="#favicon.l"/>
+ <use transform="rotate(144, 50, 50)" xlink:href="#favicon.l"/>
+ <use transform="rotate(180, 50, 50)" xlink:href="#favicon.l"/>
+ <use transform="rotate(216, 50, 50)" xlink:href="#favicon.l"/>
+ <use transform="rotate(252, 50, 50)" xlink:href="#favicon.l"/>
+ <use transform="rotate(288, 50, 50)" xlink:href="#favicon.l"/>
+ <use transform="rotate(324, 50, 50)" xlink:href="#favicon.l"/>
+</svg>