Skip to content

Commit

Permalink
follow upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
HidegonSan committed Aug 12, 2023
1 parent 96752b3 commit 2ffd3ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ params:
env: "production"
ShowReadingTime: false
ShowShareButtons: false
hideAuthor: true
ShowRelatedContent: true
ShowToc: true
TocOpen: false
Expand Down
4 changes: 3 additions & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<h1>
{{ .Title }}
{{- if and (or (eq .Kind `term`) (eq .Kind `section`)) (.Param "ShowRssButtonInSectionTermList") }}
<a href="index.xml" title="RSS" aria-label="RSS">
{{- with .OutputFormats.Get "rss" }}
<a href="{{ .RelPermalink }}" title="RSS" aria-label="RSS">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" height="23">
<path d="M4 11a9 9 0 0 1 9 9" />
Expand All @@ -19,6 +20,7 @@ <h1>
</svg>
</a>
{{- end }}
{{- end }}
</h1>
{{- if .Description }}
<div class="post-description">
Expand Down
6 changes: 4 additions & 2 deletions layouts/partials/post_meta.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{/* {{- $scratch := newScratch }}
{{- $scratch := newScratch }}

{{- if not .Date.IsZero -}}
{{- $scratch.Add "meta" (slice (printf "<span title='%s'>%s</span>" (.Date) (.Date | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }}
Expand All @@ -12,13 +12,15 @@
{{- $scratch.Add "meta" (slice (i18n "words" .WordCount | default (printf "%d words" .WordCount))) }}
{{- end }}

{{- if not (.Param "hideAuthor") -}}
{{- with (partial "author.html" .) }}
{{- $scratch.Add "meta" (slice .) }}
{{- end }}
{{- end }}

{{- with ($scratch.Get "meta") }}
{{- delimit . "&nbsp;·&nbsp;" -}}
{{- end -}} */}}
{{- end -}}


{{/* 公開日関連 | Thanks: https://aloha-ru.com/hugo/hugo-dateupdate/ */}}
Expand Down

0 comments on commit 2ffd3ba

Please sign in to comment.