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 | f2549905c848bcad28cb1f32373aed9cdcb43921 (patch) | |
tree | 2e011b2da8a05320597c54a231a75031bb323f3f | |
parent | fdee23fbc10f81bdd9f9c2ade962aca988e77471 (diff) | |
download | crupest-f2549905c848bcad28cb1f32373aed9cdcb43921.tar.gz crupest-f2549905c848bcad28cb1f32373aed9cdcb43921.tar.bz2 crupest-f2549905c848bcad28cb1f32373aed9cdcb43921.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 |