mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 22:16:07 +01:00
Added shortlink rel link to all regular pages
This commit is contained in:
parent
079e2edd5a
commit
bc0b882242
3 changed files with 5 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
{{- if .IsHome }}{{ with getenv "HUGO_LAST_UPDATE_TIME" }}{{ $modified = time . }}{{ end }}{{ end -}}
|
||||
<meta property="dcterms.modified" content="{{ $modified.Format "2006-01-02T15:04:05Z07:00"}}"/>
|
||||
<link rel="canonical" href="{{ .Permalink }}" class="u-url"/>
|
||||
{{ with partial "shortlink.txt" . -}}
|
||||
<link rel="shortlink" href="https://{{ site.Params.shortlinkhost }}/{{ . }}" class="u-url" />
|
||||
{{- end }}
|
||||
<link rel="schema.dcterms" href="http://purl.org/dc/terms/"/>
|
||||
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="{{ .Site.Title }}"/>
|
||||
<link rel="search" type="application/pagefind" href="/search" title="{{ .Site.Title }}"/>
|
||||
|
|
2
todo.md
2
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 `<link rel="shortlink">` on all relevant pages
|
||||
- [x] Add shortlink as `<link rel="shortlink">` on all relevant pages
|
||||
- [ ] Upload new redirects to byjp.fyi repo
|
||||
- [ ] Add additional logic to _combine_ the redirects files as needed
|
||||
|
||||
|
|
Loading…
Reference in a new issue