mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-07-04 11:07:32 -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 */
|
/* Icons */
|
||||||
.icon {
|
.icon {
|
||||||
width: 20px;
|
width: 1em;
|
||||||
height: 20px;
|
height: 1em;
|
||||||
color: var(--text-1);
|
color: var(--text-1);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: inline;
|
display: inline;
|
||||||
vertical-align: middle;
|
vertical-align: sub;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 svg.icon {
|
/* workarounds for some icons from jam-icons being non-square aspect ratio */
|
||||||
width: 30px;
|
.icon-code {
|
||||||
height: 30px;
|
width: 1.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
@ -315,11 +315,6 @@ h1 svg.icon {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.heading-link svg {
|
|
||||||
width: 15px;
|
|
||||||
height: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* Top bar formatting {{{ */
|
/* Top bar formatting {{{ */
|
||||||
@ -676,6 +671,7 @@ h1 svg.icon {
|
|||||||
display: flex;
|
display: flex;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
font-size: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.share-buttons a {
|
.share-buttons a {
|
||||||
@ -690,8 +686,7 @@ h1 svg.icon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.share-buttons svg {
|
.share-buttons svg {
|
||||||
width: 32px;
|
display: block;
|
||||||
height: 32px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* https://stackoverflow.com/a/72073682/19003757 */
|
/* https://stackoverflow.com/a/72073682/19003757 */
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{- $icon_resource := resources.Get (printf "jam/icons/%s.svg" .) -}}
|
{{- $icon_resource := resources.Get (printf "jam/icons/%s.svg" .) -}}
|
||||||
{{- $icon := $icon_resource.Content -}}
|
{{- $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 `</svg>` (printf `<title>%s icon</title></svg>` .) $icon -}}
|
||||||
{{- $icon = replaceRE `(width|height)="[0-9]*"` "" $icon -}}
|
{{- $icon = replaceRE `(width|height)="[0-9]*"` "" $icon -}}
|
||||||
{{- $icon | safeHTML -}}
|
{{- $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/edithistory.html" . }}
|
||||||
{{ partial "page-metadata/item/viewraw.html" . }}
|
{{ partial "page-metadata/item/viewraw.html" . }}
|
||||||
|
|
||||||
|
{{ partial "page-metadata/custom-full.html" . }}
|
||||||
|
|
||||||
{{ partial "page-metadata/item/categories.html" . }}
|
{{ partial "page-metadata/item/categories.html" . }}
|
||||||
|
|
||||||
{{ partial "page-metadata/item/tags.html" . }}
|
{{ partial "page-metadata/item/tags.html" . }}
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
{{ partial "page-metadata/item/authors.html" . }}
|
{{ partial "page-metadata/item/authors.html" . }}
|
||||||
{{ partial "page-metadata/item/readingtime.html" . }}
|
{{ partial "page-metadata/item/readingtime.html" . }}
|
||||||
|
|
||||||
{{ partial "page-metadata/item/series.html" . }}
|
{{ partial "page-metadata/item/series.html" . }}
|
||||||
{{ partial "page-metadata/item/categories.html" . }}
|
{{ partial "page-metadata/item/categories.html" . }}
|
||||||
{{ partial "page-metadata/item/tags.html" . }}
|
{{ partial "page-metadata/item/tags.html" . }}
|
||||||
|
Reference in New Issue
Block a user