fix parsing my html and html stripping

This commit is contained in:
Aminda Suomalainen 2024-05-30 08:47:22 +03:00
parent 5c60586fd8
commit 460b8f7e83
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 7 additions and 3 deletions

View File

@ -28,6 +28,10 @@ lang: en
# Build settings # Build settings
markdown: kramdown markdown: kramdown
kramdown:
parse_block_html: true
theme: minima theme: minima
#theme: jekyll-theme-midnight #theme: jekyll-theme-midnight
redcarpet: redcarpet:

6
_includes/head.html vendored
View File

@ -4,8 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex, nofollow, noai"> <meta name="robots" content="noindex, nofollow, noai">
<link rel="icon prefetch" href="{{site.icon}}"> <link rel="icon prefetch" href="{{site.icon}}">
<title>{% if page.title %}{{ page.title }} ~~ {{ site.title }}{% else %}{{ site.title }}{% endif %}</title> <title>{% if page.title %}{{ page.title }} ~~ {{ site.title | strip_html }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description | nstrip_html | strip_newlines }}{% endif %}"> <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description | strip_html | strip_newlines }}{% endif %}">
<link rel="me prefetch" href="{{ site.url }}" /> <link rel="me prefetch" href="{{ site.url }}" />
<link rel="openid.delegate" href="https://aminda.eu/" /> <link rel="openid.delegate" href="https://aminda.eu/" />
@ -23,7 +23,7 @@
<meta name="referrer" content="no-referrer" /> <meta name="referrer" content="no-referrer" />
<!-- OpenGraph --> <!-- OpenGraph -->
<meta name="og:title" content="{% if page.title %}{{ page.title }} ~~ {{ site.title }}{% else %}{{ site.title }}{% endif %}" /> <meta name="og:title" content="{% if page.title %}{{ page.title }} ~~ {{ site.title }}{% else %}{{ site.title }}{% endif %}" />
<meta name="og:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description | nstrip_html | strip_newlines }}{% endif %}" /> <meta name="og:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description | strip_html | strip_newlines }}{% endif %}" />
<meta name="og:site_name" content="{{site.title}}" /> <meta name="og:site_name" content="{{site.title}}" />
<meta name="og:image" content="{{site.icon}}"/> <meta name="og:image" content="{{site.icon}}"/>
<!-- https://indieweb.org/How_to_set_up_web_sign-in_on_your_own_domain#How_to_setup_RelMeAuth - regardless of antipattern, the things I do for verified checkboxes at Mastodon... --> <!-- https://indieweb.org/How_to_set_up_web_sign-in_on_your_own_domain#How_to_setup_RelMeAuth - regardless of antipattern, the things I do for verified checkboxes at Mastodon... -->