diff --git a/assets/css/main.css b/assets/css/main.css index 90cb1cc..29e0073 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -338,7 +338,7 @@ pre { /* center standalone images; same justification as * for centering the body contents. Also makes images easier to see * for people holding a device with one hand. */ -picture > img { +div[itemprop="articleBody"] img { display: block; height: auto; margin: auto; diff --git a/layouts/shortcodes/indieweb-icon.html b/layouts/shortcodes/indieweb-icon.html index 48e6fd0..2419cfc 100644 --- a/layouts/shortcodes/indieweb-icon.html +++ b/layouts/shortcodes/indieweb-icon.html @@ -1,9 +1,14 @@ {{ $favicon := resources.Get "/favicon.png" -}} {{- $favicon_base64 := $favicon.Content | base64Encode -}} +{{- $favicon_bigpng := resources.Get "/favicon192.png" | resources.Fingerprint "md5" -}} {{- $favicon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}} +{{- if in site.BaseURL ".onion" -}} {{- else -}} - src="{{ $favicon_svg.RelPermalink }}" -{{- end }} /> + + + + +{{- end -}} diff --git a/scripts/xhtmlize-single-file.sh b/scripts/xhtmlize-single-file.sh index 456991b..a731873 100644 --- a/scripts/xhtmlize-single-file.sh +++ b/scripts/xhtmlize-single-file.sh @@ -34,7 +34,7 @@ sed 7d "$html_file" | xmllint --format --encode UTF-8 --noent - | sd '^\t' '' >" | sd '\n\t*\n(?:[\t\s]*)?' '' \ | sd '.span itemprop="familyName"' ' ]*/>)' ' ' \ | sd '([a-z])<(data|time)' '$1 <$2' } >>"$xhtml_file"