diff --git a/assets/css/common/header.css b/assets/css/common/header.css index c9edb8fe09..14e36e35ec 100644 --- a/assets/css/common/header.css +++ b/assets/css/common/header.css @@ -64,6 +64,10 @@ display: inline-flex; } +.nav-sep { + color: var(--secondary); +} + .lang-menu * { display: inherit; min-height: inherit; diff --git a/layouts/_partials/anchored_headings.html b/layouts/_partials/anchored_headings.html index 377af89ddc..a4b0c6345f 100644 --- a/layouts/_partials/anchored_headings.html +++ b/layouts/_partials/anchored_headings.html @@ -1,2 +1,6 @@ {{- /* formats .Content headings by adding an anchor */ -}} -{{ . | replaceRE "()" "${1}${3}" | safeHTML }} +{{ . | replaceRE + "()" + "${1}${3}" + | safeHTML +}} diff --git a/layouts/_partials/author.html b/layouts/_partials/author.html index 8f2758fa1d..e3a8617c0f 100644 --- a/layouts/_partials/author.html +++ b/layouts/_partials/author.html @@ -1,9 +1,10 @@ {{- if or .Params.author site.Params.author }} -{{- $author := (.Params.author | default site.Params.author) }} -{{- $author_type := (printf "%T" $author) }} -{{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }} -{{- (delimit $author ", " ) }} -{{- else }} -{{- $author }} -{{- end }} + {{- $author := (.Params.author | default site.Params.author) }} + {{- $author_type := (printf "%T" $author) }} + + {{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }} + {{- (delimit $author ", " ) }} + {{- else }} + {{- $author }} + {{- end }} {{- end -}} diff --git a/layouts/_partials/breadcrumbs.html b/layouts/_partials/breadcrumbs.html index ba53824ed5..bae40c9a52 100644 --- a/layouts/_partials/breadcrumbs.html +++ b/layouts/_partials/breadcrumbs.html @@ -1,23 +1,20 @@ {{- if (.Param "ShowBreadCrumbs") -}} {{- end -}} diff --git a/layouts/_partials/edit_post.html b/layouts/_partials/edit_post.html index d24f5b550b..b4bf44f4c0 100644 --- a/layouts/_partials/edit_post.html +++ b/layouts/_partials/edit_post.html @@ -1,10 +1,20 @@ -{{- if and (or .Params.editPost.URL site.Params.editPost.URL) (not (.Param "editPost.disabled")) -}} -{{- $fileUrlPath := path.Join .File.Path }} +{{- if and (.Param "editPost.URL") (not (.Param "editPost.disabled")) -}} + {{- if or (.Param "author") (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} + {{- printf " | " | safeHTML -}} + {{- end -}} -{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}} - - - {{- .Params.editPost.Text | default (site.Params.editPost.Text | default (i18n "edit_post" | default "Edit")) -}} - - + {{- $editURL := .Param "editPost.URL" }} + {{- $appendFilePath := .Param "editPost.appendFilePath" | default false }} + {{- $editText := .Param "editPost.Text" | default (i18n "edit_post" ) -}} + + {{- if $appendFilePath -}} + {{- $fileUrlPath := path.Join .File.Path }} + {{- $editURL = printf "%s/%s" $editURL $fileUrlPath -}} + {{- end -}} + + + + {{- $editText -}} + + {{- end }} diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html index d2a70c2fef..6378b10f2f 100644 --- a/layouts/_partials/footer.html +++ b/layouts/_partials/footer.html @@ -14,9 +14,16 @@ {{- print " · "}} {{- end }} + {{/* + - The "Powered by Hugo" text is intentionally left at the end of the footer to give it more prominence. + - We kindly encourage you to keep this line. Keeping this credit helps open source projects like PaperMod and Hugo reach more people, supports the open source ecosystem, and shows appreciation for the work that goes into these tools. + - If you choose to remove it, please consider adding a link to the PaperMod GitHub repository somewhere on your site to give credit to the project and its contributors. + - Support us by sponsoring the project on GitHub Sponsors: https://github.com/sponsors/adityatelange + */}} + Powered by - Hugo & + Hugo & PaperMod diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html index 64c3193c76..1abc9f5a26 100644 --- a/layouts/_partials/header.html +++ b/layouts/_partials/header.html @@ -37,12 +37,12 @@
{{- if (not site.Params.disableThemeToggle) }}