mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-07-04 02:57:30 -05:00
Compare commits
3 Commits
c06e7eb938
...
ca0f8d390c
Author | SHA1 | Date | |
---|---|---|---|
ca0f8d390c
|
|||
62f0d42140
|
|||
16f08dce7f
|
@ -291,17 +291,17 @@ table.simple tbody tr:nth-child(even) {
|
||||
|
||||
/* Icons */
|
||||
.icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
color: var(--text-1);
|
||||
text-align: center;
|
||||
display: inline;
|
||||
vertical-align: middle;
|
||||
vertical-align: sub;
|
||||
}
|
||||
|
||||
h1 svg.icon {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
/* workarounds for some icons from jam-icons being non-square aspect ratio */
|
||||
.icon-code {
|
||||
width: 1.25em;
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
@ -315,11 +315,6 @@ h1 svg.icon {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.heading-link svg {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* Top bar formatting {{{ */
|
||||
@ -676,6 +671,7 @@ h1 svg.icon {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
justify-content: center;
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.share-buttons a {
|
||||
@ -690,8 +686,7 @@ h1 svg.icon {
|
||||
}
|
||||
|
||||
.share-buttons svg {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* https://stackoverflow.com/a/72073682/19003757 */
|
||||
|
@ -1,6 +1,6 @@
|
||||
{{- $icon_resource := resources.Get (printf "jam/icons/%s.svg" .) -}}
|
||||
{{- $icon := $icon_resource.Content -}}
|
||||
{{- $icon = replaceRE `<svg` `<svg class="icon"` $icon -}}
|
||||
{{- $icon = replaceRE `<svg` (printf `<svg class="icon icon-%s"` .) $icon -}}
|
||||
{{- $icon = replaceRE `</svg>` (printf `<title>%s icon</title></svg>` .) $icon -}}
|
||||
{{- $icon = replaceRE `(width|height)="[0-9]*"` "" $icon -}}
|
||||
{{- $icon | safeHTML -}}
|
||||
|
1
layouts/_partials/page-metadata/custom-full.html
Normal file
1
layouts/_partials/page-metadata/custom-full.html
Normal file
@ -0,0 +1 @@
|
||||
<!-- Placeholder for website to add custom post metadata to summaries -->
|
@ -22,6 +22,8 @@
|
||||
{{ partial "page-metadata/item/edithistory.html" . }}
|
||||
{{ partial "page-metadata/item/viewraw.html" . }}
|
||||
|
||||
{{ partial "page-metadata/custom-full.html" . }}
|
||||
|
||||
{{ partial "page-metadata/item/categories.html" . }}
|
||||
|
||||
{{ partial "page-metadata/item/tags.html" . }}
|
||||
|
@ -9,6 +9,7 @@
|
||||
|
||||
{{ partial "page-metadata/item/authors.html" . }}
|
||||
{{ partial "page-metadata/item/readingtime.html" . }}
|
||||
|
||||
{{ partial "page-metadata/item/series.html" . }}
|
||||
{{ partial "page-metadata/item/categories.html" . }}
|
||||
{{ partial "page-metadata/item/tags.html" . }}
|
||||
|
Reference in New Issue
Block a user