diff options
Diffstat (limited to 'themes/default/layouts/partials/context-profile.html')
-rw-r--r-- | themes/default/layouts/partials/context-profile.html | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/themes/default/layouts/partials/context-profile.html b/themes/default/layouts/partials/context-profile.html index 609d045..5b82cc9 100644 --- a/themes/default/layouts/partials/context-profile.html +++ b/themes/default/layouts/partials/context-profile.html @@ -3,13 +3,9 @@ {{- $name := or .Params.feed.name $author.name -}} {{- $user := $author.user -}} -{{- $host := (urls.Parse .Site.BaseURL).Host -}} +{{- $host := or (urls.Parse .Site.BaseURL).Host "localhost" -}} {{- $href := print .Site.BaseURL "/" $author.user "/#" -}} -{{- if not $host -}} - {{- $host = "localhost" -}} -{{- end -}} - {{- $title := print $author.user "@" $host -}} {{- with .Params.feed -}} |