aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-03-14 15:11:23 -0400
committertdro <tdro@noreply.example.com>2023-03-14 15:11:23 -0400
commitef2611e3c2c07b42f4c8d32ad8cce7d5d634e822 (patch)
tree8a87daba0eb4a355f732ec7e5f3bf3e9bfe3ad7b /themes/default/layouts/partials
parentbde0c042a2d050a8549707f62dec57844c56a0c5 (diff)
downloadcanory-ef2611e3c2c07b42f4c8d32ad8cce7d5d634e822.tar.gz
canory-ef2611e3c2c07b42f4c8d32ad8cce7d5d634e822.tar.bz2
canory-ef2611e3c2c07b42f4c8d32ad8cce7d5d634e822.zip
themes/default/layouts/partials/function-paths: Return dict here
Diffstat (limited to 'themes/default/layouts/partials')
-rw-r--r--themes/default/layouts/partials/author-card.html8
-rw-r--r--themes/default/layouts/partials/author-header.html6
-rw-r--r--themes/default/layouts/partials/author-picture.html6
-rw-r--r--themes/default/layouts/partials/author-section-picture.html6
-rw-r--r--themes/default/layouts/partials/function-fetch-favicons.html4
-rw-r--r--themes/default/layouts/partials/function-paths.html14
-rw-r--r--themes/default/layouts/partials/meta-anchored.html4
-rw-r--r--themes/default/layouts/partials/meta-context-menu.html6
-rw-r--r--themes/default/layouts/partials/meta-date-time.html2
-rw-r--r--themes/default/layouts/partials/meta-draft.html2
-rw-r--r--themes/default/layouts/partials/meta-expiry-date.html2
-rw-r--r--themes/default/layouts/partials/meta-handle.html2
-rw-r--r--themes/default/layouts/partials/meta-markdown.html4
-rw-r--r--themes/default/layouts/partials/meta-permalink.html2
-rw-r--r--themes/default/layouts/partials/meta-read-time.html2
-rw-r--r--themes/default/layouts/partials/meta-unlisted.html2
-rw-r--r--themes/default/layouts/partials/meta-via.html2
-rw-r--r--themes/default/layouts/partials/meta-view.html2
-rw-r--r--themes/default/layouts/partials/meta-word-count.html2
-rw-r--r--themes/default/layouts/partials/navigator-left.html2
-rw-r--r--themes/default/layouts/partials/navigator-middle.html8
-rw-r--r--themes/default/layouts/partials/pagination.html4
-rw-r--r--themes/default/layouts/partials/profile.html8
23 files changed, 50 insertions, 50 deletions
diff --git a/themes/default/layouts/partials/author-card.html b/themes/default/layouts/partials/author-card.html
index 6f771b7..7a8395a 100644
--- a/themes/default/layouts/partials/author-card.html
+++ b/themes/default/layouts/partials/author-card.html
@@ -13,8 +13,8 @@
{{- $source := "" -}}
{{- $sourceset := "" -}}
-{{- $source = print "/" (partial "function-paths.html" "media") "/" .Data.user "/" .Data.user "-profile" (path.Ext .Data.picture.profile) -}}
-{{- $sourceset = print "/" (partial "function-paths.html" "media") "/" .Data.user "/" .Data.user "-profile.webp" -}}
+{{- $source = print "/" (partial "function-paths.html").media "/" .Data.user "/" .Data.user "-profile" (path.Ext .Data.picture.profile) -}}
+{{- $sourceset = print "/" (partial "function-paths.html").media "/" .Data.user "/" .Data.user "-profile.webp" -}}
{{- with $metadata := resources.Get $metadata -}}
{{- $metadata = $metadata.Content | transform.Unmarshal -}}
@@ -24,7 +24,7 @@
{{- if or
(not (path.Ext .Data.picture.profile))
- (not (fileExists (print "public/" (partial "function-paths.html" "media") "/" .Data.user)))
+ (not (fileExists (print "public/" (partial "function-paths.html").media "/" .Data.user)))
-}}
{{- $source = "/data/media/404.png" -}}
{{- $sourceset = "" -}}
@@ -72,7 +72,7 @@
</micro-header>
<p>{{ .Data.description | markdownify | plainify | htmlUnescape | truncate 60 "..." }}</p>
<a title="Follow with RSS Reader" href="{{ "" | absURL }}/{{ .Data.user }}/rss.xml">
- {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/rss.svg")) }}
+ {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/rss.svg")) }}
<span>Follow</span>
</a>
</micro-summary>
diff --git a/themes/default/layouts/partials/author-header.html b/themes/default/layouts/partials/author-header.html
index a1e43d2..5bcc0e6 100644
--- a/themes/default/layouts/partials/author-header.html
+++ b/themes/default/layouts/partials/author-header.html
@@ -11,9 +11,9 @@
"Context" .
"Source" $header
"Resize" "x600"
- "Target" (print (partial "function-paths.html" "media") "/" $author.user "/")
- "Copy" (print (partial "function-paths.html" "media") "/" $author.user "/" (path.Base $header))
- "AlternateCopy" (print (partial "function-paths.html" "media") "/" $author.user "/" (path.BaseName $header) ".webp")
+ "Target" (print (partial "function-paths.html").media "/" $author.user "/")
+ "Copy" (print (partial "function-paths.html").media "/" $author.user "/" (path.Base $header))
+ "AlternateCopy" (print (partial "function-paths.html").media "/" $author.user "/" (path.BaseName $header) ".webp")
)
-}}
diff --git a/themes/default/layouts/partials/author-picture.html b/themes/default/layouts/partials/author-picture.html
index becb40a..dbbfd69 100644
--- a/themes/default/layouts/partials/author-picture.html
+++ b/themes/default/layouts/partials/author-picture.html
@@ -11,14 +11,14 @@
{{- $alternate = $.Params.feed.name -}}
{{- $width = "64" -}}
{{- $height = "64" -}}
- {{- $source = print "/" (partial "function-paths.html" "media") "/favicon." ($.Params.feed.source | anchorize) ".png" -}}
+ {{- $source = print "/" (partial "function-paths.html").media "/favicon." ($.Params.feed.source | anchorize) ".png" -}}
{{- if not (fileExists (print "public/" $source)) -}}
{{- $source = $.Params.feed.favicon -}}
{{- end -}}
{{- $sourceset = "" -}}
{{- else -}}
- {{- $source = print "/" (partial "function-paths.html" "media") "/" $author.user "/" $author.user "-profile" (path.Ext $author.picture.profile) -}}
- {{- $sourceset = print "/" (partial "function-paths.html" "media") "/" $author.user "/" $author.user "-profile.webp" -}}
+ {{- $source = print "/" (partial "function-paths.html").media "/" $author.user "/" $author.user "-profile" (path.Ext $author.picture.profile) -}}
+ {{- $sourceset = print "/" (partial "function-paths.html").media "/" $author.user "/" $author.user "-profile.webp" -}}
{{- with $metadata := resources.Get $metadata -}}
{{- $metadata = $metadata.Content | transform.Unmarshal -}}
{{- $width = $metadata.picture.profileWidth -}}
diff --git a/themes/default/layouts/partials/author-section-picture.html b/themes/default/layouts/partials/author-section-picture.html
index a3ff1f7..de0806b 100644
--- a/themes/default/layouts/partials/author-section-picture.html
+++ b/themes/default/layouts/partials/author-section-picture.html
@@ -11,9 +11,9 @@
"Context" .
"Source" $profile
"Fit" "160x160"
- "Target" (print (partial "function-paths.html" "media") "/" $author.user "/")
- "Copy" (print (partial "function-paths.html" "media") "/" $author.user "/" $author.user "-profile" (path.Ext $profile))
- "AlternateCopy" (print (partial "function-paths.html" "media") "/" $author.user "/" $author.user "-profile.webp")
+ "Target" (print (partial "function-paths.html").media "/" $author.user "/")
+ "Copy" (print (partial "function-paths.html").media "/" $author.user "/" $author.user "-profile" (path.Ext $profile))
+ "AlternateCopy" (print (partial "function-paths.html").media "/" $author.user "/" $author.user "-profile.webp")
)
-}}
diff --git a/themes/default/layouts/partials/function-fetch-favicons.html b/themes/default/layouts/partials/function-fetch-favicons.html
index 7f92a94..facde2f 100644
--- a/themes/default/layouts/partials/function-fetch-favicons.html
+++ b/themes/default/layouts/partials/function-fetch-favicons.html
@@ -7,8 +7,8 @@
"Context" $pageContext
"Source" $source
"Fit" "160x160"
- "Target" (print (partial "function-paths.html" "media") "/")
- "Copy" (print (partial "function-paths.html" "media") "/favicon." $infix ".png")
+ "Target" (print (partial "function-paths.html").media "/")
+ "Copy" (print (partial "function-paths.html").media "/favicon." $infix ".png")
)
-}}
diff --git a/themes/default/layouts/partials/function-paths.html b/themes/default/layouts/partials/function-paths.html
index bc36171..5f5a516 100644
--- a/themes/default/layouts/partials/function-paths.html
+++ b/themes/default/layouts/partials/function-paths.html
@@ -1,7 +1,7 @@
-{{- $path := . -}}
-
-{{- if eq $path "markdown" -}} {{- $path = "data/generates/content" -}} {{- end -}}
-{{- if eq $path "media" -}} {{- $path = "data/media" -}} {{- end -}}
-{{- if eq $path "static" -}} {{- $path = "static" -}} {{- end -}}
-
-{{- return $path -}}
+{{-
+ return (dict
+ "markdown" "data/generates/content"
+ "media" "data/media"
+ "static" "static"
+ )
+-}}
diff --git a/themes/default/layouts/partials/meta-anchored.html b/themes/default/layouts/partials/meta-anchored.html
index 61175b0..31b910f 100644
--- a/themes/default/layouts/partials/meta-anchored.html
+++ b/themes/default/layouts/partials/meta-anchored.html
@@ -4,14 +4,14 @@
{{ if .Weight }}
<anchored-pinned>
- {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/tabler/pinned.svg")) }}
+ {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/pinned.svg")) }}
<span>Pinned</span>
</anchored-pinned>
{{ end }}
{{ if .Params.Liked }}
<anchored-liked>
- {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/heart.svg")) }}
+ {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/heart.svg")) }}
<span>Liked</span>
</anchored-liked>
{{ end }}
diff --git a/themes/default/layouts/partials/meta-context-menu.html b/themes/default/layouts/partials/meta-context-menu.html
index 5c9f76c..b24ab5d 100644
--- a/themes/default/layouts/partials/meta-context-menu.html
+++ b/themes/default/layouts/partials/meta-context-menu.html
@@ -5,7 +5,7 @@
<micro-metadata-menu>
<context-control>
<label for="context-metadata-{{ $id }}">
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/arrow-down-circle.svg")) -}}
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/arrow-down-circle.svg")) -}}
<span>menu</span>
</label>
<input hidden type="checkbox" id="context-metadata-{{ $id }}" />
@@ -13,14 +13,14 @@
{{- partial "meta-markdown.html" . -}}
<micro-metadata-plain>
<a href="{{ $plain }}">
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/file-text.svg")) -}}
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/file-text.svg")) -}}
<span>plaintext</span>
</a>
</micro-metadata-plain>
{{- partial "meta-permalink.html" . -}}
<micro-metadata-datetime>
<a title="{{ .Date.Local | time.Format "3:04 PM Jan 2 2006" -}}" href="{{ $href }}">
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/calendar.svg")) -}}
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/calendar.svg")) -}}
<span>{{ .Date.Local | time.Format "Jan 2 2006" | lower -}}</span>
</a>
</micro-metadata-datetime>
diff --git a/themes/default/layouts/partials/meta-date-time.html b/themes/default/layouts/partials/meta-date-time.html
index 0c01edd..bd42fcc 100644
--- a/themes/default/layouts/partials/meta-date-time.html
+++ b/themes/default/layouts/partials/meta-date-time.html
@@ -1,7 +1,7 @@
<micro-metadata-datetime
title="{{ .Date | time.Format "Posted: Monday, January 2, 2006 at 15:04:05 MST" }}
{{ if .Lastmod.After .Date }}{{ .Lastmod | time.Format "Edited: Monday, January 2, 2006 at 15:04:05 MST" }}{{ end }}">
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/calendar.svg")) -}}
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/calendar.svg")) -}}
<time datetime="{{ .Date | time.Format "2006-01-02T15:04:05Z" }}">
{{ (.Date.Local | time.Format "3:04 PM Jan 2 2006") -}}
</time>
diff --git a/themes/default/layouts/partials/meta-draft.html b/themes/default/layouts/partials/meta-draft.html
index 3ba6aee..8662b32 100644
--- a/themes/default/layouts/partials/meta-draft.html
+++ b/themes/default/layouts/partials/meta-draft.html
@@ -4,7 +4,7 @@
<em>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
<a href="{{ .Site.BaseURL }}/{{ .Type }}/drafts/">
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/edit.svg")) -}}
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/edit.svg")) -}}
<span>Draft</span>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
</a>
diff --git a/themes/default/layouts/partials/meta-expiry-date.html b/themes/default/layouts/partials/meta-expiry-date.html
index 62f01da..6eef09e 100644
--- a/themes/default/layouts/partials/meta-expiry-date.html
+++ b/themes/default/layouts/partials/meta-expiry-date.html
@@ -10,7 +10,7 @@
<micro-metadata-expiry
title="{{ $title }}">
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/trash-2.svg")) -}}
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/trash-2.svg")) -}}
<time datetime= "{{- .ExpiryDate | time.Format "2006-01-02T15:04:05Z" -}}">
{{- .ExpiryDate | time.Format "Jan 2 2006" -}}
{{- /* This comment removes trailing newlines and white spaces. */ -}}
diff --git a/themes/default/layouts/partials/meta-handle.html b/themes/default/layouts/partials/meta-handle.html
index 69cd200..d332ab0 100644
--- a/themes/default/layouts/partials/meta-handle.html
+++ b/themes/default/layouts/partials/meta-handle.html
@@ -20,7 +20,7 @@
<a
title="{{ $title }}"
href="{{ $href }}">
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/at-sign.svg")) -}}
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/at-sign.svg")) -}}
<span>{{- $host -}}</span>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
</a>
diff --git a/themes/default/layouts/partials/meta-markdown.html b/themes/default/layouts/partials/meta-markdown.html
index c6e7bdf..5300af5 100644
--- a/themes/default/layouts/partials/meta-markdown.html
+++ b/themes/default/layouts/partials/meta-markdown.html
@@ -1,12 +1,12 @@
{{- if not .ExpiryDate -}}
{{- $relURL := strings.TrimPrefix .Page.Site.BaseURL .Page.Permalink -}}
{{- $source := print (path.Dir $relURL) ".md" -}}
- {{- $href := print .Site.BaseURL "/" (partial "function-paths.html" "markdown") $source -}}
+ {{- $href := print .Site.BaseURL "/" (partial "function-paths.html").markdown $source -}}
{{- $title := .File.LogicalName -}}
<micro-metadata-source>
<a href="{{ $href }}" title="{{ $title }}">
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/code.svg")) -}}
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/code.svg")) -}}
<span>markdown</span>
</a>
</micro-metadata-source>
diff --git a/themes/default/layouts/partials/meta-permalink.html b/themes/default/layouts/partials/meta-permalink.html
index 6c3c05f..3ab09a2 100644
--- a/themes/default/layouts/partials/meta-permalink.html
+++ b/themes/default/layouts/partials/meta-permalink.html
@@ -2,7 +2,7 @@
<micro-metadata-permalink>
<a title="#{{ partial "card-id.html" . }}" href="{{ $href }}">
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/link.svg")) -}}
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/link.svg")) -}}
<span>permalink</span>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
</a>
diff --git a/themes/default/layouts/partials/meta-read-time.html b/themes/default/layouts/partials/meta-read-time.html
index dbc91f2..69c0ffa 100644
--- a/themes/default/layouts/partials/meta-read-time.html
+++ b/themes/default/layouts/partials/meta-read-time.html
@@ -5,7 +5,7 @@
{{- end -}}
<micro-metadata-readtime title="Takes {{ $seconds }} second{{- if not (eq $seconds "1") -}}s{{- end }} to read">
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/clock.svg")) -}}
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/clock.svg")) -}}
<span>{{ $seconds }} sec</span>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
</micro-metadata-readtime>
diff --git a/themes/default/layouts/partials/meta-unlisted.html b/themes/default/layouts/partials/meta-unlisted.html
index aedab0e..827de3c 100644
--- a/themes/default/layouts/partials/meta-unlisted.html
+++ b/themes/default/layouts/partials/meta-unlisted.html
@@ -1,6 +1,6 @@
{{- if .Params.Unlisted -}}
<micro-metadata-unlisted title="This message is off the record">
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/eye-off.svg")) -}}
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/eye-off.svg")) -}}
<span>unlisted</span>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
</micro-metadata-unlisted>
diff --git a/themes/default/layouts/partials/meta-via.html b/themes/default/layouts/partials/meta-via.html
index 483481d..84e7c2f 100644
--- a/themes/default/layouts/partials/meta-via.html
+++ b/themes/default/layouts/partials/meta-via.html
@@ -2,7 +2,7 @@
{{- if .Params.feed -}}
<anchored-via>
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/rss.svg")) -}}
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/rss.svg")) -}}
<a data-hover
title="{{ $author }}@{{ (urls.Parse .Site.BaseURL).Host }}"
href="{{ .Site.BaseURL }}/{{ $author }}/feeds/#">
diff --git a/themes/default/layouts/partials/meta-view.html b/themes/default/layouts/partials/meta-view.html
index 6936da7..ccdac1c 100644
--- a/themes/default/layouts/partials/meta-view.html
+++ b/themes/default/layouts/partials/meta-view.html
@@ -3,7 +3,7 @@
<micro-metadata-view>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
<a href="{{ $href }}">
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/external-link.svg")) -}}
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/external-link.svg")) -}}
<span>view</span>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
</a>
diff --git a/themes/default/layouts/partials/meta-word-count.html b/themes/default/layouts/partials/meta-word-count.html
index e2bcea6..8aaa30d 100644
--- a/themes/default/layouts/partials/meta-word-count.html
+++ b/themes/default/layouts/partials/meta-word-count.html
@@ -16,7 +16,7 @@ title="
">
{{- /* This comment removes trailing newlines and white spaces. */ -}}
<word-limit>
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/file-text.svg")) -}}
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/file-text.svg")) -}}
<word-count>
{{- if $wordLimit -}}
<em>{{ .WordCount }}</em>
diff --git a/themes/default/layouts/partials/navigator-left.html b/themes/default/layouts/partials/navigator-left.html
index 32654e8..1a3bd1d 100644
--- a/themes/default/layouts/partials/navigator-left.html
+++ b/themes/default/layouts/partials/navigator-left.html
@@ -6,7 +6,7 @@
<a id="nav-left-{{ path.Base .Identifier }}" href="{{ .URL | absURL }}">
<span>{{ .Name }}</span>
{{ with .Identifier }}
- {{ $icon := print (partial "function-paths.html" "static") "/icons/" . ".svg" }}
+ {{ $icon := print (partial "function-paths.html").static "/icons/" . ".svg" }}
{{ safeHTML (readFile $icon) }}
{{ end }}
</a>
diff --git a/themes/default/layouts/partials/navigator-middle.html b/themes/default/layouts/partials/navigator-middle.html
index a371506..46c4060 100644
--- a/themes/default/layouts/partials/navigator-middle.html
+++ b/themes/default/layouts/partials/navigator-middle.html
@@ -8,9 +8,9 @@
href="{{ or $href "#" }}"
>
{{ with .Icon }}
- {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/" . ".svg")) }}
+ {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/" . ".svg")) }}
{{ else }}
- {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/arrow-up.svg")) }}
+ {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/arrow-up.svg")) }}
{{ end }}
{{ with .IconLabel }}
<small>{{ . }}</small>
@@ -35,7 +35,7 @@
<icon-button>
<a id="nav-middle-{{ path.Base .Identifier }}" href="{{ .URL | absURL }}">
{{ with .Identifier }}
- {{ $icon := print (partial "function-paths.html" "static") "/icons/" . ".svg" }}
+ {{ $icon := print (partial "function-paths.html").static "/icons/" . ".svg" }}
{{ safeHTML (readFile $icon) }}
{{ end }}
<small>{{ delimit (first 1 (split .Name " ")) " " }}</small>
@@ -60,7 +60,7 @@
aria-label="search input"
/>
<button id="search-submit">
- {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/search.svg")) }}
+ {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/search.svg")) }}
<small>Search</small>
</button>
<ul hidden id="search-results"></ul>
diff --git a/themes/default/layouts/partials/pagination.html b/themes/default/layouts/partials/pagination.html
index 31bebeb..fa3c85e 100644
--- a/themes/default/layouts/partials/pagination.html
+++ b/themes/default/layouts/partials/pagination.html
@@ -51,13 +51,13 @@
</a>
<a rel="{{ $prevRel }}" {{ $prevData | safeHTMLAttr }} href="{{ $prevHref }}" title="{{ $prevTitle }}">
- {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/arrow-left.svg")) }}
+ {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/arrow-left.svg")) }}
{{ $prevTitle }}
</a>
<a rel="{{ $nextRel }}" {{ $nextData | safeHTMLAttr }} href="{{ $nextHref }}" title="{{ $nextTitle }}">
{{ $nextTitle }}
- {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/arrow-right.svg")) }}
+ {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/arrow-right.svg")) }}
</a>
<a {{ $lastData | safeHTMLAttr }} href="{{ $lastHref }}" title="{{ $lastTitle }}" >
diff --git a/themes/default/layouts/partials/profile.html b/themes/default/layouts/partials/profile.html
index 2025147..fc68c0b 100644
--- a/themes/default/layouts/partials/profile.html
+++ b/themes/default/layouts/partials/profile.html
@@ -28,21 +28,21 @@
<footer>
<p>
- {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/map-pin.svg")) }}
+ {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/map-pin.svg")) }}
<span>{{- $author.place | markdownify -}}</span>
</p>
<p>
- {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/globe.svg")) }}
+ {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/globe.svg")) }}
<a href="{{ $author.domain.url }}">
{{- $author.domain.host | markdownify -}}
</a>
</p>
<p>
- {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/clock.svg")) }}
+ {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/clock.svg")) }}
<span>{{- $author.epoch | markdownify -}}</span>
</p>
<p>
- {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/user.svg")) }}
+ {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/user.svg")) }}
<span><b>{{ with $author.feeds.rss }}{{ len . }}{{ else }} 0 {{ end }}</b> Following</span>
</p>
</footer>