fix: wrong URL of JS and CSS files on baseURL (#249)

This commit is contained in:
Dillon
2020-04-22 21:34:38 +08:00
committed by GitHub
parent 3c38d54a87
commit f5fb31ec43
11 changed files with 33 additions and 21 deletions

View File

@@ -16,7 +16,7 @@
{{- /* Meta */ -}}
<div class="post-meta">
{{- $author := $params.author | default .Site.Author.name | default (T "author") -}}
{{- $authorLink := $params.authorlink | default .Site.Author.link | default (relLangURL "/") -}}
{{- $authorLink := $params.authorlink | default .Site.Author.link | default .Site.Home.RelPermalink -}}
<span class="post-author">
{{- $options := dict "class" "author" "href" $authorLink "title" "Author" "rel" "author" "icon" (dict "class" "fas fa-user-circle fa-fw") "content" $author -}}
{{- partial "plugin/link.html" $options -}}