mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-24 01:42: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>
|
||||
<h1 id="h1" tabindex="-1">Seirdy’s Home</h1>
|
||||
<p itemprop="description">{{ .Site.Params.Description }}</p>
|
||||
<hr />
|
||||
<div class="narrow">
|
||||
{{ partial "processed-content.html" . }}
|
||||
{{ partial "posts.html" . }}
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
{{- if not .Params.disableMeta -}}
|
||||
{{- partial "post-meta.html" . -}}
|
||||
{{- end -}}
|
||||
<hr />
|
||||
</header>
|
||||
<hr />
|
||||
<div class="e-content entry-content" itemprop="articleBody">
|
||||
<meta itemprop="author" content="Rohan Kumar" />
|
||||
<!--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| )?` "" -}}
|
||||
{{- /* 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)) -}}
|
||||
{{ $title = $title | replaceRE `^[^:]{0,20}: ?` "" }}
|
||||
{{ $title = $title | replaceRE `^[^:]{0,20}: ?` "" | replaceRE `^"@Seirdy@pleroma.envs.net ?` `"` }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- if and ($hasContent) (gt (countrunes $webmention.title) 128) -}}
|
||||
|
|
Loading…
Reference in a new issue