1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +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:
Rohan Kumar 2022-08-02 18:20:52 -07:00
parent 1e781a3bf8
commit 09e14bcfc2
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
3 changed files with 3 additions and 2 deletions

View file

@ -2,6 +2,7 @@
<main>
<h1 id="h1" tabindex="-1">Seirdys Home</h1>
<p itemprop="description">{{ .Site.Params.Description }}</p>
<hr />
<div class="narrow">
{{ partial "processed-content.html" . }}
{{ partial "posts.html" . }}

View file

@ -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-->

View file

@ -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) -}}