diff options
author | uPagge <upagge@mail.ru> | 2020-12-12 22:21:45 +0300 |
---|---|---|
committer | uPagge <upagge@mail.ru> | 2020-12-12 22:21:45 +0300 |
commit | 3e5a10b37b7174351ce307975c3f1960b39a7edc (patch) | |
tree | 1b6f425bf552ecdbbae51a7d1e3e4fa7aac825a8 /layouts/_default | |
parent | 3da2e1772a034a19c018006f4ff97fa76ff3a989 (diff) |
Animation summary
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/summary.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 70bc015..8bbb73c 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,6 +1,6 @@ {{- $params := .Params | merge .Site.Params.page -}} -<article onclick="location.href='{{ $.RelPermalink }}'" class="single summary article-mini" itemscope itemtype="http://schema.org/Article"> +<article onclick="location.href='{{ $.RelPermalink }}'" class="single summary summary-animation" itemscope itemtype="http://schema.org/Article"> {{- /* Featured image */ -}} {{- if not $params.mini.hiddenImage -}} {{- $image := $params.featuredimagepreview | default $params.featuredimage -}} @@ -18,12 +18,23 @@ {{- end -}} <div class="article-text"> {{- /* Title */ -}} - <h2 class="single-title" itemprop="name headline"> + <h2 class="mini-title" itemprop="name headline"> {{ .Title }} </h2> + {{- /* Summary content */ -}} + {{- if not $params.mini.hiddenDescription -}} + <div class="content mini-content"> + {{- with .Summary -}} + {{- dict "Content" . "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}} + {{- else -}} + {{- .Description | safeHTML -}} + {{- end -}} + </div> + {{- end -}} + {{- /* Meta */ -}} - <div class="post-meta"> + <div class="post-meta mini-post-meta"> {{- $authorName := $params.author | default .Site.Author.name | default " " -}} {{- if not (eq $authorName " ") -}} {{ $author := index .Site.Data.authors $authorName }} @@ -37,7 +48,7 @@ {{- with .Site.Params.dateFormat | default "2006-01-02" | .PublishDate.Format -}} <span class="post-publish"><i class="far fa-clock fa-fw"></i> {{- printf `<time datetime="%v">%v</time>` . . | safeHTML -}} - </span> + </span> {{- end -}} {{- $categories := slice -}} @@ -61,17 +72,6 @@ {{- end -}} </div> - {{- /* Summary content */ -}} - {{- if not $params.mini.hiddenDescription -}} - <div class="content"> - {{- with .Summary -}} - {{- dict "Content" . "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}} - {{- else -}} - {{- .Description | safeHTML -}} - {{- end -}} - </div> - {{- end -}} - {{- /* Footer */ -}} <!-- <div class="post-footer">--> <!-- {{- with .Params.tags -}}--> |