aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-name.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/meta-name.html')
-rw-r--r--themes/default/layouts/partials/meta-name.html26
1 files changed, 17 insertions, 9 deletions
diff --git a/themes/default/layouts/partials/meta-name.html b/themes/default/layouts/partials/meta-name.html
index eb5990f..7c2ca61 100644
--- a/themes/default/layouts/partials/meta-name.html
+++ b/themes/default/layouts/partials/meta-name.html
@@ -1,9 +1,17 @@
-<h2>
- <b>
- {{- with .Params.feed.name -}}
- {{ . }}
- {{- else -}}
- {{ partial "author-name.html" . }}
- {{- end -}}
- </b>
-</h2>
+{{- $author := partial "function-authors-data.html" . -}}
+
+{{- $href := print ("" | absURL) "/" $author.user "/" -}}
+{{- $name := $author.name -}}
+{{- $title := $name -}}
+
+{{- with .Params.feed -}}
+ {{- $href = or $.Params.feed.home (print "http://" $.Params.feed.domain) -}}
+ {{- $name = $.Params.feed.name -}}
+ {{- $title = $name -}}
+{{- end -}}
+
+<meta-name title="{{ $title }}">
+ <b><a href="{{ $href }}">{{ $name }}</a></b>
+{{- /* This comment removes trailing newlines and white spaces. */ -}}
+</meta-name>
+{{- /* This comment removes trailing newlines and white spaces. */ -}}