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. --- config.toml | 7 ++++++- content/contact.md | 2 +- layouts/_default/baseof.html | 10 +++++----- layouts/_default/list.html | 2 +- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/config.toml b/config.toml index 8ecce48..f320c8f 100644 --- a/config.toml +++ b/config.toml @@ -1,3 +1,8 @@ baseURL = "https://matejamaric.com/" -languageCode = "en-us" +languageCode = "en" title = "Mateja Maric's Homepage" +# Disable default taxonomies +disableKinds = ["taxonomy", "term"] +# Enable inline HTML +[markup.goldmark.renderer] +unsafe = true diff --git a/content/contact.md b/content/contact.md index fe6d43f..b427abb 100644 --- a/content/contact.md +++ b/content/contact.md @@ -3,7 +3,7 @@ title: "Mateja Maric's Contact Page" draft: false --- -You can send me an e-mail at: mail@matejamaric.com +You can send me an e-mail at: mail@matejamaric.com Please, check your spam folder!
Sometimes big e-mail providers put e-mail from smaller domains in spam folder, Microsoft is especially notorious for this practice. 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 }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 2fcfeba..2051961 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -3,7 +3,7 @@

Posts

{{ end }} -- cgit v1.2.3 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(-) 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 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(-) 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 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(-) 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 From b5a0fb94e079399aee32ac69d97349520f2654eb Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 29 Jan 2021 13:36:46 +0100 Subject: Add additional archetypes. --- archetypes/default.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archetypes/default.md b/archetypes/default.md index 00e77bd..3914273 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,6 +1,9 @@ --- title: "{{ replace .Name "-" " " | title }}" +description: "" +keywords: "" date: {{ .Date }} +lastmod: {{ .Date }} draft: true --- -- cgit v1.2.3 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(-) 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 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(-) 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 From 084af95449a3f29ad5db86ff939e0ed535445220 Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 29 Jan 2021 17:02:43 +0100 Subject: Update README. --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 167c48a..4e5558d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ -# Work in progress +# About this project -I am moving my blog from plain HTML and CSS to Hugo. +This code is used to build [my website](https://matejamaric.com) using [Hugo](https://gohugo.io/). + +It doesn't use any prebuilt theme. Source Markdown files are in `content` directory. +The way site is build is described in `layouts` directory. +General structure and navbar of every page is described in `layouts/_default/baseof.html` template. +Structure of blog posts is described in `layouts/blog/single.html`. + +# How to build + +Install [Hugo](https://gohugo.io/) and just run `hugo` command which will generate `public` directory +that contains the files you can host pretty much anywhere. + +You can also run `hugo server` which will start development web server on . -- cgit v1.2.3 From f1bb75fca45eca4ef1ac9ad310c3fb7d2f5392a6 Mon Sep 17 00:00:00 2001 From: Mateja Date: Tue, 2 Feb 2021 22:37:55 +0100 Subject: Add repo link at the end of blog posts. --- content/blog/dns-over-tls.md | 3 ++- content/blog/git-server.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/content/blog/dns-over-tls.md b/content/blog/dns-over-tls.md index 2c7a8a7..3f93787 100644 --- a/content/blog/dns-over-tls.md +++ b/content/blog/dns-over-tls.md @@ -42,4 +42,5 @@ This is how your `/etc/NetworkManager/NetworkManger.conf` should look like: **You will probably need to restart your computer for changes to take effect.** -If you found any mistakes or that something is outdated, please [contact me](/contact/). +If you found any mistakes or that something is outdated, please +feel free to [contact me](/contact/) or contribute to [this site's repository](https://github.com/MatejaMaric/blog). diff --git a/content/blog/git-server.md b/content/blog/git-server.md index ad920f7..c82d0be 100644 --- a/content/blog/git-server.md +++ b/content/blog/git-server.md @@ -263,7 +263,8 @@ You can just append this to your `httpd-vhosts-le-ssl.conf` file, you should of Don't forget to restart Apache for changes to take effect! That's all, hope you like your new git server! -If you found any mistakes, or that something is outdated, badly explained or you have something to add, feel free to [contact me](/contact/). +If you found any mistakes, or that something is outdated, badly explained or you have something to add, +feel free to [contact me](/contact/) or contribute to [this site's repository](https://github.com/MatejaMaric/blog). ## Resources - -- cgit v1.2.3 From 47f5fbe92a7a5cc8f9906927e73527d278d2b542 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sun, 28 Feb 2021 21:18:28 +0100 Subject: Update my age. --- content/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_index.md b/content/_index.md index a4abe72..6800102 100644 --- a/content/_index.md +++ b/content/_index.md @@ -4,7 +4,7 @@ description: "I am Mateja Maric and this is my personal web site. I am a student draft: false --- -I am Mateja Maric, a 19 years old student from Belgrade, Serbia. +I am Mateja Maric, a 20 years old student from Belgrade, Serbia. I was interested in computers ever since I laid my hands on one and I taught myself to program in C++ when I was 12 years old. Throughout the years I learned bunch of other programming languages and technologies. -- cgit v1.2.3