summary history branches tags files
commit:dc594853d29ad4f79c5d9e7704b0bc018d481910
author:Trevor Bentley
committer:Trevor Bentley
date:Sun Jan 15 03:58:18 2023 +0100
parents:88b7524b4a0851db96a71018ef28c716b2d0c986
give footer a backlink
diff --git a/config.toml b/config.toml
line changes: +1/-0
index 9d2d744..33261b6
--- a/config.toml
+++ b/config.toml
@@ -487,6 +487,7 @@ cloned_repos  = "cloned_repos/"
 ###############################################################################
 [gitsy_extra]
 generated_by = "Itsy-Gitsy"
+generated_by_url = "https://git.trevorbentley.com/itsy-gitsy/"
 #global_user_defined_var = "whatever"
 #these_can_also_be_numbers = 5
 #or_bools = true

diff --git a/templates/footer.html b/templates/footer.html
line changes: +4/-0
index 7493bdb..2ce9c48
--- a/templates/footer.html
+++ b/templates/footer.html
@@ -1,3 +1,7 @@
 <div class="footer">
 <hr/>
+{% if extra and extra.generated_by_url -%}
+Generated by <a href="{{extra.generated_by_url | safe}}">{{extra | get(key="generated_by", default="Itsy-Gitsy")}}</a> on {{ts_to_git_timestamp(ts=site_generated_ts, tz=site_generated_offset)}}</div>
+{% else -%}
 Generated by {{extra | get(key="generated_by", default="Itsy-Gitsy")}} on {{ts_to_git_timestamp(ts=site_generated_ts, tz=site_generated_offset)}}</div>
+{% endif -%}