diff --git a/src/config.toml b/src/config.toml index 0b24e94..fe4331f 100644 --- a/src/config.toml +++ b/src/config.toml @@ -29,3 +29,5 @@ main_menu = [ copyright = "© $YEAR $AUTHOR" favicon_emoji = "🐧" + +source_code = "https://git.rbitton.com/rbitton/Website" diff --git a/src/templates/partials/footer.html b/src/templates/partials/footer.html new file mode 100644 index 0000000..1c6cbab --- /dev/null +++ b/src/templates/partials/footer.html @@ -0,0 +1,49 @@ +{%- if config.generate_feeds or config.extra.socials -%} +
++ {%- for line in config.extra.copyright | split(pat="::") %} + {% set year_string = [""] | join -%} + {%- set templated = line | trim | replace(from="$YEAR", to=year_string) | replace(from="$AUTHOR", to=config.author | default(value="")) -%} + {{ templated | markdown(inline=true) | safe }} + {%- endfor %} + + {% if config.extra.source_code %} + Site Source Code + {% endif %} +
+{% else -%} ++ © {{ config.author }} + Powered by Zola +
+{% endif -%}