Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruPagge <upagge@mail.ru>2020-11-28 20:23:45 +0300
committeruPagge <upagge@mail.ru>2020-11-28 20:23:45 +0300
commit704cb2ee479d42a981bf55f322ff5ee74e6b7a69 (patch)
treeea0ff3ff0edc2195483a1832fa2fb896ef421797 /layouts/_default/summary.html
parentb7e329b9126f0112d76fdfd5fd14a7dc7a1e3bb9 (diff)
Новое оформление article
Diffstat (limited to 'layouts/_default/summary.html')
-rw-r--r--layouts/_default/summary.html81
1 files changed, 41 insertions, 40 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index 09dcf2e..e4b5d94 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -16,69 +16,70 @@
</a>
</div>
{{- end -}}
+ <div class="article-text">
+ {{- /* Title */ -}}
+ <h1 class="single-title" itemprop="name headline">
+ <a href="{{ .RelPermalink }}">{{ .Title }}</a>
+ </h1>
- {{- /* Title */ -}}
- <h1 class="single-title" itemprop="name headline">
- <a href="{{ .RelPermalink }}">{{ .Title }}</a>
- </h1>
-
- {{- /* Meta */ -}}
- <div class="post-meta">
- {{- $author := $params.author | default .Site.Author.name | default (T "author") -}}
- {{- $authorLink := $params.authorlink | default .Site.Author.link | default .Site.Home.RelPermalink -}}
- <span class="post-author">
+ {{- /* Meta */ -}}
+ <div class="post-meta">
+ {{- $author := $params.author | default .Site.Author.name | default (T "author") -}}
+ {{- $authorLink := $params.authorlink | default .Site.Author.link | default .Site.Home.RelPermalink -}}
+ <span class="post-author">
{{- $options := dict "Class" "author" "Destination" $authorLink "Title" "Author" "Rel" "author" "Icon" (dict "Class" "fas fa-user-circle fa-fw") "Content" $author -}}
{{- partial "plugin/link.html" $options -}}
</span>
- {{- with .Site.Params.dateFormat | default "2006-01-02" | .PublishDate.Format -}}
- &nbsp;&#183;&nbsp;<span class="post-publish"><i class="far fa-clock fa-fw"></i>
+ {{- with .Site.Params.dateFormat | default "2006-01-02" | .PublishDate.Format -}}
+ &nbsp;&#183;&nbsp;<span class="post-publish"><i class="far fa-clock fa-fw"></i>
{{- printf `<time datetime="%v">%v</time>` . . | dict "Date" | T "publishedOnDate" | safeHTML -}}
</span>
- {{- end -}}
+ {{- end -}}
- {{- $categories := slice -}}
- {{- range .Params.categories -}}
+ {{- $categories := slice -}}
+ {{- range .Params.categories -}}
{{- $category := partialCached "function/path.html" . . | printf "/categories/%v" | $.Site.GetPage -}}
{{- $categories = $categories | append (printf `<a href="%v"><i class="far fa-folder fa-fw"></i>%v</a>` $category.RelPermalink $category.Title) -}}
- {{- end -}}
- {{- with delimit $categories "&nbsp;" -}}
- &nbsp;&#183;&nbsp;<span class="post-category">
+ {{- end -}}
+ {{- with delimit $categories "&nbsp;" -}}
+ &nbsp;&#183;&nbsp;<span class="post-category">
{{- dict "Categories" . | T "includedInCategories" | safeHTML -}}
</span>
- {{- end -}}
+ {{- end -}}
- {{- $comment := .Site.Params.Page.Comment -}}
- {{- $remark42 := $comment.remark42 | default dict -}}
- {{- if $remark42.enable -}}
- &nbsp;&#183;&nbsp;<i class="far fa-comment fa-fw"></i>
- <span class="remark42__counter" data-url="{{ .Permalink }}">
+ {{- $comment := .Site.Params.Page.Comment -}}
+ {{- $remark42 := $comment.remark42 | default dict -}}
+ {{- if $remark42.enable -}}
+ &nbsp;&#183;&nbsp;<i class="far fa-comment fa-fw"></i>
+ <span class="remark42__counter" data-url="{{ .Permalink }}">
</span>
- {{- end -}}
- </div>
+ {{- end -}}
+ </div>
- {{- /* Summary content */ -}}
- <div class="content">
- {{- with .Summary -}}
+ {{- /* Summary content */ -}}
+ <div class="content">
+ {{- with .Summary -}}
{{- dict "Content" . "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
- {{- else -}}
+ {{- else -}}
{{- .Description | safeHTML -}}
- {{- end -}}
- </div>
+ {{- end -}}
+ </div>
- {{- /* Footer */ -}}
- <div class="post-footer">
- <a href="{{ .RelPermalink }}">{{ T "readMore" }}</a>
- {{- with .Params.tags -}}
+ {{- /* Footer */ -}}
+ <div class="post-footer">
+ <a href="{{ .RelPermalink }}">{{ T "readMore" }}</a>
+ {{- with .Params.tags -}}
<div class="post-tags">
<i class="fas fa-tags fa-fw"></i>&nbsp;
{{- range $index, $value := . -}}
- {{- if gt $index 0 }},&nbsp;{{ end -}}
- {{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
- <a href="{{ $tag.RelPermalink }}">{{ $tag.Title }}</a>
+ {{- if gt $index 0 }},&nbsp;{{ end -}}
+ {{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
+ <a href="{{ $tag.RelPermalink }}">{{ $tag.Title }}</a>
{{- end -}}
</div>
- {{- end -}}
+ {{- end -}}
+ </div>
</div>
</article> \ No newline at end of file