From bc0b882242c9b2f188f19c76698504060e220aad Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Tue, 16 Jul 2024 15:56:14 +0100 Subject: [PATCH] Added shortlink rel link to all regular pages --- config.toml | 1 + layouts/partials/head.html | 3 +++ todo.md | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.toml b/config.toml index 1586baeb..8e4ffa73 100644 --- a/config.toml +++ b/config.toml @@ -60,6 +60,7 @@ date = ["date", "publishDate", "lastmod", ":git"] themeColor = "#252627" clapshost = "byjp-claps.web.val.run" + shortlinkhost = "byjp.fyi" [params.favicon.color] mask = "#252627" diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 350c083f..9bab9134 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -11,6 +11,9 @@ {{- if .IsHome }}{{ with getenv "HUGO_LAST_UPDATE_TIME" }}{{ $modified = time . }}{{ end }}{{ end -}} +{{ with partial "shortlink.txt" . -}} + +{{- end }} diff --git a/todo.md b/todo.md index b34cfa90..ad5b2781 100644 --- a/todo.md +++ b/todo.md @@ -34,7 +34,7 @@ Things I might work on within my personal blog's software. - [x] Allow for customisation of shortlinks - [x] Create suitable `_redirects` files - [x] Import pre-existing shortlinks - - [ ] Add shortlink as `` on all relevant pages + - [x] Add shortlink as `` on all relevant pages - [ ] Upload new redirects to byjp.fyi repo - [ ] Add additional logic to _combine_ the redirects files as needed