продолжаем opengraphить
All checks were successful
/ site (push) Successful in 1s

This commit is contained in:
Артём 2024-08-10 10:59:20 +03:00
parent 2503386941
commit 7400d68fd3
Signed by: SadmL
GPG key ID: EEFBB39006B28920
3 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,5 @@
---
title: "Статьи"
description: "Список статей"
---

View file

@ -8,10 +8,9 @@
{{ .Title }}
</h1>
</header>
<aside>
{{ partial "cover.html" . }}
{{ .TableOfContents }}
</aside>
{{ .Content | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" ariaLabel="Anchor">&#8983;</a> ${3}` | safeHTML }}

View file

@ -37,7 +37,7 @@
{{- with partial "_funcs/get-page-images" . }}
{{- range . | first 6 }}
<meta property="og:image" content="{{ .Permalink }}">
<meta property="og:image" content="{{ .Cover | absURL }}">
{{- end }}
{{- end }}