merge couples months code from upstream
This commit is contained in:
commit
89f088814b
|
@ -9,6 +9,7 @@
|
|||
{{ .Content }}
|
||||
</div>
|
||||
</header>
|
||||
<<<<<<< HEAD
|
||||
<main class="main archive">
|
||||
<div class="archive__container">
|
||||
{{ $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 }}
|
||||
<main class="main archive">
|
||||
<div class="archive__container">
|
||||
{{ $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
|
||||
<span class="archive__key" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">{{ .Key }}</span>
|
||||
<ul class="archive__ul" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
|
||||
{{ range .Pages }}
|
||||
|
@ -36,6 +51,7 @@
|
|||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<<<<<<< HEAD
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ i18n "no-contents" | default "There is nothing to display" }}
|
||||
|
@ -50,3 +66,17 @@
|
|||
{{ partial "script/archive-script" . }}
|
||||
</main>
|
||||
{{ end }}
|
||||
=======
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="grow"></div>
|
||||
{{ partial "pagination/pagination" . }}
|
||||
<div class="hide">
|
||||
{{ partial "search/site-search" . }}
|
||||
</div>
|
||||
{{ partial "script/archive-script" . }}
|
||||
</main>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
>>>>>>> 7fcf1bc41734ab53012ec651fbd8ba9b28fd542a
|
||||
|
|
|
@ -6,7 +6,11 @@
|
|||
{{ end }}
|
||||
· <span class="single__info" title="{{ i18n "tooltip-reading-time" }}"> {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }} </span>
|
||||
{{ with .Params.Author }}
|
||||
<<<<<<< HEAD
|
||||
· <span class="single__info" title="{{ i18n "single-writtenBy" }}">{{if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }} {{ . }}</span>
|
||||
=======
|
||||
· <span class="single__info" title="{{ i18n "single-writtenBy" }}">{{if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}✍️{{ end }} {{ partial "head/author.html" . }}</span>
|
||||
>>>>>>> 7fcf1bc41734ab53012ec651fbd8ba9b28fd542a
|
||||
{{ end }}
|
||||
<span class="single__info">
|
||||
{{ if (and .Site.Params.enableBusuanzi .Site.Params.busuanziPagePV) }} · {{ ($.Site.Params.pagePvIcon | safeHTML) | default "👀" }}<span id="busuanzi_value_page_pv">...</span> {{ i18n "counter-page-pv" }}{{ end }}
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
</div>
|
||||
<div class="whoami__title">
|
||||
{{ if $.Param "author" }}
|
||||
{{ $.Param "author" }}
|
||||
{{ partial "head/author.html" ($.Param "author") }}
|
||||
{{ else }}
|
||||
{{ $.Param "myname" }}
|
||||
{{ end }}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
{{ $author_type := (printf "%T" .) }}
|
||||
{{ $author_is_slice := (eq "[]string" $author_type) }}
|
||||
{{ if $author_is_slice }}
|
||||
{{ delimit . ", " }}
|
||||
{{ else }}
|
||||
{{ . }}
|
||||
{{ end }}
|
|
@ -8,7 +8,11 @@
|
|||
{{ end }}
|
||||
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> · {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }}</span>
|
||||
{{ with $.Param "author" }}
|
||||
<<<<<<< HEAD
|
||||
· <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $.Param "AuthorEmoji" }}{{ $.Param "AuthorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }} {{ . }}</span>
|
||||
=======
|
||||
· <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $.Param "AuthorEmoji" }}{{ $.Param "AuthorEmoji" }}{{ else }}✍️{{ end }} {{ partial "head/author.html" . }}</span>
|
||||
>>>>>>> 7fcf1bc41734ab53012ec651fbd8ba9b28fd542a
|
||||
{{ end }}
|
||||
</h6>
|
||||
</header>
|
||||
|
|
|
@ -25,7 +25,11 @@
|
|||
{{ end }}
|
||||
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> · {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }} </span>
|
||||
{{ with $.Param "author" }}
|
||||
<<<<<<< HEAD
|
||||
· <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $.Param "authorEmoji" }}{{ $.Param "authorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }} {{ . }}</span>
|
||||
=======
|
||||
· <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $.Param "authorEmoji" }}{{ $.Param "authorEmoji" }}{{ else }}✍️{{ end }} {{ partial "head/author.html" . }}</span>
|
||||
>>>>>>> 7fcf1bc41734ab53012ec651fbd8ba9b28fd542a
|
||||
{{ end }}
|
||||
</h6>
|
||||
</header>
|
||||
|
|
|
@ -11,7 +11,11 @@
|
|||
{{ end }}
|
||||
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> · {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }}</span>
|
||||
{{ with $params.Author }}
|
||||
<<<<<<< HEAD
|
||||
· <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }} {{ . }}</span>
|
||||
=======
|
||||
· <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}✍️{{ end }} {{ partial "head/author.html" . }}</span>
|
||||
>>>>>>> 7fcf1bc41734ab53012ec651fbd8ba9b28fd542a
|
||||
{{ end }}
|
||||
</h6>
|
||||
</header>
|
||||
|
|
Loading…
Reference in New Issue