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 <git@upagge.ru>2021-03-19 19:01:18 +0300
committeruPagge <git@upagge.ru>2021-03-19 19:01:18 +0300
commit8010af58fe32e58786e1e1fdaf47e129466028d8 (patch)
treeff9964f6a4769f5b04e0bce19d60df3355b0e0ad /layouts/_default
parentf4f4b3da8dc1ce24695aef3a4a53469088227269 (diff)
html5
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--layouts/_default/summary.html213
2 files changed, 115 insertions, 102 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 9671721..eead1bc 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -52,7 +52,7 @@
{{- partial "footer.html" . -}}
</div>
- <div id="fixed-buttons">
+ <aside id="fixed-buttons">
{{- /* top button */ -}}
<a href="#" id="back-to-top" class="fixed-button" title="{{ T `backToTop` }}">
<i class="svg-icon icon-arrow-up"></i>
@@ -62,7 +62,7 @@
<a href="#" id="view-comments" class="fixed-button" title="{{ T `viewComments` }}">
<i class="svg-icon icon-comments-fixed"></i>
</a>
- </div>
+ </aside>
{{- /* Load JavaScript scripts and CSS */ -}}
{{- partial "assets.html" . -}}
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index a53d8f2..433ce61 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -2,120 +2,133 @@
{{- $tagsStyle := $params.summaryStyle.tags -}}
{{- $tagsTheme := $params.summaryStyle.tags.theme | default "image" -}}
-<article class="summary summary-animation" itemscope itemtype="http://schema.org/Article" style="margin-bottom:0">
- {{- /* Featured image */ -}}
- {{- if not $params.summaryStyle.hiddenImage -}}
- {{- $image := $params.featuredimagepreview | default $params.featuredimage -}}
- {{- with .Resources.GetMatch "featured-image" -}}
- {{- $image = (.Fill "796x238 Center q90").RelPermalink -}}
- {{- end -}}
- {{- with .Resources.GetMatch "featured-image-preview" -}}
- {{- $image = (.Fill "796x238 Center q90").RelPermalink -}}
- {{- end -}}
- {{- with $image -}}
- <div class="featured-image-preview">
- {{- if eq $tagsTheme "image" -}}
- {{- with $.Params.tags -}}
- <div class="post-tags-summary-image">
- {{- range $index, $value := . -}}
- {{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
- <a class="post-tag-summary" href="{{ $tag.RelPermalink }}" style="{{ with $tagsStyle.color }}color: {{ . }}; {{ end }}{{ with $tagsStyle.background }}background: {{ . }}; {{ end }}{{ with $tagsStyle.transparency }}opacity: {{ . }}; {{ end }}"><span>{{ $tag.Title }}</span></a>
- {{- end -}}
- </div>
+<article itemscope itemtype="http://schema.org/Article">
+ <div class="summary summary-animation" style="margin-bottom:0">
+ <header>
+ {{- /* Featured image */ -}}
+ {{- if not $params.summaryStyle.hiddenImage -}}
+ {{- $image := $params.featuredimagepreview | default $params.featuredimage -}}
+ {{- with .Resources.GetMatch "featured-image" -}}
+ {{- $image = (.Fill "796x238 Center q90").RelPermalink -}}
{{- end -}}
+ {{- with .Resources.GetMatch "featured-image-preview" -}}
+ {{- $image = (.Fill "796x238 Center q90").RelPermalink -}}
{{- end -}}
- <a href="{{ $.RelPermalink }}" target="_blank">
- {{- dict "Src" . "Title" $.Description "Resources" $.Resources "Height" 798 "Width" 238 | partial "plugin/image.html" -}}
- </a>
- </div>
- {{- end -}}
- {{- end -}}
- <div class="article-text">
- {{- /* Title */ -}}
- <h2 class="summary-title" itemprop="name headline">
- <a href="{{ $.RelPermalink }}" target="_blank">{{ .Title }}</a>
- </h2>
-
- {{- if not $params.summaryStyle.hiddenMeta -}}
- {{- /* Meta */ -}}
- <div class="post-meta summary-post-meta">
- {{- $authorName := $params.name | default .Site.Author.name | default " " -}}
- {{- if not (eq $authorName " ") -}}
- {{ $author := index .Site.Data.authors $authorName }}
- {{- $authorLink := $author.link | default .Site.Home.RelPermalink -}}
- <span class="meta-item post-author">
- {{- $options := dict "Class" "author" "Destination" $authorLink "Title" "Author" "Rel" "author" "Icon" (dict "Class" "svg-icon icon-user") "Content" $author.nickname -}}
- {{- partial "plugin/link.html" $options -}}
- </span>
+ {{- with $image -}}
+ <div class="featured-image-preview">
+ {{- if eq $tagsTheme "image" -}}
+ {{- with $.Params.tags -}}
+ <div class="post-tags-summary-image">
+ {{- range $index, $value := . -}}
+ {{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
+ <a class="post-tag-summary" href="{{ $tag.RelPermalink }}" style="{{ with $tagsStyle.color }}color: {{ . }}; {{ end }}{{ with $tagsStyle.background }}background: {{ . }}; {{ end }}{{ with $tagsStyle.transparency }}opacity: {{ . }}; {{ end }}"><span>{{ $tag.Title }}</span></a>
+ {{- end -}}
+ </div>
+ {{- end -}}
+ {{- end -}}
+ <a href="{{ $.RelPermalink }}" target="_blank">
+ {{- dict "Src" . "Title" $.Description "Resources" $.Resources "Alt" $.Title "Height" 798 "Width" 238 | partial "plugin/image.html" -}}
+ </a>
+ </div>
{{- end -}}
-
- {{- with .Site.Params.dateFormat | default "2006-01-02" | .PublishDate.Format -}}
- {{- $timeAgoDate:= $.Site.Params.TimeAgo.DateFormat | default "2006-01-02" | $.PublishDate.Format -}}
- <span class="meta-item post-publish"><i class="svg-icon icon-clock"></i>
- {{- printf `<time class="timeago" datetime="%v">%v</time>` $timeAgoDate . | safeHTML -}}
- </span>
{{- end -}}
- {{- $categories := slice -}}
- {{- range .Params.categories -}}
- {{- $category := partialCached "function/path.html" . . | printf "/categories/%v" | $.Site.GetPage -}}
- {{- $categories = $categories | append (printf `<a href="%v"><i class="svg-icon icon-folder"></i>%v</a>` $category.RelPermalink $category.Title) -}}
- {{- end -}}
- {{- with delimit $categories "&nbsp;" -}}
- <span class="meta-item post-category">
- {{ . }}
- </span>
- {{- end -}}
+ <div style="padding-top: 20px;padding-left: 20px;padding-right: 20px;">
+ {{- /* Title */ -}}
+ <h2 class="summary-title" itemprop="name headline">
+ <a href="{{ $.RelPermalink }}" target="_blank">{{ .Title }}</a>
+ </h2>
- {{- with .Params.Views -}}
- <span class="meta-item post-meta-views">
- <i class="svg-icon icon-eye"></i>{{ . }}
- </span>
- {{- end -}}
+ {{- if not $params.summaryStyle.hiddenMeta -}}
+ {{- /* Meta */ -}}
+ <div class="post-meta summary-post-meta">
- {{- $comment := .Site.Params.Comment -}}
- {{- $remark42 := $comment.remark42 | default dict -}}
- {{- if $remark42.enable -}}
- <span class="meta-item post-meta-comments">
- <i class="svg-icon icon-comments"></i><span class="remark42__counter" data-url="{{ .Permalink }}"></span>
- </span>
- {{- end -}}
- </div>
- {{- end -}}
+ {{- $categories := slice -}}
+ {{- range .Params.categories -}}
+ {{- $category := partialCached "function/path.html" . . | printf "/categories/%v" | $.Site.GetPage -}}
+ {{- $categories = $categories | append (printf `<a href="%v"><span class="svg-icon icon-folder"></span>%v</a>` $category.RelPermalink $category.Title) -}}
+ {{- end -}}
+ {{- with delimit $categories "&nbsp;" -}}
+ <span class="meta-item post-category">
+ {{ . }}
+ </span>
+ {{- end -}}
+
+ {{- $authorName := $params.name | default .Site.Author.name | default " " -}}
+ {{- if not (eq $authorName " ") -}}
+ {{ $author := index .Site.Data.authors $authorName }}
+ {{- $authorLink := $author.link | default .Site.Home.RelPermalink -}}
+ <span class="meta-item post-author">
+ {{- $options := dict "Class" "author" "Destination" $authorLink "Title" "Author" "Rel" "author" "Icon" (dict "Class" "svg-icon icon-user") "Content" $author.nickname -}}
+ {{- partial "plugin/link.html" $options -}}
+ </span>
+ {{- end -}}
+
+ {{- with .Site.Params.dateFormat | default "2006-01-02" | .PublishDate.Format -}}
+ {{- $timeAgoDate:= $.Site.Params.TimeAgo.DateFormat | default "2006-01-02" | $.PublishDate.Format -}}
+ <span class="meta-item post-publish"><span class="svg-icon icon-clock"></span>
+ {{- printf `<time class="timeago" datetime="%v">%v</time>` $timeAgoDate . | safeHTML -}}
+ </span>
+ {{- end -}}
+
+ {{- with .Params.Views -}}
+ <span class="meta-item post-meta-views">
+ <span class="svg-icon icon-eye"></span>{{ . }}
+ </span>
+ {{- end -}}
+
+ {{- $comment := .Site.Params.Comment -}}
+ {{- $remark42 := $comment.remark42 | default dict -}}
+ {{- if $remark42.enable -}}
+ <span class="meta-item post-meta-comments">
+ <span class="svg-icon icon-comments"></span><span class="remark42__counter" data-url="{{ .Permalink }}"></span>
+ </span>
+ {{- end -}}
+ </div>
+ {{- end -}}
+ </div>
+ </header>
- {{- /* Summary content */ -}}
- {{- if not $params.summaryStyle.hiddenDescription -}}
- <div class="content summary-content">
- {{- with .Summary -}}
- {{- dict "Content" . "Ruby" $params.ruby "Fraction" $params.fraction | partial "function/content.html" | safeHTML -}}
- {{- else -}}
- {{- .Description | safeHTML -}}
+ <div class="article-text">
+
+ {{- /* Summary content */ -}}
+ {{- if not $params.summaryStyle.hiddenDescription -}}
+ <div class="content summary-content">
+ {{- with .Summary -}}
+ {{- dict "Content" . "Ruby" $params.ruby "Fraction" $params.fraction | partial "function/content.html" | safeHTML -}}
+ {{- else -}}
+ {{- .Description | safeHTML -}}
+ {{- end -}}
+ </div>
{{- end -}}
- </div>
- {{- end -}}
- {{- if eq $tagsTheme "footer" -}}
- {{- with $.Params.tags -}}
- <div class="post-tags-summary-footer">
- {{- range $index, $value := . -}}
- {{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
- <a class="post-tag-summary" href="{{ $tag.RelPermalink }}" style="{{ with $tagsStyle.color }}color: {{ . }}; {{ end }}{{ with $tagsStyle.background }}background: {{ . }}; {{ end }}{{ with $tagsStyle.transparency }}opacity: {{ . }}; {{ end }}">{{ $tag.Title }}</a>
+ {{- if eq $tagsTheme "footer" -}}
+ {{- with $.Params.tags -}}
+ <footer>
+ <div class="post-tags-summary-footer">
+ {{- range $index, $value := . -}}
+ {{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
+ <a class="post-tag-summary" href="{{ $tag.RelPermalink }}" style="{{ with $tagsStyle.color }}color: {{ . }}; {{ end }}{{ with $tagsStyle.background }}background: {{ . }}; {{ end }}{{ with $tagsStyle.transparency }}opacity: {{ . }}; {{ end }}">{{ $tag.Title }}</a>
+ {{- end -}}
+ </div>
+ </footer>
+ {{- end -}}
{{- end -}}
- </div>
- {{- end -}}
- {{- end -}}
+ </div>
</div>
-</article>
-<div class="post-tags-summary-under-footer">
-{{- with $.Params.tags -}}
- <div class="post-tags-summary-under-footer-display" {{ if eq $tagsTheme "under-footer" }}style="display: inline-block;"{{ end }}>
- {{- range $index, $value := . -}}
- {{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
- <a class="post-tag-summary" href="{{ $tag.RelPermalink }}" style="{{ with $tagsStyle.color }}color: {{ . }}; {{ end }}{{ with $tagsStyle.background }}background: {{ . }}; {{ end }}{{ with $tagsStyle.transparency }}opacity: {{ . }}; {{ end }}">{{ $tag.Title }}</a>
+ <div class="post-tags-summary-under-footer">
+ {{- with $.Params.tags -}}
+ <footer>
+ <div class="post-tags-summary-under-footer-display" {{ if eq $tagsTheme "under-footer" }}style="display: inline-block;"{{ end }}>
+ {{- range $index, $value := . -}}
+ {{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
+ <a class="post-tag-summary" href="{{ $tag.RelPermalink }}" style="{{ with $tagsStyle.color }}color: {{ . }}; {{ end }}{{ with $tagsStyle.background }}background: {{ . }}; {{ end }}{{ with $tagsStyle.transparency }}opacity: {{ . }}; {{ end }}">{{ $tag.Title }}</a>
+ {{- end -}}
+ </div>
+ </footer>
{{- end -}}
</div>
-{{- end -}}
-</div>
+</article>