diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-06-15 17:45:45 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-06-15 17:45:45 +0800 |
commit | fffff01e0e232a3cac8729d47167d8f07f561935 (patch) | |
tree | fa11ec142c1ae7415a24a013bab4b438ed3eff88 | |
parent | 75689d79e430a775966e74ec71dd1abdadfde11b (diff) | |
download | crupest-fffff01e0e232a3cac8729d47167d8f07f561935.tar.gz crupest-fffff01e0e232a3cac8729d47167d8f07f561935.tar.bz2 crupest-fffff01e0e232a3cac8729d47167d8f07f561935.zip |
www: update ending hr of article.
-rw-r--r-- | www/assets/res/css/single.css | 8 | ||||
-rw-r--r-- | www/layouts/baseof.html | 2 | ||||
-rw-r--r-- | www/layouts/single.html | 6 |
3 files changed, 6 insertions, 10 deletions
diff --git a/www/assets/res/css/single.css b/www/assets/res/css/single.css index 70325d1..3d8ee0f 100644 --- a/www/assets/res/css/single.css +++ b/www/assets/res/css/single.css @@ -10,11 +10,3 @@ margin-inline-end: auto; } } - -.end-hr { - border: none; - width: 8em; - margin-block-start: 1.5em; - margin-inline-start: 0; - border-top: 1px dashed black; -} diff --git a/www/layouts/baseof.html b/www/layouts/baseof.html index 6d00be5..b9cd715 100644 --- a/www/layouts/baseof.html +++ b/www/layouts/baseof.html @@ -26,6 +26,8 @@ {{ end }} <hr/> <footer class="mono-link"> + {{ block "footer" . }} + {{ end }} <p id="license"> <small>This work is licensed under <a rel="license noopener noreferrer" diff --git a/www/layouts/single.html b/www/layouts/single.html index cd0e9c5..33360b4 100644 --- a/www/layouts/single.html +++ b/www/layouts/single.html @@ -18,6 +18,8 @@ {{ end}} </p> {{ .Content }} - <hr class="end-hr"/> - {{ partial "nav.html" . }} {{ end }} + +{{ define "footer" }} + {{ partial "nav.html" . }} +{{ end }}
\ No newline at end of file |