From 9990f9af26c243764b3c588491ce66b67e3099f2 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 12 Jan 2023 19:49:17 +0100 Subject: Introduce footer partial This allows to re-use the footer code. --- layouts/git/list.html | 5 +---- layouts/git/single.html | 5 +---- layouts/index.html | 5 +---- layouts/partials/footer.html | 4 ++++ 4 files changed, 7 insertions(+), 12 deletions(-) create mode 100644 layouts/partials/footer.html diff --git a/layouts/git/list.html b/layouts/git/list.html index 65ed807..39a2563 100644 --- a/layouts/git/list.html +++ b/layouts/git/list.html @@ -53,10 +53,7 @@ {{ end -}} - + {{ partial "footer.html" . }} diff --git a/layouts/git/single.html b/layouts/git/single.html index 51ccbad..69c8a80 100644 --- a/layouts/git/single.html +++ b/layouts/git/single.html @@ -35,10 +35,7 @@ {{.Content}} - + {{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 85086a9..88d5dd9 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -70,10 +70,7 @@ {{ end }} - + {{ partial "footer.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..e7de22e --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,4 @@ + -- cgit v1.2.3-70-g09d2