Skip to content

Commit f2494ca

Browse files
author
Linus
committed
support for discord n shit
1 parent 2e4db8c commit f2494ca

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

hugo.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ enableRobotsTXT: true
88
params:
99
theme: "dark-pink"
1010
author: "AmeliaYeah"
11+
description: "Just a simple security blog where I talk about shit."
1112
posts-per-page: 3
1213

1314
permalinks:

themes/neopost/layouts/_default/baseof.html

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
<!DOCTYPE html>
22
<html lang="{{ .Site.Language }}">
33
<head>
4+
{{ $title := (cond (.IsHome) .Site.Title .Title) }}
5+
{{ $description := (cond (.IsHome) .Site.Params.Description .Description ) }}
6+
{{ $author := (cond (.IsHome) .Site.Params.Author .Params.Author) }}
7+
48
<!-- Primary Meta Tags -->
5-
<title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
9+
<title>{{ $title }}</title>
610
<link rel="canonical" href="{{ .Site.BaseURL }}">
711
<link rel="icon" href="/favicon.ico">
8-
<meta name="description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}">
12+
<meta name="description" content="{{ $description }}">
13+
<meta name="author" content="{{ $author }}">
914

1015
<!-- Open Graph / Facebook -->
11-
<meta property="og:title" content="{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}" />
16+
<meta property="og:title" content="{{ $title }}" />
1217
<meta property="og:type" content="website" />
1318
<meta property="og:url" content="{{ .Site.BaseURL }}" />
1419
<meta property="og:image" content="/icon.png" />
15-
<meta property="og:description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}" />
20+
<meta property="og:description" content="{{ $description }}" />
1621

1722
<!-- X (Twitter) -->
1823
<meta property="twitter:card" content="summary" />
1924
<meta property="twitter:url" content="{{ .Site.BaseURL }}" />
20-
<meta property="twitter:title" content="{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}" />
21-
<meta property="twitter:description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}" />
25+
<meta property="twitter:title" content="{{ $title }}" />
26+
<meta property="twitter:description" content="{{ $description }}" />
2227
<meta property="twitter:image" content="/icon.png" />
2328

2429
<!-- Meta Tags Generated with https://metatags.io -->

0 commit comments

Comments
 (0)