From 6285ebff7e53657b2ca3b7cfa726e2fef524f0ce Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 10 Feb 2025 21:49:06 +0800 Subject: [PATCH] footer.html: Add link to Lindenii Forge --- static/style.css | 19 ++++++++++++++++--- templates/category_repos.html | 3 +++ templates/footer.html | 3 +++ templates/index.html | 3 +++ templates/repo_index.html | 3 +++ templates/repo_tree_dir.html | 3 +++ templates/repo_tree_file.html | 3 +++ diff --git a/static/style.css b/static/style.css index 4fe07ef2ad3dfe12f87f18f79691a0c63fde9500..8116b0af86dd682ffdc8b8051cf8138439802363 100644 --- a/static/style.css +++ b/static/style.css @@ -1,6 +1,7 @@ html { font-family: sans-serif; --link-color: hsl(320, 50%, 36%); + --light-text-color: hsl(0, 0%, 65%); --darker-border-color: hsl(0, 0%, 72%); --lighter-border-color: hsl(0, 0%, 85%); --text-decoration-color: hsl(0, 0%, 72%); @@ -10,11 +11,23 @@ } html, code, pre { font-size: 1rem; /* TODO: Not always correct */ } - +footer { + margin-top: 1rem; + margin-left: auto; + margin-right: auto; + display: block; + padding: 0 1rem; + width: fit-content; + text-align: center; + color: var(--light-text-color); +} +footer a:link, footer a:visited { + color: inherit; +} .padding-wrapper { - padding: 0 1rem; - max-width: 50em; margin: 1rem auto; + max-width: 50em; + padding: 0 1rem; } .padding-wrapper > * { width: 100%; diff --git a/templates/category_repos.html b/templates/category_repos.html index aa4c9262311bf843a21b2840e67ccd15cdbc9ad6..917b62e5f7134dae3361738adafa7cbde113a955 100644 --- a/templates/category_repos.html +++ b/templates/category_repos.html @@ -18,6 +18,9 @@ {{- end }} + {{- end -}} diff --git a/templates/footer.html b/templates/footer.html new file mode 100644 index 0000000000000000000000000000000000000000..b7a9061d37ef4bcc692ad14d42d6abab8cce48b3 --- /dev/null +++ b/templates/footer.html @@ -0,0 +1,3 @@ +{{- define "footer" -}} +Lindenii Forge (source, upstream) +{{- end -}} diff --git a/templates/index.html b/templates/index.html index 79e3cba281ebef4c1d228974356b9442a0c40f83..3f0835513fbedb46b91b5bfa65116b4bfe665b82 100644 --- a/templates/index.html +++ b/templates/index.html @@ -18,6 +18,9 @@ {{- end }} + {{- end -}} diff --git a/templates/repo_index.html b/templates/repo_index.html index 7ae7bcdfe6cfebebddfb32d8cd4edb0a2e8f3218..664cce8a4a4c42e704d20a02a1d0f99349602b49 100644 --- a/templates/repo_index.html +++ b/templates/repo_index.html @@ -83,6 +83,9 @@ {{ end }} + {{- end -}} diff --git a/templates/repo_tree_dir.html b/templates/repo_tree_dir.html index 60d9edef1ab7ed446b91bc43eb55fe2e13332f09..aa29542727c658dd53a6c0cc0543c064a2464050 100644 --- a/templates/repo_tree_dir.html +++ b/templates/repo_tree_dir.html @@ -56,6 +56,9 @@ {{ end }} + {{- end -}} diff --git a/templates/repo_tree_file.html b/templates/repo_tree_file.html index b1ba877498e0fd7516547ced73f70aa9f3d549ce..7012cb1ca9f8a17af47bd9525b4eea10abffd2e9 100644 --- a/templates/repo_tree_file.html +++ b/templates/repo_tree_file.html @@ -11,6 +11,9 @@

/{{ .path_spec }}

{{ .file_contents }} + {{- end -}} -- 2.48.1