From 337a62c7cd1cacfa7c58cb5fd01f0716f2e9329e Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Mon, 20 Mar 2023 18:21:41 -0500 Subject: [PATCH] WIP --- assets/css/bobastyle.css | 19 ++++++++----------- i18n/en.yaml | 4 ++-- layouts/_default/_markup/render-heading.html | 6 +++--- layouts/_default/summary.html | 2 +- layouts/authors/summary.html | 2 +- layouts/partials/top.html | 2 +- layouts/series/summary.html | 2 +- 7 files changed, 17 insertions(+), 20 deletions(-) diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index 3e600d4..f47edbb 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -361,20 +361,20 @@ h1 svg.icon { /* }}} */ -/* Header formatting (website title and article section headers) {{{ */ +/* Heading formatting (website title and article section headers) {{{ */ .header { margin: 16px 0; + font-size: 1.5em; } -.header a, -.section-header a { +/* this is also used i.e. in post-title */ +.heading-link { color: inherit; - font-size: 1.5em; font-weight: bold; } -.section-header-link svg { +.heading-link svg { width: 15px; height: 15px; } @@ -459,6 +459,9 @@ h1 svg.icon { /* }}} */ /* Back to top {{{ */ +#top { + font-size: 0; +} #back-to-top { position: fixed; float: right; @@ -589,12 +592,6 @@ li.disabled > .page-link:hover { margin: 0; } -.post-title a, -.author-name a { - color: inherit; - text-decoration: inherit; -} - .post-meta-item, .author-meta-item { margin-right: 10px; diff --git a/i18n/en.yaml b/i18n/en.yaml index e9c8780..9326608 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -58,8 +58,8 @@ newer_post: # ARIA labels -aria_header_link: - other: "header link" +aria_heading_link: + other: "heading link" aria_back_to_top_button: other: "back to top button" diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html index 7a5cde4..f7b8652 100644 --- a/layouts/_default/_markup/render-heading.html +++ b/layouts/_default/_markup/render-heading.html @@ -1,7 +1,7 @@ - + {{ .Text | safeHTML }} - - + + {{ partial "icon.html" "link" }} diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 492a31f..a1033dd 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,6 +1,6 @@

{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} - {{ .Title | markdownify }} + {{ .Title | markdownify }} {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}

diff --git a/layouts/authors/summary.html b/layouts/authors/summary.html index c030539..686bed8 100644 --- a/layouts/authors/summary.html +++ b/layouts/authors/summary.html @@ -1,6 +1,6 @@

- {{ .Title | markdownify }} + {{ .Title | markdownify }} {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}

diff --git a/layouts/partials/top.html b/layouts/partials/top.html index c18049c..51a6bc5 100644 --- a/layouts/partials/top.html +++ b/layouts/partials/top.html @@ -1,5 +1,5 @@
- + {{ .Site.Title | markdownify }}
diff --git a/layouts/series/summary.html b/layouts/series/summary.html index 480a595..126270f 100644 --- a/layouts/series/summary.html +++ b/layouts/series/summary.html @@ -1,6 +1,6 @@

{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} - {{ .Title | markdownify }} + {{ .Title | markdownify }} {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}