From 1626fddc1ec8f472a4ad1e0547ecf8fb6e598b33 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Sun, 06 Dec 2020 17:10:46 +0000
Subject: [PATCH] update attribution section
---
exampleSite/config.toml | 11 +++++++++--
layouts/partials/footer.html | 3 ++-
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 4b03167..808f555 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -44,13 +44,14 @@
# Everything below this are Site Params
[params]
- author = "Weru"
- searchPlaceholder = "Search the docs ..."
+
repo = "https://github.com/onweru/compose"
time_format_blog = "Monday, January 02, 2006"
time_format_default = "January 2, 2006"
enableDarkMode = true # set to false to disable darkmode by default # user will still have the option to use dark mode
+
+ # Site logo
[params.logo]
lightMode = "compose.svg"
darkMode = "compose-light.svg"
@@ -59,3 +60,9 @@
name = "GitHub"
icon = "github.svg"
url = "https://github.com/onweru/compose/"
+
+ # optional
+ # attribution. Feel free to delete this
+ [params.author]
+ name = "Weru"
+ url = "https://neuralvibes.com/author/"
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index bb0144c..f4f2f3d 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,7 +1,8 @@
{{ if .Site.Params.enableCopyright | default true }}
<footer class="pt-2 pb-2">
<div class="wrap">
- <p>© {{ now.Year }} {{ .Site.Params.author }}</p>
+ {{- $author := site.Params.author }}
+ <p>© <span class="year">{{ now.Year }}</span>{{ with $author }} <a href ="{{ .url }}" target="_blank" rel="noopener">{{ .name }}</a>{{ end }}</p>
</div>
</footer>
{{ end }}
--
Gitblit v1.10.0