From 2d46defaae5cffb48ecdd4f501453a0c39239039 Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 29 Jan 2021 00:17:38 +0100 Subject: Disable taxonomies and use newer syntax. --- layouts/_default/baseof.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'layouts/_default/baseof.html') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 694d8a0..9805f8a 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -19,11 +19,11 @@
{{ block "main" . }}{{ end }} -- cgit v1.2.3-70-g09d2 From 0c4e03691243c368a21953c3c9ecf0a7f5afac75 Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 29 Jan 2021 00:30:17 +0100 Subject: Add Canonical URLs. --- layouts/_default/baseof.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/_default/baseof.html') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 9805f8a..cd893d4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,8 +9,8 @@ - + {{ .Title }} -- cgit v1.2.3-70-g09d2 From c9678556ce632e30672932bf4447b8cc756783a8 Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 29 Jan 2021 12:02:58 +0100 Subject: Adding optional meta tags to baseof template. --- layouts/_default/baseof.html | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'layouts/_default/baseof.html') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index cd893d4..6c13084 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -6,9 +6,21 @@ - - - + {{ if .Description }} + + {{ end }} + + {{ if .Keywords }} + + {{ end }} + + {{ if .PublishDate }} + + {{ end }} + + {{ if .Lastmod }} + + {{ end }} -- cgit v1.2.3-70-g09d2 From b05f6ef6a1bd9ce4f8119ef1033583d54d0f879b Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 29 Jan 2021 13:34:58 +0100 Subject: Don't use PublishDate. --- layouts/_default/baseof.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/_default/baseof.html') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6c13084..b21c8df 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -15,7 +15,7 @@ {{ end }} {{ if .PublishDate }} - + {{ end }} {{ if .Lastmod }} -- cgit v1.2.3-70-g09d2 From efa71ff90fb0fe6727d9b2fc2cb496a1ea514951 Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 29 Jan 2021 15:08:50 +0100 Subject: Remove keywords and add descriptions. --- archetypes/default.md | 1 - content/_index.md | 1 + content/blog/_index.md | 1 + content/blog/dns-over-tls.md | 2 ++ content/blog/git-server.md | 2 ++ content/blog/hello.md | 2 ++ content/contact.md | 1 + layouts/_default/baseof.html | 10 ++-------- 8 files changed, 11 insertions(+), 9 deletions(-) (limited to 'layouts/_default/baseof.html') diff --git a/archetypes/default.md b/archetypes/default.md index 3914273..bed9f4e 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,7 +1,6 @@ --- title: "{{ replace .Name "-" " " | title }}" description: "" -keywords: "" date: {{ .Date }} lastmod: {{ .Date }} draft: true diff --git a/content/_index.md b/content/_index.md index 70953f8..a4abe72 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,5 +1,6 @@ --- title: "Mateja Maric's Homepage" +description: "I am Mateja Maric and this is my personal web site. I am a student from Belgrade, Serbia. I am primarily interested in Unix-like operating systems and free(as in freedom) software." draft: false --- diff --git a/content/blog/_index.md b/content/blog/_index.md index 37a30aa..ab569cf 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -1,5 +1,6 @@ --- title: "Mateja Maric's Blog" +description: "This is my personal blog where I occasionally post technology related stuff." draft: false --- diff --git a/content/blog/dns-over-tls.md b/content/blog/dns-over-tls.md index 5a52b62..2c7a8a7 100644 --- a/content/blog/dns-over-tls.md +++ b/content/blog/dns-over-tls.md @@ -1,6 +1,8 @@ --- title: "DNS over TLS on Arch Linux" date: 2020-08-20 +lastmod: 2020-08-20 +description: "In this guide I will show you how to set up DNS over TLS on Arch Linux using systemd-resolved." slug: "dns-over-tls" draft: false --- diff --git a/content/blog/git-server.md b/content/blog/git-server.md index fc6ebef..ad920f7 100644 --- a/content/blog/git-server.md +++ b/content/blog/git-server.md @@ -1,6 +1,8 @@ --- title: "Set up your own Smart HTTP Git Server with Gitolite, Cgit and Apache" date: 2020-08-10 +lastmod: 2020-08-10 +description: "This guide is for people want to setup their own git server but don’t want something as big as GitLab or Gitea, and don’t want something overly simple like bare git repository over SSH." slug: "git-server" draft: false --- diff --git a/content/blog/hello.md b/content/blog/hello.md index 2adca90..ce4e7fc 100644 --- a/content/blog/hello.md +++ b/content/blog/hello.md @@ -1,6 +1,8 @@ --- title: "Hello World!" date: 2019-09-10 +lastmod: 2019-09-10 +description: "My site is online and this post is used to mark the event!" draft: false --- diff --git a/content/contact.md b/content/contact.md index b427abb..6156eff 100644 --- a/content/contact.md +++ b/content/contact.md @@ -1,5 +1,6 @@ --- title: "Mateja Maric's Contact Page" +description: "Here you can find my contact information such as email and GPG key if you want to use it." draft: false --- diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b21c8df..4a0c152 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,17 +9,11 @@ {{ if .Description }} {{ end }} - - {{ if .Keywords }} - - {{ end }} - {{ if .PublishDate }} - + {{ end }} - {{ if .Lastmod }} - + {{ end }} -- cgit v1.2.3-70-g09d2 From dfce7e8e7a7ea9120ea18f5b50643dc12aaec331 Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 29 Jan 2021 16:17:09 +0100 Subject: Using Schema.org microdata. --- layouts/_default/baseof.html | 8 -------- layouts/blog/single.html | 18 +++++++++++++++--- 2 files changed, 15 insertions(+), 11 deletions(-) (limited to 'layouts/_default/baseof.html') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 4a0c152..56e582c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,17 +5,9 @@ - {{ if .Description }} {{ end }} - {{ if .PublishDate }} - - {{ end }} - {{ if .Lastmod }} - - {{ end }} - diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 4db531d..50ec4d8 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -1,7 +1,19 @@ {{ define "main" }} -

{{ .Title }}

+
+

{{ .Title }}

-{{ .Date.Format "2 Jan 2006" }} + + Published: + + {{ if not (eq .Lastmod .Date) }} +
Modified: + + {{ end }} +
-{{ .Content }} +
+ {{ .Content }} +
+
{{ end }} -- cgit v1.2.3-70-g09d2