diff options
author | Darshan Baral <darshanbaral@gmail.com> | 2019-09-10 06:19:33 +0300 |
---|---|---|
committer | Darshan Baral <darshanbaral@gmail.com> | 2019-09-10 06:19:33 +0300 |
commit | 7f578ae159f9a84180254f317044c54d6cda3cee (patch) | |
tree | b770db45e8e2ca9e901c8661b0b6f330040769a2 | |
parent | 5206e7e0d8df9c084f9c8f54602e05a467350ab9 (diff) |
Added option to hide attribute
-rw-r--r-- | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | layouts/partials/footer.html | 21 |
2 files changed, 14 insertions, 9 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 4c233fe..a68f84d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -13,6 +13,8 @@ theme = "aafu" # Available themes are 'light', 'dark', and 'pinkish'
mainTheme = "light"
altTheme = "dark"
+ # setting false below will hide 'aafu by darshan' displayed under the profile pic
+ showAttribute = true
[params.favicons]
use = true
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 7ee5e74..a28cc2a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,12 +1,15 @@ <footer class="mb-4">
- <span class="markdownify">{{ .Site.Params.copyright | markdownify }}</span> ·
- <i>
- <a href="https://github.com/darshanbaral/aafu">
- aafu
+ <span class="markdownify">{{ .Site.Params.copyright | markdownify }}</span>
+ <span {{ if not .Site.Params.theme.showAttribute }}style="font-size:0px;"{{ end }}>
+ ·
+ <i>
+ <a href="https://github.com/darshanbaral/aafu">
+ aafu
+ </a>
+ </i>
+ by
+ <a href="https://www.darshanbaral.com/">
+ darshan
</a>
- </i>
- by
- <a href="https://www.darshanbaral.com/">
- darshan
- </a>
+ </span>
</footer>
|