Compare commits

...

2 Commits

Author SHA1 Message Date
Ariadne Conill 0ceee8ebd5 single: add opengraph tags, closes #1
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-08-11 08:50:55 +00:00
Ariadne Conill 5aabd4606e single: add page title to title block 2022-08-11 08:44:02 +00:00
2 changed files with 20 additions and 0 deletions

View File

@ -10,6 +10,8 @@
<link rel="alternate" type="application/rss+xml" href="/index.xml">
<link rel="alternate" type="application/atom+xml" href="/atom.xml">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ block "opengraph" . }}
{{ end }}
</head>
<body>
<nav id="sidebar">

View File

@ -14,3 +14,21 @@
{{ end }}
</article>
{{ end }}
{{ define "title" }}
{{ .Title }} | {{ .Site.Title }}
{{ end }}
{{ define "opengraph" }}
<!-- Opengraph tags -->
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:title" content="{{ .Title }}">
{{ if .Date }}
<meta property="og:type" content="article">
{{ end }}
<meta property="og:description" content="{{ .Summary }}">
<!-- Twitter tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:creator" content="@ariadneconill">
{{ end }}