mirror of https://github.com/onweru/compose.git

weru
06.10.2020 1626fddc1ec8f472a4ad1e0547ecf8fb6e598b33
update attribution section
2 files modified
14 ■■■■ changed files
exampleSite/config.toml 11 ●●●● patch | view | raw | blame | history
layouts/partials/footer.html 3 ●●●● patch | view | raw | blame | history
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/"
layouts/partials/footer.html
@@ -1,7 +1,8 @@
{{ if .Site.Params.enableCopyright | default true }}
<footer class="pt-2 pb-2">
  <div class="wrap">
    <p>&copy; {{ now.Year }} {{ .Site.Params.author }}</p>
    {{- $author := site.Params.author }}
    <p>&copy; <span class="year">{{ now.Year }}</span>{{ with $author }} <a href ="{{ .url }}" target="_blank" rel="noopener">{{ .name }}</a>{{ end }}</p>
  </div>
</footer>
{{ end }}