diff options
author | tdro <tdro@noreply.example.com> | 2022-10-10 02:15:01 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-10-10 02:15:01 -0400 |
commit | d58e237d38863856a864afa370d8c6d628c1aa86 (patch) | |
tree | 7d01aa7de72e1e83e6a5aab48fe0f61e3c922d63 | |
parent | 2f18bda0de5f3ba1d75d601fcc536515995a4327 (diff) | |
download | canory-d58e237d38863856a864afa370d8c6d628c1aa86.tar.gz canory-d58e237d38863856a864afa370d8c6d628c1aa86.tar.bz2 canory-d58e237d38863856a864afa370d8c6d628c1aa86.zip |
themes/default/layouts/partials/web-ring: Set <time> and <p> inline
-rw-r--r-- | assets/css/default.css | 13 | ||||
-rw-r--r-- | themes/default/layouts/partials/generate-feeds.html | 18 |
2 files changed, 18 insertions, 13 deletions
diff --git a/assets/css/default.css b/assets/css/default.css index 319a2da..e62e569 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -1460,20 +1460,25 @@ web-ring a[href^="http"]:hover { text-decoration: underline; } +web-ring header { + font-weight: 700; +} + web-ring time { font-variant: small-caps; color: #444; color: var(--fade); } -web-ring header { - font-weight: 700; -} - web-ring p { margin-bottom: 0 !important; } +web-ring p, +web-ring time { + display: inline; +} + web-ring-item:not(:last-child) { margin-bottom: 2rem; display: block; diff --git a/themes/default/layouts/partials/generate-feeds.html b/themes/default/layouts/partials/generate-feeds.html index b8f99b2..aec232f 100644 --- a/themes/default/layouts/partials/generate-feeds.html +++ b/themes/default/layouts/partials/generate-feeds.html @@ -256,20 +256,20 @@ {{ .FeedTitle }} </a> </header> - + <time + title="{{ .FeedDateTitle }}" + datetime="{{ .FeedDateTime }}"> + {{ .FeedDate }} + </time> <p> - <time - title="{{ .FeedDateTitle }}" - datetime="{{ .FeedDateTime }}"> - {{ .FeedDate }} - </time> + {{ "--" | markdownify }} {{ if gt (len .FeedDescriptionShort) (len .FeedContentShort) -}} - {{ "--" | markdownify }} {{ or .FeedDescriptionShort .FeedTitle }} + {{ or .FeedDescriptionShort .FeedTitle }} {{- else -}} - {{ "--" | markdownify }} {{ or .FeedContentShort .FeedTitle }} + {{ or .FeedContentShort .FeedTitle }} {{- end }} + — </p> - <a title="{{ .FeedSourceDescription }}" href="{{ or .FeedSourceHome .FeedSourceLink }}"> |