diff options
author | Track3 <pengliabc@live.cn> | 2019-01-01 09:06:04 +0300 |
---|---|---|
committer | Track3 <pengliabc@live.cn> | 2019-01-01 09:06:04 +0300 |
commit | f38b9203b28aa8b2799d8de7a5c57a1a4aa4be0c (patch) | |
tree | 3b301bb41b937e1c0da9c380f20ddd3f91141ce2 | |
parent | 8a3041d5ee8cec1a1574bbb901f0139873e53bb7 (diff) |
Add home footer copyright
* See #25
-rw-r--r-- | layouts/index.html | 5 | ||||
-rw-r--r-- | layouts/partials/footer.html | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html index 8a2f798..0535cbb 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -24,7 +24,10 @@ </nav> </div> <div id="home-footer"> - <p>© {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>. {{ with (not (in (.Site.Language.Get "disableKinds") "RSS")) }}<a href="{{ "posts/index.xml" | absURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a>{{ end }}</p> + <p> + © {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>{{ .Site.Params.footerCopyright | safeHTML }} + {{- with (not (in (.Site.Language.Get "disableKinds") "RSS")) }} · <a href="{{ "posts/index.xml" | absURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a>{{ end }} + </p> </div> </div> {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 4b41b33..7b5bc67 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,4 +1,7 @@ <footer id="site-footer" class="section-inner thin animated fadeIn faster"> <p>© {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>{{ .Site.Params.footerCopyright | safeHTML }}</p> - <p>Made with <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a> · Theme <a href="https://github.com/Track3/hermit" target="_blank" rel="noopener">Hermit</a>{{ with (not (in (.Site.Language.Get "disableKinds") "RSS")) }} · <a href="{{ "posts/index.xml" | absURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a>{{ end }}</p> + <p> + Made with <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a> · Theme <a href="https://github.com/Track3/hermit" target="_blank" rel="noopener">Hermit</a> + {{- with (not (in (.Site.Language.Get "disableKinds") "RSS")) }} · <a href="{{ "posts/index.xml" | absURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a>{{ end }} + </p> </footer> |