aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/footer.html
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-08-27 22:38:42 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-08-27 22:38:42 +0800
commit3c6cb7f29631dfcdd954e7cbd5d2370efe7eb827 (patch)
treed374e090981dda28452dbd13400e377b9cc06277 /layouts/partials/footer.html
🎉 first commit
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r--layouts/partials/footer.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..246f26a
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,37 @@
+<div class="social-links">
+ {{- range $name, $path := .Site.Params.social }}
+ {{- if $path }}
+ {{- $realName := slicestr $name 2 }}
+ {{- if eq $realName "email" }}
+ <a href="mailto:{{ $path }}" class="iconfont icon-{{ $realName }}" title="{{ $realName }}"></a>
+ {{- else }}
+ <a href="{{ $path }}" class="iconfont icon-{{ $realName }}" title="{{ $realName }}"></a>
+ {{- end }}
+ {{- end }}
+ {{- end }}
+ <a href="{{ .Site.RSSLink }}" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
+</div>
+
+<div class="copyright">
+ <span class="power-by">
+ {{ (printf .Site.Data.even.default.footer.powered `<a class="hexo-link" href="https://gohugo.io">Hugo</a>`) | safeHTML }}
+ </span>
+ <span class="division">|</span>
+ <span class="theme-info">
+ {{ .Site.Data.even.default.footer.theme }} -
+ <a class="theme-link" href="https://github.com/ahonn/hexo-theme-even">Even</a>
+ </span>
+
+ <span class="copyright-year">
+ {{- $current := now.Format "2006" }}
+ &copy;
+ {{ if ne .Site.Params.since $current }}
+ {{ .Site.Params.since }} -
+ {{ end }}
+ {{- $current }}
+ <span class="heart">
+ <i class="iconfont icon-heart"></i>
+ </span>
+ <span class="author">{{ .Site.Author.name }}</span>
+ </span>
+</div> \ No newline at end of file