diff options
author | tdro <tdro@noreply.example.com> | 2024-03-08 14:01:03 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2024-03-08 14:01:03 -0500 |
commit | af9456193c6241345172128b8b947a613681b04f (patch) | |
tree | a773f0a2aa6ef046ab9832d0ecf4c98b735a1ecf | |
parent | 7d6291ded2de22b58f715a5a4e3c263574b662d3 (diff) | |
download | canory-af9456193c6241345172128b8b947a613681b04f.tar.gz canory-af9456193c6241345172128b8b947a613681b04f.tar.bz2 canory-af9456193c6241345172128b8b947a613681b04f.zip |
themes/default/layouts/partials: Merge meta
22 files changed, 106 insertions, 107 deletions
diff --git a/assets/css/default-simple.css b/assets/css/default-simple.css index 8485e28..6dbc040 100644 --- a/assets/css/default-simple.css +++ b/assets/css/default-simple.css @@ -10,7 +10,7 @@ column-base[position="right"]:hover { transition: 0.1s; } -micro-card[id] micro-metadata, +micro-card[id] > header, micro-card[id] article math-ml figcaption { display: block; } @@ -35,9 +35,9 @@ micro-card[id] > article > :nth-last-child(2) { [data-kind="page"] micro-card[id]:first-child > a, micro-card[id] micro-tags, -micro-card[id] > article footer:not(blockquote footer), -micro-card[id] micro-metadata header, -micro-card[id] > article figcaption { +micro-card[id] > header meta-data, +micro-card[id] > article figcaption, +micro-card[id] > article footer:not(blockquote footer) { display: none; } @@ -67,7 +67,7 @@ micro-card[id] article iframe, micro-card[id] article article, micro-card[id] article details, micro-card[id] article figcaption, -micro-card[id] micro-thumbnail picture { +micro-card[id] header picture { pointer-events: all; position: relative; z-index: 2; diff --git a/assets/css/default.css b/assets/css/default.css index cf106eb..1e3c6cf 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -626,9 +626,9 @@ a:hover { a:hover, menu:hover span, -micro-metadata-view a:hover span, -micro-metadata-draft a:hover span, -micro-metadata-handle a:hover span { +meta-view a:hover span, +meta-draft a:hover span, +meta-handle a:hover span { text-decoration-thickness: 0.15rem !important; text-decoration-color: inherit !important; } @@ -1071,7 +1071,8 @@ micro-author micro-card { border: none; } -micro-author micro-card > * { +micro-author micro-card > *, +micro-author micro-card > article { margin: 0 0.5rem; } @@ -1082,38 +1083,38 @@ micro-author micro-card p:not(:last-child) { max-width: 20rem; } -micro-author micro-header { +micro-author article { flex: 1; min-width: 3rem; } -micro-author micro-header h2 { +micro-author article h2 { line-height: 1.25; } -micro-author micro-header h3 { +micro-author article h3 { font-weight: 400; } -micro-author micro-thumbnail figure { +micro-author micro-card header figure { margin: 0; } -micro-thumbnail figure { +micro-card header figure:first-child { margin: 0 0.75rem 0 0; } -micro-thumbnail figure > a, -micro-thumbnail figure > a:hover { +micro-card header figure > a, +micro-card header figure > a:hover { color: #000; display: block; text-decoration: none; } tag-card figure img, -micro-thumbnail figure img, -micro-thumbnail figure span, -micro-thumbnail figure object { +micro-card header figure img, +micro-card header figure span, +micro-card header figure object { border-radius: 100%; min-width: 3.5rem; min-height: 3.5rem; @@ -1174,7 +1175,7 @@ micro-card article figure > a[data-orientation="landscape"] img { width: 100%; } -micro-metadata { +micro-card header { color: #444; color: var(--fade); display: flex; @@ -1182,68 +1183,68 @@ micro-metadata { margin-bottom: 0.25rem; } -micro-metadata h2 { +micro-card header h2 { display: inline; } -micro-metadata header { +micro-card header meta-data { word-break: break-all; word-break: break-word; } -micro-metadata header a { +micro-card header meta-data a { color: inherit; } -micro-metadata header > *:not(:last-child) { +micro-card header meta-data > *:not(:last-child) { margin-right: 0.5rem; } -micro-metadata header > *:hover { +micro-card header meta-data > *:hover { color: #111; color: var(--foreground); } -micro-metadata-expiry, -micro-metadata-draft em, -micro-metadata-wordcount word-limit em { +meta-expiry, +meta-draft em, +meta-wordcount word-limit em { color: #8f0000; color: var(--danger); font-style: normal; } -micro-metadata-draft em { +meta-draft em { font-variant: all-small-caps; } profile-box footer svg, -micro-metadata header svg { +micro-card header meta-data svg { height: 1rem; width: 1rem; stroke-width: 0.105rem; } -micro-metadata-unlisted { +meta-unlisted { font-variant: all-small-caps; } s label, abbr[title], -micro-metadata-expiry, -micro-metadata-readtime, -micro-metadata-datetime, -micro-metadata-unlisted, -micro-metadata-wordcount { +meta-expiry, +meta-readtime, +meta-datetime, +meta-unlisted, +meta-wordcount { cursor: help; } -micro-metadata-anchored { +meta-anchored { display: flex; margin-bottom: 0.25rem; width: 100%; } -micro-metadata-anchored > * { +meta-anchored > * { margin-right: 0.5rem; display: flex; flex-wrap: wrap; @@ -1251,15 +1252,15 @@ micro-metadata-anchored > * { text-decoration: none; } -micro-metadata-anchored svg { +meta-anchored svg { margin-right: 0.25rem; } -micro-metadata-anchored a[data-anchored="pinned"] svg { +meta-anchored a[data-anchored="pinned"] svg { fill: #9ed1fa; } -micro-metadata-anchored a[data-anchored="marked"] svg { +meta-anchored a[data-anchored="marked"] svg { fill: #cd5c5c; } @@ -1296,24 +1297,24 @@ micro-card[id] article h3 a { color: inherit; } -micro-metadata-view a, -micro-metadata-name a, -micro-metadata-draft a, -micro-metadata-handle a, +meta-view a, +meta-name a, +meta-draft a, +meta-handle a, micro-card[id] article h1 a, micro-card[id] article h2 a, micro-card[id] article h3 a, -micro-metadata a:focus > span, -micro-metadata context-menu a, -micro-metadata context-menu a span { +micro-card header a:focus > span, +micro-card menu context-menu a, +micro-card menu context-menu a span { text-decoration: none; } menu span, -micro-metadata-view a span, -micro-metadata-name a:hover, -micro-metadata-draft a span, -micro-metadata-handle a span, +meta-view a span, +meta-name a:hover, +meta-draft a span, +meta-handle a span, micro-card[id] article h1 a:hover, micro-card[id] article h2 a:hover, micro-card[id] article h3 a:hover { @@ -1559,7 +1560,7 @@ column-base[position="middle"] > nav:first-child section small { margin: 0; } -micro-author micro-header > *, +micro-author article > *, column-base[position="middle"] > nav:first-child section h2, column-base[position="middle"] > nav:first-child section small { overflow: hidden; @@ -1758,7 +1759,7 @@ web-ring, } web-ring time, -micro-author micro-header time { +micro-author article time { display: block; color: #444; color: var(--fade); @@ -2379,7 +2380,7 @@ nav[hidden] { margin-left: 0; } -[data-xml] micro-thumbnail { +[data-xml] micro-card header figure { display: block; } @@ -2425,10 +2426,10 @@ nav[hidden] { micro-author micro-card > :not(:last-child) { margin-bottom: 0.5rem; } - micro-author micro-header { + micro-author article { flex: none; } - micro-author micro-header > * { + micro-author article > * { white-space: normal; } time-line ul { @@ -2475,7 +2476,7 @@ nav[hidden] { max-width: 600px; margin: 0 auto; } - micro-metadata { + micro-card header { line-height: inherit; } profile-box section { @@ -2487,8 +2488,8 @@ nav[hidden] { border-bottom: 1px solid #eee; border-bottom: 1px solid var(--border-lighter); } - micro-author micro-card micro-header, - micro-author micro-card micro-thumbnail, + micro-author micro-card article, + micro-author micro-card header figure, micro-author micro-card p:not(:last-child) { flex: auto; margin: 0 0 0.75rem 0; diff --git a/themes/default/layouts/_default/home.xslt.rss.xsl b/themes/default/layouts/_default/home.xslt.rss.xsl index af7bb63..587d119 100644 --- a/themes/default/layouts/_default/home.xslt.rss.xsl +++ b/themes/default/layouts/_default/home.xslt.rss.xsl @@ -70,7 +70,7 @@ <main> <xsl:for-each select="/rss/channel/item"> <micro-card> - <micro-thumbnail> + <header> <figure> <a> <xsl:attribute name="href"><xsl:value-of select="link" /></xsl:attribute> @@ -83,7 +83,7 @@ </span> </a> </figure> - </micro-thumbnail> + </header> <article> <h2> <a> diff --git a/themes/default/layouts/_default/section.following.html b/themes/default/layouts/_default/section.following.html index 9e937c6..eb74049 100644 --- a/themes/default/layouts/_default/section.following.html +++ b/themes/default/layouts/_default/section.following.html @@ -26,7 +26,7 @@ <micro-author> <micro-card> - <micro-thumbnail> + <header> <figure> <a title="{{ $distinct.FeedName }}" @@ -41,8 +41,8 @@ </picture> </a> </figure> - </micro-thumbnail> - <micro-header> + </header> + <article> <h2> <b>{{ $distinct.FeedName }}</b> </h2> @@ -60,7 +60,7 @@ datetime="{{ $distinct.FeedDateTime }}"> {{ $distinct.FeedDate -}} </time> - </micro-header> + </article> <a title="Follow {{ $distinct.FeedName }}" href="{{ $href }}"> diff --git a/themes/default/layouts/_default/summary.html b/themes/default/layouts/_default/summary.html index 036efcd..e820b24 100644 --- a/themes/default/layouts/_default/summary.html +++ b/themes/default/layouts/_default/summary.html @@ -9,12 +9,10 @@ {{ if .ExpiryDate }}data-expires{{ end }} > <a href="{{ $href }}"></a> - <micro-metadata> - <micro-thumbnail> - {{ partial "profile-picture.html" . }} - </micro-thumbnail> + <header> + {{ partial "profile-picture.html" . }} {{ partial "card-meta-header.html" . }} - </micro-metadata> + </header> <article aria-label="article"> {{- $content -}} <micro-tags> diff --git a/themes/default/layouts/partials/author-card.html b/themes/default/layouts/partials/author-card.html index 70ec252..65228cc 100644 --- a/themes/default/layouts/partials/author-card.html +++ b/themes/default/layouts/partials/author-card.html @@ -38,7 +38,7 @@ <micro-author> <micro-card> - <micro-thumbnail> + <header> <figure> <a title="{{ .Data.name }}" href="{{ "" | absURL }}/{{ .Data.user }}/"> <picture> @@ -54,8 +54,8 @@ </picture> </a> </figure> - </micro-thumbnail> - <micro-header> + </header> + <article> <h2> <b>{{ .Data.name }}</b> </h2> @@ -71,7 +71,7 @@ > {{ $date }} </time> - </micro-header> + </article> <p>{{ .Data.description | markdownify | plainify | htmlUnescape | truncate 60 "..." }}</p> <a title="Follow with RSS Reader" href="{{ "" | absURL }}/{{ .Data.user }}/rss.xml"> {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/rss.svg")) }} diff --git a/themes/default/layouts/partials/card-meta-header.html b/themes/default/layouts/partials/card-meta-header.html index 5672972..72b67b8 100644 --- a/themes/default/layouts/partials/card-meta-header.html +++ b/themes/default/layouts/partials/card-meta-header.html @@ -1,4 +1,4 @@ -<header> +<meta-data> {{- partial "meta-anchored.html" . -}} @@ -22,4 +22,4 @@ {{- partial "meta-expirydate.html" . -}} -</header> +</meta-data> diff --git a/themes/default/layouts/partials/menu-datetime.html b/themes/default/layouts/partials/menu-datetime.html index 5b2acf1..20ef50e 100644 --- a/themes/default/layouts/partials/menu-datetime.html +++ b/themes/default/layouts/partials/menu-datetime.html @@ -1,6 +1,6 @@ {{- $href := print .Permalink -}} -<micro-metadata-datetime> +<meta-datetime> <a href="{{ $href }}"> {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/calendar.svg")) -}} <time @@ -19,4 +19,4 @@ {{ .Date | time.Format "15:04 MST" -}} </time> </a> -</micro-metadata-datetime> +</meta-datetime> diff --git a/themes/default/layouts/partials/menu-embed.html b/themes/default/layouts/partials/menu-embed.html index 7890102..1b03d27 100644 --- a/themes/default/layouts/partials/menu-embed.html +++ b/themes/default/layouts/partials/menu-embed.html @@ -1,8 +1,8 @@ {{- $href := print .Permalink -}} -<micro-metadata-embed> +<meta-embed> <a href="{{ print $href "embed.html" }}"> {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/code.svg")) -}} <span>Embed</span> </a> -</micro-metadata-embed> +</meta-embed> diff --git a/themes/default/layouts/partials/menu-markdown.html b/themes/default/layouts/partials/menu-markdown.html index 7098fa5..6e54238 100644 --- a/themes/default/layouts/partials/menu-markdown.html +++ b/themes/default/layouts/partials/menu-markdown.html @@ -4,10 +4,10 @@ {{- $href := print .Site.BaseURL "/" (partial "function-paths.html").markdown $source -}} {{- $title := .File.LogicalName -}} - <micro-metadata-source> + <meta-source> <a href="{{ $href }}" title="{{ $title }}"> {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/square-letter-m.svg")) -}} <span>Markdown</span> </a> - </micro-metadata-source> + </meta-source> {{- end -}} diff --git a/themes/default/layouts/partials/menu-permalink.html b/themes/default/layouts/partials/menu-permalink.html index 2af4e8a..6f19559 100644 --- a/themes/default/layouts/partials/menu-permalink.html +++ b/themes/default/layouts/partials/menu-permalink.html @@ -1,11 +1,11 @@ {{- $href := print .Permalink "#" (partial "card-id.html" .) -}} -<micro-metadata-permalink> +<meta-permalink> <a title="#{{ partial "card-id.html" . }}" href="{{ $href }}"> {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/link.svg")) -}} <span>Permalink</span> {{- /* This comment removes trailing newlines and white spaces. */ -}} </a> {{- /* This comment removes trailing newlines and white spaces. */ -}} -</micro-metadata-permalink> +</meta-permalink> {{- /* This comment removes trailing newlines and white spaces. */ -}} diff --git a/themes/default/layouts/partials/menu-plain.html b/themes/default/layouts/partials/menu-plain.html index 3886945..3dee808 100644 --- a/themes/default/layouts/partials/menu-plain.html +++ b/themes/default/layouts/partials/menu-plain.html @@ -1,9 +1,9 @@ {{- $href := print .Permalink -}} {{- $plain := print $href "index.txt" -}} -<micro-metadata-plain> +<meta-plain> <a href="{{ $plain }}"> {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/notes.svg")) -}} <span>Plaintext</span> </a> -</micro-metadata-plain> +</meta-plain> diff --git a/themes/default/layouts/partials/meta-anchored.html b/themes/default/layouts/partials/meta-anchored.html index d19bcde..872f98e 100644 --- a/themes/default/layouts/partials/meta-anchored.html +++ b/themes/default/layouts/partials/meta-anchored.html @@ -1,5 +1,5 @@ {{- if or .Weight .Params.Liked .Params.feed -}} - <micro-metadata-anchored> + <meta-anchored> {{- $author := .Section -}} {{- partial "meta-via.html" . -}} @@ -20,5 +20,5 @@ <span>Marked</span> </a> {{- end -}} - </micro-metadata-anchored> + </meta-anchored> {{- end -}} diff --git a/themes/default/layouts/partials/meta-datetime.html b/themes/default/layouts/partials/meta-datetime.html index 1dc50f3..e0329bb 100644 --- a/themes/default/layouts/partials/meta-datetime.html +++ b/themes/default/layouts/partials/meta-datetime.html @@ -1,4 +1,4 @@ -<micro-metadata-datetime +<meta-datetime title="{{ .Date | time.Format "Posted: Monday January 2 2006 at 15:04:05 MST" }} {{ if .Lastmod.After .Date }}{{ .Lastmod | time.Format "Edited: Monday January 2 2006 at 15:04:05 MST" }}{{ end }}"> {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/calendar.svg")) -}} @@ -10,5 +10,5 @@ title="{{ .Date | time.Format "Posted: Monday January 2 2006 at 15:04:05 MST" }} <span>(edited)</span> {{- end -}} {{- /* This comment removes trailing newlines and white spaces. */ -}} -</micro-metadata-datetime> +</meta-datetime> {{- /* This comment removes trailing newlines and white spaces. */ -}} diff --git a/themes/default/layouts/partials/meta-draft.html b/themes/default/layouts/partials/meta-draft.html index 6fff438..d441b9a 100644 --- a/themes/default/layouts/partials/meta-draft.html +++ b/themes/default/layouts/partials/meta-draft.html @@ -1,5 +1,5 @@ {{- if .Draft -}} - <micro-metadata-draft> + <meta-draft> {{- /* This comment removes trailing newlines and white spaces. */ -}} <em> {{- /* This comment removes trailing newlines and white spaces. */ -}} @@ -11,5 +11,5 @@ {{- /* This comment removes trailing newlines and white spaces. */ -}} </em> {{- /* This comment removes trailing newlines and white spaces. */ -}} - </micro-metadata-draft> + </meta-draft> {{- end -}} diff --git a/themes/default/layouts/partials/meta-expirydate.html b/themes/default/layouts/partials/meta-expirydate.html index 6eef09e..1feefd1 100644 --- a/themes/default/layouts/partials/meta-expirydate.html +++ b/themes/default/layouts/partials/meta-expirydate.html @@ -8,7 +8,7 @@ {{- $title = print "Self destructed" " " $date -}} {{- end -}} - <micro-metadata-expiry + <meta-expiry title="{{ $title }}"> {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/trash-2.svg")) -}} <time datetime= "{{- .ExpiryDate | time.Format "2006-01-02T15:04:05Z" -}}"> @@ -16,5 +16,5 @@ {{- /* This comment removes trailing newlines and white spaces. */ -}} </time> {{- /* This comment removes trailing newlines and white spaces. */ -}} - </micro-metadata-expiry> + </meta-expiry> {{- end -}} diff --git a/themes/default/layouts/partials/meta-handle.html b/themes/default/layouts/partials/meta-handle.html index c738c6b..ee0cc50 100644 --- a/themes/default/layouts/partials/meta-handle.html +++ b/themes/default/layouts/partials/meta-handle.html @@ -11,7 +11,7 @@ {{- $title = $.Params.feed.domain -}} {{- end -}} -<micro-metadata-handle> +<meta-handle> {{- /* This comment removes trailing newlines and white spaces. */ -}} <a title="{{ $title }}" @@ -21,5 +21,5 @@ {{- /* This comment removes trailing newlines and white spaces. */ -}} </a> {{- /* This comment removes trailing newlines and white spaces. */ -}} -</micro-metadata-handle> +</meta-handle> {{- /* This comment removes trailing newlines and white spaces. */ -}} diff --git a/themes/default/layouts/partials/meta-name.html b/themes/default/layouts/partials/meta-name.html index 44abdfc..7c2ca61 100644 --- a/themes/default/layouts/partials/meta-name.html +++ b/themes/default/layouts/partials/meta-name.html @@ -10,8 +10,8 @@ {{- $title = $name -}} {{- end -}} -<micro-metadata-name title="{{ $title }}"> +<meta-name title="{{ $title }}"> <b><a href="{{ $href }}">{{ $name }}</a></b> {{- /* This comment removes trailing newlines and white spaces. */ -}} -</micro-metadata-name> +</meta-name> {{- /* This comment removes trailing newlines and white spaces. */ -}} diff --git a/themes/default/layouts/partials/meta-readtime.html b/themes/default/layouts/partials/meta-readtime.html index 1af03e7..43b5303 100644 --- a/themes/default/layouts/partials/meta-readtime.html +++ b/themes/default/layouts/partials/meta-readtime.html @@ -4,9 +4,9 @@ {{- $seconds = "1" -}} {{- end -}} -<micro-metadata-readtime title="{{ $seconds }} second{{- if not (eq $seconds "1") -}}s{{- end }} to read"> +<meta-readtime title="{{ $seconds }} second{{- if not (eq $seconds "1") -}}s{{- end }} to read"> {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/eye.svg")) }} <span>{{ $seconds }}s read</span> {{- /* This comment removes trailing newlines and white spaces. */ -}} -</micro-metadata-readtime> +</meta-readtime> {{- /* This comment removes trailing newlines and white spaces. */ -}} diff --git a/themes/default/layouts/partials/meta-unlisted.html b/themes/default/layouts/partials/meta-unlisted.html index 827de3c..df67e4e 100644 --- a/themes/default/layouts/partials/meta-unlisted.html +++ b/themes/default/layouts/partials/meta-unlisted.html @@ -1,7 +1,7 @@ {{- if .Params.Unlisted -}} - <micro-metadata-unlisted title="This message is off the record"> + <meta-unlisted title="This message is off the record"> {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/eye-off.svg")) -}} <span>unlisted</span> {{- /* This comment removes trailing newlines and white spaces. */ -}} - </micro-metadata-unlisted> + </meta-unlisted> {{- end -}} diff --git a/themes/default/layouts/partials/meta-view.html b/themes/default/layouts/partials/meta-view.html index ea22d5d..33aee6b 100644 --- a/themes/default/layouts/partials/meta-view.html +++ b/themes/default/layouts/partials/meta-view.html @@ -1,6 +1,6 @@ {{- $href := or .Params.Feed.link .Permalink -}} -<micro-metadata-view> +<meta-view> {{- /* This comment removes trailing newlines and white spaces. */ -}} <a href="{{ $href }}" title="{{- partial "meta-title.html" . -}}"> {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/external-link.svg")) -}} @@ -8,5 +8,5 @@ {{- /* This comment removes trailing newlines and white spaces. */ -}} </a> {{- /* This comment removes trailing newlines and white spaces. */ -}} -</micro-metadata-view> +</meta-view> {{- /* This comment removes trailing newlines and white spaces. */ -}} diff --git a/themes/default/layouts/partials/meta-wordcount.html b/themes/default/layouts/partials/meta-wordcount.html index 5fd5451..b6ec95e 100644 --- a/themes/default/layouts/partials/meta-wordcount.html +++ b/themes/default/layouts/partials/meta-wordcount.html @@ -4,7 +4,7 @@ {{- $overLimit := sub .WordCount $limit -}} {{- $bitCount := lang.FormatNumberCustom 0 (len .Content) -}} -<micro-metadata-wordcount +<meta-wordcount title=" {{- if $wordLimit -}} {{ $overLimit }} words over the limit @@ -29,5 +29,5 @@ title=" {{- /* This comment removes trailing newlines and white spaces. */ -}} </word-limit> {{- /* This comment removes trailing newlines and white spaces. */ -}} -</micro-metadata-wordcount> +</meta-wordcount> {{- /* This comment removes trailing newlines and white spaces. */ -}} |