aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicksphere.ch>2022-09-03 00:00:00 +0000
committerNicholas Johnson <nick@nicksphere.ch>2022-09-03 00:00:00 +0000
commit91d9491fb2b4c9c83c116f3703764b1a009c158be10427a8f10575c908661a4e (patch)
treeade0cf0b940307a76a75c9ced558a8247caea4c2e0700b6b7d7b6d1b1e155fc1 /layouts
parentd8bd01dc55cb321ab7d227afcf1a2c637c4e56016b57e120513df5838a5173dc (diff)
downloadhugo-theme-journal-91d9491fb2b4c9c83c116f3703764b1a009c158be10427a8f10575c908661a4e.tar.gz
hugo-theme-journal-91d9491fb2b4c9c83c116f3703764b1a009c158be10427a8f10575c908661a4e.zip
Add link emoji to give links some style
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/_markup/render-link.html2
-rw-r--r--layouts/_default/single.gmi2
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/index.gmi2
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/partials/metadata.gmi4
-rw-r--r--layouts/partials/metadata.html2
7 files changed, 8 insertions, 8 deletions
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html
index 6f02037..9a14f8f 100644
--- a/layouts/_default/_markup/render-link.html
+++ b/layouts/_default/_markup/render-link.html
@@ -1 +1 @@
-<a href="{{ .Destination | safeURL }}" rel="noreferrer">{{ .Text | safeHTML }}</a>
+<a href="{{ .Destination | safeURL }}" rel="noreferrer">🔗 {{ .Text | safeHTML }}</a>
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index 1347179..ae4fc3c 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -1,5 +1,5 @@
{{ define "main" }}
-=> ./{{ replaceRE ".+?/" "../" .RelPermalink | safeURL }} Return to homepage
+=> ./{{ replaceRE ".+?/" "../" .RelPermalink | safeURL }} 🔗 Return to homepage
{{ $content := .RawContent }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 2aab5a7..83ed937 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,6 +1,6 @@
{{ define "main" -}}
<nav>
- <p id="return"><a href="/" rel="noreferrer">Return to homepage</a></p>
+ <p id="return"><a href="/" rel="noreferrer">🔗 Return to homepage</a></p>
</nav>
<main>
{{ .Content -}}
diff --git a/layouts/index.gmi b/layouts/index.gmi
index 9c58e8f..b1b7720 100644
--- a/layouts/index.gmi
+++ b/layouts/index.gmi
@@ -4,7 +4,7 @@
## Navigation Links
{{ range .Site.Menus.main -}}
-=> .{{ .URL }} {{ .Name | safeHTML }}
+=> .{{ .URL }} 🔗 {{ .Name | safeHTML }}
{{ end }}
## Journal Entries
{{ partial "metadata.gmi" . }}{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
index c98c1f2..0ad05b1 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -6,7 +6,7 @@
<nav>
<ul>
{{- range .Site.Menus.main }}
- <li class="navlink"><a href="{{ .URL }}" rel="noreferrer">{{ .Name }}</a></li>
+ <li class="navlink"><a href="{{ .URL }}" rel="noreferrer">🔗 {{ .Name }}</a></li>
{{- end }}
</ul>
</nav>
diff --git a/layouts/partials/metadata.gmi b/layouts/partials/metadata.gmi
index f5cca3b..693ac32 100644
--- a/layouts/partials/metadata.gmi
+++ b/layouts/partials/metadata.gmi
@@ -2,10 +2,10 @@
{{- range first $entriesMinusOne (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }}
{{- $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }}
{{- .PublishDate.Format $dateFormat | safeHTML }} - {{ .ReadingTime | safeHTML }} minute read
-=> .{{ .RelPermalink }} {{ .Title | safeHTML }}
+=> .{{ .RelPermalink }} 🔗 {{ .Title | safeHTML }}
{{ end }}
{{- range last 1 (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }}
{{- $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }}
{{- .PublishDate.Format $dateFormat | safeHTML }} - {{ .ReadingTime | safeHTML }} minute read
-=> .{{ .RelPermalink }} {{ .Title | safeHTML }}{{ end }}
+=> .{{ .RelPermalink }} 🔗 {{ .Title | safeHTML }}{{ end }}
diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html
index 92c0b83..35385a1 100644
--- a/layouts/partials/metadata.html
+++ b/layouts/partials/metadata.html
@@ -3,7 +3,7 @@
<article>
<header>
<p>{{ .PublishDate.Format $dateFormat }} - {{ .ReadingTime }} minute read<br>
- <a href="{{ .RelPermalink }}" rel="noreferrer">{{ .Title }}</a></p>
+ <a href="{{ .RelPermalink }}" rel="noreferrer">🔗 {{ .Title }}</a></p>
</header>
</article>
{{ end }} \ No newline at end of file