diff options
-rw-r--r-- | www/assets/res/css/article.css | 10 | ||||
-rw-r--r-- | www/assets/res/css/base.css | 8 | ||||
-rw-r--r-- | www/assets/res/css/single.css | 8 | ||||
-rw-r--r-- | www/content/notes/cheat-sheet.md | 2 | ||||
-rw-r--r-- | www/layouts/_partials/preview/posts.html | 6 | ||||
-rw-r--r-- | www/layouts/baseof.html | 2 | ||||
-rw-r--r-- | www/layouts/home.html | 4 | ||||
-rw-r--r-- | www/layouts/list.html | 1 | ||||
-rw-r--r-- | www/layouts/single.html | 6 |
9 files changed, 29 insertions, 18 deletions
diff --git a/www/assets/res/css/article.css b/www/assets/res/css/article.css index 9629597..93f86ef 100644 --- a/www/assets/res/css/article.css +++ b/www/assets/res/css/article.css @@ -2,9 +2,6 @@ font-size: 0.95em; padding-inline: 0.5em; padding-block: 0.5em; - margin-block-end: 0.5em; - border-radius: 3px; - background-color: hsl(33, 100%, 98%); & > p { font-size: 0.9em; @@ -20,8 +17,8 @@ & > .date { font-size: small; + margin-top: 0.3em; float: right; - margin-inline-end: 1.5em; color: hsl(0, 0%, 25%); } @@ -40,3 +37,8 @@ html[data-theme="dark"] { } } } + +hr.article-preview-hr { + border: none; + border-top: 1.5px dashed currentColor; +} diff --git a/www/assets/res/css/base.css b/www/assets/res/css/base.css index 06fcb4b..77cd804 100644 --- a/www/assets/res/css/base.css +++ b/www/assets/res/css/base.css @@ -20,6 +20,12 @@ body { background-color: var(--body-bg-color); } +/* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/Heading_Elements#specifying_a_uniform_font_size_for_h1 */ +h1 { + margin-block: 0.67em; + font-size: 2em; +} + .mono { font-family: monospace; } @@ -39,7 +45,7 @@ table { border-collapse: collapse; &, :is(td,th) { - padding: 0.4em; + padding: 0.2em 0.4em; border: 1px solid var(--table-border-color); } } 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/content/notes/cheat-sheet.md b/www/content/notes/cheat-sheet.md index 9f90f08..2f30140 100644 --- a/www/content/notes/cheat-sheet.md +++ b/www/content/notes/cheat-sheet.md @@ -41,7 +41,7 @@ docker run -it --rm -v "./data/git/user-info:/user-info" httpd htpasswd /user-in A complete command is `[prefix] [docker (based on challenge kind)] [command] [challenge] [domains] [test] [misc]` | part | for | segment | -| --- | --- | --- | +| :-: | :-: | --- | | prefix | * | `docker run -it --rm --name certbot -v "./data/certbot/certs:/etc/letsencrypt" -v "./data/certbot/data:/var/lib/letsencrypt"` | | docker | challenge standalone | `-p "0.0.0.0:80:80"` | | docker | challenge nginx | `-v "./data/certbot/webroot:/var/www/certbot"` | diff --git a/www/layouts/_partials/preview/posts.html b/www/layouts/_partials/preview/posts.html index f2cb640..291c4b2 100644 --- a/www/layouts/_partials/preview/posts.html +++ b/www/layouts/_partials/preview/posts.html @@ -1,5 +1,11 @@ {{ $h := .h }} +{{ $is_first := true}} {{ range .pages }} + {{ if $is_first }} + {{ $is_first = false }} + {{ else }} + <hr class="article-preview-hr"> + {{ end }} {{ partial "preview/post.html" (dict "h" $h "page" .) 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/home.html b/www/layouts/home.html index 3cfc455..38f7604 100644 --- a/www/layouts/home.html +++ b/www/layouts/home.html @@ -45,7 +45,7 @@ </ul> </div> </section> - <hr> + <hr/> {{ with .GetPage "/posts" }} <section id="recent-posts"> <h2>Recent Posts <a class="mono-link" href="{{ .RelPermalink }}">(all)</a></h2> @@ -55,7 +55,7 @@ }} </section> {{ end }} - <hr> + <hr/> <section> <h2 id="friends">My Friends <small>(more links are being collected ...)</small></h2> <div id="friends-container"> diff --git a/www/layouts/list.html b/www/layouts/list.html index be33d10..1d4ec56 100644 --- a/www/layouts/list.html +++ b/www/layouts/list.html @@ -5,6 +5,7 @@ {{ define "content" }} {{ partial "nav.html" . }} <h1>{{ .Title }}</h1> + <hr/> {{ partial "preview/posts.html" (dict "h" "h3" "pages" .RegularPages 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 |