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

github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaud Lepretre <thibaud.lepretre@gmail.com>2019-07-04 16:01:16 +0300
committerThibaud Lepretre <thibaud.lepretre@gmail.com>2021-08-11 15:02:36 +0300
commit33930d6adc3476c358acf25d69d2c4cfee7201cb (patch)
tree22815535fe4fbe66e5391338f10b637e25116055 /layouts/_default/summary.html
parent16763796503454e9cd666e0c644f079c1f0df96d (diff)
Sync from 1cafcb39c8a101893ae30f92a0a789e2c1d8b85b
- [x] SCSS - [x] JS - [x] i18n files - [x] HTML - [x] gitalk - [x] FontAwesome 5 - [ ] Docs Fixes #287
Diffstat (limited to 'layouts/_default/summary.html')
-rw-r--r--layouts/_default/summary.html24
1 files changed, 12 insertions, 12 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index 4a0ee91..1981b67 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -22,32 +22,32 @@
{{ else }}
{{ .Scratch.Set "thumbnailImagePosition" "bottom" }}
{{ end }}
-<article class="postShorten postShorten--thumbnailimg-{{ .Scratch.Get "thumbnailImagePosition" }}" itemscope itemType="http://schema.org/BlogPosting">
+<article class="postShorten postShorten--thumbnailimg-{{ .Scratch.Get "thumbnailImagePosition" }}">
<div class="postShorten-wrap">
{{ if and (.Scratch.Get "thumbnailImage") (eq (.Scratch.Get "thumbnailImagePosition") "top")}}
{{ with .Params.link }}
- <a href="{{ . | absURL }}" target="_blank">
+ <a href="{{ . | absURL }}" aria-label="{{ if i18n "global.open_post" }}{{ i18n "global.open_post" }}: {{ .Title }}{{ end }}" target="_blank">
{{ else }}
- <a href="{{ $.Permalink }}">
+ <a href="{{ .Permalink }}" aria-label="{{ if i18n "global.open_post" }}{{ i18n "global.open_post" }}: {{ .Title }}{{ end }}">
{{ end }}
<div class="postShorten-thumbnailimg">
- <img alt="" itemprop="image" src="{{ .Scratch.Get "thumbnailImage" }}"/>
+ <img alt="" src="{{ .Scratch.Get "thumbnailImage" }}"/>
</div>
</a>
{{ end }}
<div class="postShorten-header">
- <h1 class="postShorten-title" itemprop="headline">
+ <h1 class="postShorten-title">
{{ with .Params.link }}
- <a class="link-unstyled" href="{{ . | absURL }}" target="_blank">
+ <a class="link-unstyled" href="{{ . | absURL }}" aria-label="{{ if i18n "global.open_post" }}{{ i18n "global.open_post" }}: {{ .Title }}{{ end }}" target="_blank">
{{ else }}
- <a class="link-unstyled" href="{{ $.Permalink }}">
+ <a class="link-unstyled" href="{{ .Permalink }}" aria-label="{{ if i18n "global.open_post" }}{{ i18n "global.open_post" }}: {{ .Title }}{{ end }}">
{{ end }}
{{ .Title }}
</a>
</h1>
{{ partial "post/meta" . }}
</div>
- <div class="postShorten-excerpt" itemprop="articleBody">
+ <div class="postShorten-excerpt">
{{ if .Params.Summary }}
{{ .Params.Summary | markdownify }}
{{ else }}
@@ -55,9 +55,9 @@
{{ end }}
<p>
{{ with .Params.link }}
- <a href="{{ . | absURL }}" class="postShorten-excerpt_link link" target="_blank">{{ i18n "post.read_more" }}</a>
+ <a href="{{ . | absURL }}" class="postShorten-excerpt_link link" aria-label="{{ if i18n "global.open_post" }}{{ i18n "global.open_post" }}: {{ .Title }}{{ end }}"> target="_blank">{{ i18n "post.read_more" }}</a>
{{ else }}
- <a href="{{ $.Permalink }}" class="postShorten-excerpt_link link">{{ i18n "post.read_more" }}</a>
+ <a href="{{ .Permalink }}" class="postShorten-excerpt_link link" aria-label="{{ if i18n "global.open_post" }}{{ i18n "global.open_post" }}: {{ .Title }}{{ end }}">{{ i18n "post.read_more" }}</a>
{{ end }}
{{ with .Params.readingtime }}
<span class="postShorten-readingtime">
@@ -68,9 +68,9 @@
</div>
</div>
{{ if and (.Scratch.Get "thumbnailImage") (ne (.Scratch.Get "thumbnailImagePosition") "top")}}
- <a href="{{ .Permalink }}">
+ <a href="{{ .Permalink }}" aria-label="{{ if i18n "global.open_post" }}{{ i18n "global.open_post" }}: {{ .Title }}{{ end }}">
<div class="postShorten-thumbnailimg">
- <img alt="" itemprop="image" src="{{ .Scratch.Get "thumbnailImage" }}"/>
+ <img alt="" src="{{ .Scratch.Get "thumbnailImage" }}"/>
</div>
</a>
{{ end }}