diff --git a/layouts/archive/list.html b/layouts/archive/list.html index 6ccd50f..ae66c69 100644 --- a/layouts/archive/list.html +++ b/layouts/archive/list.html @@ -9,6 +9,7 @@ {{ .Content }} +<<<<<<< HEAD
{{ $filteredPages := .Site.RegularPages }} @@ -19,6 +20,20 @@ {{ if gt (len $filteredPages) 0 }} {{ $paginator := .Paginate ($filteredPages.GroupByDate ($.Param "archiveGroupByDate" | default "2006")) ($.Param "archivePaginate") }} {{ range ($paginator).PageGroups }} +======= +{{ if .Pages }} +
+
+ {{ $filteredPages := .Site.RegularPages }} + {{ range $.Param "notAllowedTypesInArchive" }} + {{ $filteredPages = (where $filteredPages "Type" "!=" (lower .)) }} + {{ end }} + + {{ $paginator := .Paginate ($filteredPages.GroupByDate ($.Param "archiveGroupByDate" | default "2006")) ($.Param "archivePaginate") }} + + {{ if $paginator }} + {{ range ($paginator).PageGroups }} +>>>>>>> 7fcf1bc41734ab53012ec651fbd8ba9b28fd542a {{ .Key }}
    {{ range .Pages }} @@ -36,6 +51,7 @@ {{ end }}
+<<<<<<< HEAD {{ end }} {{ else }} {{ i18n "no-contents" | default "There is nothing to display" }} @@ -49,4 +65,18 @@
{{ partial "script/archive-script" . }}
-{{ end }} \ No newline at end of file +{{ end }} +======= + {{ end }} + {{ end }} +
+
+ {{ partial "pagination/pagination" . }} +
+ {{ partial "search/site-search" . }} +
+ {{ partial "script/archive-script" . }} +
+{{ end }} +{{ end }} +>>>>>>> 7fcf1bc41734ab53012ec651fbd8ba9b28fd542a diff --git a/layouts/partials/body/infos.html b/layouts/partials/body/infos.html index 632e50c..1f1c8b1 100644 --- a/layouts/partials/body/infos.html +++ b/layouts/partials/body/infos.html @@ -6,7 +6,11 @@ {{ end }}  ·  {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }} {{ with .Params.Author }} +<<<<<<< HEAD  ·  {{if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }} {{ . }} +======= +  ·  {{if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}✍️{{ end }} {{ partial "head/author.html" . }} +>>>>>>> 7fcf1bc41734ab53012ec651fbd8ba9b28fd542a {{ end }} {{ if (and .Site.Params.enableBusuanzi .Site.Params.busuanziPagePV) }} · {{ ($.Site.Params.pagePvIcon | safeHTML) | default "👀" }}... {{ i18n "counter-page-pv" }}{{ end }} diff --git a/layouts/partials/body/whoami.html b/layouts/partials/body/whoami.html index 2428dcd..28c8595 100644 --- a/layouts/partials/body/whoami.html +++ b/layouts/partials/body/whoami.html @@ -27,7 +27,7 @@
{{ if $.Param "author" }} - {{ $.Param "author" }} + {{ partial "head/author.html" ($.Param "author") }} {{ else }} {{ $.Param "myname" }} {{ end }} diff --git a/layouts/partials/head/author.html b/layouts/partials/head/author.html new file mode 100644 index 0000000..5a71b59 --- /dev/null +++ b/layouts/partials/head/author.html @@ -0,0 +1,7 @@ +{{ $author_type := (printf "%T" .) }} +{{ $author_is_slice := (eq "[]string" $author_type) }} + {{ if $author_is_slice }} + {{ delimit . ", " }} + {{ else }} + {{ . }} + {{ end }} diff --git a/layouts/partials/summary/card.html b/layouts/partials/summary/card.html index ed8187d..146c4c4 100644 --- a/layouts/partials/summary/card.html +++ b/layouts/partials/summary/card.html @@ -8,7 +8,11 @@ {{ end }} · {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }} {{ with $.Param "author" }} +<<<<<<< HEAD · {{ if $.Param "AuthorEmoji" }}{{ $.Param "AuthorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }} {{ . }} +======= + · {{ if $.Param "AuthorEmoji" }}{{ $.Param "AuthorEmoji" }}{{ else }}✍️{{ end }} {{ partial "head/author.html" . }} +>>>>>>> 7fcf1bc41734ab53012ec651fbd8ba9b28fd542a {{ end }} diff --git a/layouts/partials/summary/classic.html b/layouts/partials/summary/classic.html index db71419..6958a96 100644 --- a/layouts/partials/summary/classic.html +++ b/layouts/partials/summary/classic.html @@ -25,7 +25,11 @@ {{ end }} · {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }} {{ with $.Param "author" }} +<<<<<<< HEAD · {{ if $.Param "authorEmoji" }}{{ $.Param "authorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }} {{ . }} +======= + · {{ if $.Param "authorEmoji" }}{{ $.Param "authorEmoji" }}{{ else }}✍️{{ end }} {{ partial "head/author.html" . }} +>>>>>>> 7fcf1bc41734ab53012ec651fbd8ba9b28fd542a {{ end }} diff --git a/layouts/partials/summary/compact.html b/layouts/partials/summary/compact.html index a9df179..f0195d3 100644 --- a/layouts/partials/summary/compact.html +++ b/layouts/partials/summary/compact.html @@ -11,7 +11,11 @@ {{ end }} · {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }} {{ with $params.Author }} +<<<<<<< HEAD · {{ if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }} {{ . }} +======= + · {{ if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}✍️{{ end }} {{ partial "head/author.html" . }} +>>>>>>> 7fcf1bc41734ab53012ec651fbd8ba9b28fd542a {{ end }}