aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/style.css19
-rw-r--r--templates/category_repos.html3
-rw-r--r--templates/footer.html3
-rw-r--r--templates/index.html3
-rw-r--r--templates/repo_index.html3
-rw-r--r--templates/repo_tree_dir.html3
-rw-r--r--templates/repo_tree_file.html3
7 files changed, 34 insertions, 3 deletions
diff --git a/static/style.css b/static/style.css
index 4fe07ef..8116b0a 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 {
html, code, pre {
font-size: 1rem; /* TODO: Not always correct */
}
-
-.padding-wrapper {
+footer {
+ margin-top: 1rem;
+ margin-left: auto;
+ margin-right: auto;
+ display: block;
padding: 0 1rem;
- max-width: 50em;
+ width: fit-content;
+ text-align: center;
+ color: var(--light-text-color);
+}
+footer a:link, footer a:visited {
+ color: inherit;
+}
+.padding-wrapper {
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 aa4c926..917b62e 100644
--- a/templates/category_repos.html
+++ b/templates/category_repos.html
@@ -18,6 +18,9 @@
{{- end }}
</ul>
</div>
+ <footer>
+ {{ template "footer" . }}
+ </footer>
</body>
</html>
{{- end -}}
diff --git a/templates/footer.html b/templates/footer.html
new file mode 100644
index 0000000..b7a9061
--- /dev/null
+++ b/templates/footer.html
@@ -0,0 +1,3 @@
+{{- define "footer" -}}
+<a href="https://lindenii.runxiyu.org/forge/">Lindenii Forge</a> (<a href="/source/">source</a>, <a href="https://forge.lindenii.runxiyu.org/g/lindenii/repos/forge/">upstream</a>)
+{{- end -}}
diff --git a/templates/index.html b/templates/index.html
index 79e3cba..3f08355 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -18,6 +18,9 @@
{{- end }}
</ul>
</div>
+ <footer>
+ {{ template "footer" . }}
+ </footer>
</body>
</html>
{{- end -}}
diff --git a/templates/repo_index.html b/templates/repo_index.html
index 7ae7bcd..664cce8 100644
--- a/templates/repo_index.html
+++ b/templates/repo_index.html
@@ -83,6 +83,9 @@
</table>
{{ end }}
</div>
+ <footer>
+ {{ template "footer" . }}
+ </footer>
</body>
</html>
{{- end -}}
diff --git a/templates/repo_tree_dir.html b/templates/repo_tree_dir.html
index 60d9ede..aa29542 100644
--- a/templates/repo_tree_dir.html
+++ b/templates/repo_tree_dir.html
@@ -56,6 +56,9 @@
</table>
{{ end }}
</div>
+ <footer>
+ {{ template "footer" . }}
+ </footer>
</body>
</html>
{{- end -}}
diff --git a/templates/repo_tree_file.html b/templates/repo_tree_file.html
index b1ba877..7012cb1 100644
--- a/templates/repo_tree_file.html
+++ b/templates/repo_tree_file.html
@@ -11,6 +11,9 @@
/{{ .path_spec }}
</p>
{{ .file_contents }}
+ <footer>
+ {{ template "footer" . }}
+ </footer>
</body>
</html>
{{- end -}}