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

github.com/cntrump/hugo-notepadium.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLvv.me <cntrump@gmail.com>2021-04-20 12:48:20 +0300
committerLvv.me <cntrump@gmail.com>2021-04-20 12:48:20 +0300
commit635d642ae233e104f909e8cc8be12cddc0400401 (patch)
tree36a116b1da0ad2145709b44a5d105f1773894652
parent7691888e438ef5a127c767f4ac55e958119c3642 (diff)
support ipv6ready logo on footer.
-rw-r--r--README.md1
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/copyright.html2
-rw-r--r--layouts/partials/ipv6ready.html8
4 files changed, 11 insertions, 1 deletions
diff --git a/README.md b/README.md
index 5ffc158..031904d 100644
--- a/README.md
+++ b/README.md
@@ -74,6 +74,7 @@ logo = "" # if you have a logo png
slogan = "100% JavaScript-free"
license = "" # CC License
fullRss = false # Puts entire HTML post into rss 'description' tag. If unset, default is false.
+ipv6ready = true # Show IPV6Ready logo on footer.
[params.comments]
enable = false # En/Disable comments globally, default: false. You can always enable comments on per page.
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 39464f7..bdb80e1 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -32,6 +32,7 @@ readingTime = false # show reading time after article date
logo = ""
slogan = "100% JavaScript-free"
#license = "<a rel=license href=http://creativecommons.org/licenses/by-nc-sa/4.0/><img alt=Creative Commons License style=border-width:0 src=https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png /></a><br />This work is licensed under a <a rel=license href=http://creativecommons.org/licenses/by-nc-sa/4.0/>Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>."
+ipv6ready = true
[params.assets]
css = ["css/fonts.css"]
diff --git a/layouts/partials/copyright.html b/layouts/partials/copyright.html
index 215f256..5cfedef 100644
--- a/layouts/partials/copyright.html
+++ b/layouts/partials/copyright.html
@@ -3,6 +3,6 @@
<p class="copyright">{{- $copyright -}}</p>
<p class="powerby"><span>Powered&nbsp;by&nbsp;</span><a href="https://gohugo.io"
target="_blank" rel="noopener noreferrer">Hugo</a><span>&nbsp;&amp;&nbsp;</span><a href="https://themes.gohugo.io/hugo-notepadium/"
- target="_blank" rel="noopener noreferrer">Notepadium</a></p>
+ target="_blank" rel="noopener noreferrer">Notepadium</a> {{- partial "ipv6ready.html" . -}}</p>
{{- partial "beian.html" . -}}
</div>
diff --git a/layouts/partials/ipv6ready.html b/layouts/partials/ipv6ready.html
new file mode 100644
index 0000000..f35d6bf
--- /dev/null
+++ b/layouts/partials/ipv6ready.html
@@ -0,0 +1,8 @@
+{{- if site.Params.ipv6ready -}}
+<!-- IPv6-test.com button BEGIN -->
+<a href='http://ipv6-test.com/validate.php?url=referer'
+ ><img src='http://ipv6-test.com/button-ipv6-80x15.png'
+ alt='ipv6 ready' title='ipv6 ready' border='0'
+/></a>
+<!-- IPv6-test.com button END -->
+{{- end -}} \ No newline at end of file