diff options
author | Mateja <mail@matejamaric.com> | 2021-01-29 00:17:38 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-01-29 00:17:38 +0100 |
commit | 2d46defaae5cffb48ecdd4f501453a0c39239039 (patch) | |
tree | 9de18dd5ada603d03cd445c14c7ac96eb68faeb1 | |
parent | fad5048739420150a4bd0eab724c4544bcc8a444 (diff) | |
download | blog-2d46defaae5cffb48ecdd4f501453a0c39239039.tar.gz blog-2d46defaae5cffb48ecdd4f501453a0c39239039.zip |
Disable taxonomies and use newer syntax.
-rw-r--r-- | config.toml | 7 | ||||
-rw-r--r-- | content/contact.md | 2 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 10 | ||||
-rw-r--r-- | 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: <a href="mailto:mail@matejamaric.com">mail@matejamaric.com</a> +You can send me an e-mail at: mail@matejamaric.com <b>Please, check your spam folder!</b> <br>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 @@ <body> <nav> <div class="mm">Mateja Maric</div> - <a class="{{ if eq .URL `/`}}active{{ end }}" href="/">Home</a> - <a class="{{ if eq .URL `/blog/`}}active{{ end }}" href="/blog/">Blog</a> - <a href="https://github.com/MatejaMaric">GitHub</a> - <a href="https://git.matejamaric.com">Git server</a> - <a class="{{ if eq .URL `/contact/`}}active{{ end }}" href="/contact/">Contact</a> + <a {{ if eq .RelPermalink "/" }} class="active" {{ end }} href="/">Home</a> + <a {{ if eq .RelPermalink "/blog/" }} class="active" {{ end }} href="/blog/">Blog</a> + <a target="_blank" href="https://github.com/MatejaMaric">GitHub</a> + <a target="_blank" href="https://git.matejamaric.com">Git server</a> + <a {{ if eq .RelPermalink "/contact/" }} class="active" {{ end }} href="/contact/">Contact</a> </nav> <main> {{ 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 @@ <h3>Posts</h3> <ul> {{ range .Pages }} - <li>{{ .Date.Format "2 Jan 2006" }} - <a href="{{ .URL }}">{{ .Title }}</a></li> + <li>{{ .Date.Format "2 Jan 2006" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li> {{ end }} </ul> {{ end }} |