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

github.com/Chen-Zhe/photo-grid.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Zhe <chenzhesg@gmail.com>2021-01-30 08:49:24 +0300
committerChen Zhe <chenzhesg@gmail.com>2021-01-30 08:49:24 +0300
commit2fd32f7625e02c2d58f80213ea45f26f9cd0bfbd (patch)
tree0c73e661495f7c78fab5831b272deaac8486d5da
parentd12cf3304604aa1447c931e125baed0387ea9be3 (diff)
update footer styling and auto-date
-rw-r--r--exampleSite/config.toml2
-rw-r--r--layouts/partials/footer.html8
-rw-r--r--static/css/default.css8
3 files changed, 16 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 97f9ac4..5eab175 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -21,4 +21,6 @@ theme = "photo-grid"
bodytextcolor = "#f2f2f2"
# Footer text
+ copyright_since_year = 2012
+ copyright_text = "All images"
footertext = "Made by [Codrops](http://tympanus.net/codrops/2013/03/19/thumbnail-grid-with-expanding-preview/), [Hugo](http://gohugo.io), [Pavel](https://themes.gohugo.io/hugrid/) and [me](https://chen-zhe.github.io)."
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index dcdf07d..c5750f1 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,3 +1,7 @@
-<footer>
- {{ with .Site.Params.footertext }}{{ . | markdownify }}{{ end }}
+<footer>
+ <p>{{ .Site.Params.copyright_text }} © {{ .Site.Params.copyright_since_year }} - {{ now.Format "2006" }} {{ .Site.Params.author }}</p>
+ <p>{{ with .Site.Params.footertext }}{{ . | markdownify }}{{ end }}</p>
+ <p class="credits">Built with <a href="https://gohugo.io/" target="_blank">Hugo</a>
+ | Theme <a href="https://themes.gohugo.io/photo-grid/" target="_blank">Photo-Grid</a> by Chen Zhe
+ </p>
</footer> \ No newline at end of file
diff --git a/static/css/default.css b/static/css/default.css
index afee627..4a68e80 100644
--- a/static/css/default.css
+++ b/static/css/default.css
@@ -76,9 +76,17 @@ img.lazy{
}
footer {
+ text-align: center;
padding: 0.5em;
}
+footer > p.credits {
+ font-size: 0.6em;
+ font-style: bold;
+ padding-top: 0.4em;
+ opacity: 0.6;
+}
+
span.video-icon svg {
z-index: 1;
position: absolute;