mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-24 05:02:10 +00:00
Minor markup adjustments
- Move a horizontal rule from inside an element to outside it - Add a horizontal rule - Remove redundant info from some webmention titles
This commit is contained in:
parent
1e781a3bf8
commit
09e14bcfc2
3 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
||||||
<main>
|
<main>
|
||||||
<h1 id="h1" tabindex="-1">Seirdy’s Home</h1>
|
<h1 id="h1" tabindex="-1">Seirdy’s Home</h1>
|
||||||
<p itemprop="description">{{ .Site.Params.Description }}</p>
|
<p itemprop="description">{{ .Site.Params.Description }}</p>
|
||||||
|
<hr />
|
||||||
<div class="narrow">
|
<div class="narrow">
|
||||||
{{ partial "processed-content.html" . }}
|
{{ partial "processed-content.html" . }}
|
||||||
{{ partial "posts.html" . }}
|
{{ partial "posts.html" . }}
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
{{- if not .Params.disableMeta -}}
|
{{- if not .Params.disableMeta -}}
|
||||||
{{- partial "post-meta.html" . -}}
|
{{- partial "post-meta.html" . -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<hr />
|
|
||||||
</header>
|
</header>
|
||||||
|
<hr />
|
||||||
<div class="e-content entry-content" itemprop="articleBody">
|
<div class="e-content entry-content" itemprop="articleBody">
|
||||||
<meta itemprop="author" content="Rohan Kumar" />
|
<meta itemprop="author" content="Rohan Kumar" />
|
||||||
<!--That was needed bc some reading modes get confused by other authors referenced in the text-->
|
<!--That was needed bc some reading modes get confused by other authors referenced in the text-->
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
{{- $title = $title | replaceRE `^@Seirdy@pleroma.envs.net(\n| )?` "" -}}
|
{{- $title = $title | replaceRE `^@Seirdy@pleroma.envs.net(\n| )?` "" -}}
|
||||||
{{- /* Mastodon webmentions may include the author in the title followed by a colon; this is redundant. */ -}}
|
{{- /* Mastodon webmentions may include the author in the title followed by a colon; this is redundant. */ -}}
|
||||||
{{- if and (isset $webmention "author_name") (findRE `@` $webmention.source) (not (findRE "^https://bridg.gy" $webmention.source)) -}}
|
{{- if and (isset $webmention "author_name") (findRE `@` $webmention.source) (not (findRE "^https://bridg.gy" $webmention.source)) -}}
|
||||||
{{ $title = $title | replaceRE `^[^:]{0,20}: ?` "" }}
|
{{ $title = $title | replaceRE `^[^:]{0,20}: ?` "" | replaceRE `^"@Seirdy@pleroma.envs.net ?` `"` }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if and ($hasContent) (gt (countrunes $webmention.title) 128) -}}
|
{{- if and ($hasContent) (gt (countrunes $webmention.title) 128) -}}
|
||||||
|
|
Loading…
Reference in a new issue