diff options
author | Nicholas Johnson <mail@nicholasjohnson.ch> | 2024-11-08 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <mail@nicholasjohnson.ch> | 2024-11-08 00:00:00 +0000 |
commit | 9057f651fb508edf0e0488df590ed119d08a28b5b8860c7eedd1190eb6e5f571 (patch) | |
tree | ea976f6e5f4339bdf376de832f73bd00612f0cc6320d2031ce92cbbcfd06ce0b /layouts/partials | |
parent | 9b5a1119d7c0b381be13a329e58388f76637d456d4b0de4c54e2ce2bafaf74a7 (diff) | |
download | hugo-theme-journal-9057f651fb508edf0e0488df590ed119d08a28b5b8860c7eedd1190eb6e5f571.tar.gz hugo-theme-journal-9057f651fb508edf0e0488df590ed119d08a28b5b8860c7eedd1190eb6e5f571.zip |
Change CSS styling for external links
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/metadata.html | 2 | ||||
-rw-r--r-- | layouts/partials/pageinfo.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index 47106e8..4158ee5 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -1,6 +1,6 @@ <article> <header> <p>{{ partial "pageinfo.html" . }}<br> - {{ emojify ":link:" }} <a class="link" href="{{ .RelPermalink }}" rel="noreferrer">{{ .Title }}</a></p> + {{ emojify ":link:" }} <a class="link link--internal" href="{{ .RelPermalink }}" rel="noreferrer">{{ .Title }}</a></p> </header> </article>
\ No newline at end of file diff --git a/layouts/partials/pageinfo.html b/layouts/partials/pageinfo.html index 4c0e855..c002530 100644 --- a/layouts/partials/pageinfo.html +++ b/layouts/partials/pageinfo.html @@ -1,2 +1,2 @@ {{ $dateFormat := .Site.Params.dateFormat | default ":date_long" -}} -{{ emojify ":calendar:" }} <time {{ printf "datetime=%q" (.Page.PublishDate | time.Format "2006-01-02T15:04:05-0700") | safeHTMLAttr }}>{{ .Page.PublishDate | time.Format $dateFormat }}</time> | {{ emojify ":stopwatch:" }} <time datetime="PT{{ .ReadingTime }}M">{{ i18n "readingTime" .ReadingTime }}</time>{{ if (.Param (lower (i18n "tags"))) }} | {{ emojify ":label:" }} {{ end }}{{ range $key, $val := (.Param (lower (i18n "tags"))) }}{{ if $key }}, {{ end }}<a class="link" href='{{ relLangURL (lower (i18n "tags")) }}/{{ . | urlize }}/' rel="noreferrer">{{ $val }}</a>{{ end }} +{{ emojify ":calendar:" }} <time {{ printf "datetime=%q" (.Page.PublishDate | time.Format "2006-01-02T15:04:05-0700") | safeHTMLAttr }}>{{ .Page.PublishDate | time.Format $dateFormat }}</time> | {{ emojify ":stopwatch:" }} <time datetime="PT{{ .ReadingTime }}M">{{ i18n "readingTime" .ReadingTime }}</time>{{ if (.Param (lower (i18n "tags"))) }} | {{ emojify ":label:" }} {{ end }}{{ range $key, $val := (.Param (lower (i18n "tags"))) }}{{ if $key }}, {{ end }}<a class="link link--internal" href='{{ relLangURL (lower (i18n "tags")) }}/{{ . | urlize }}/' rel="noreferrer">{{ $val }}</a>{{ end }} |