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:
authorDillon <dillonzq@outlook.com>2020-01-31 20:52:27 +0300
committerDillon <dillonzq@outlook.com>2020-01-31 20:52:27 +0300
commit8aa4b6dce6da9601411c7caa07e6352c98ddc4f4 (patch)
tree15ee677595ab544b8af442b2b4caf22ce66aed7d /layouts/_default/_markup
parent2a7611b5aec71c5b42984be947934d4c074a092e (diff)
feat(author): add author_link and fix highlight bug
Diffstat (limited to 'layouts/_default/_markup')
-rw-r--r--layouts/_default/_markup/render-image.html6
-rw-r--r--layouts/_default/_markup/render-link.html8
2 files changed, 7 insertions, 7 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
index e0341bc..193374d 100644
--- a/layouts/_default/_markup/render-image.html
+++ b/layouts/_default/_markup/render-image.html
@@ -1,13 +1,13 @@
<figure>
<img
- {{- $res := resources.Get "svg/loading.svg" | minify -}}
+ {{ $res := resources.Get "svg/loading.svg" | minify -}}
src="{{ $res.RelPermalink }}"
data-sizes="auto"
data-src="{{ .Destination | safeURL }}"
alt="{{ .Text }}"
- {{- with .Title -}}
+ {{ with .Title -}}
title="{{ . }}"
- {{- end -}}
+ {{ end -}}
class="lazyload"
>
<figcaption class="image-caption">
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html
index ccac741..cb9f027 100644
--- a/layouts/_default/_markup/render-link.html
+++ b/layouts/_default/_markup/render-link.html
@@ -1,10 +1,10 @@
<a href="{{ .Destination | safeURL }}"
- {{- with .Title -}}
+ {{ with .Title -}}
title="{{ . }}"
- {{- end -}}
- {{- if strings.HasPrefix .Destination "http" -}}
+ {{ end -}}
+ {{ if strings.HasPrefix .Destination "http" -}}
target="_blank"
- {{- end -}}
+ {{ end -}}
>
{{- .Text -}}
</a> \ No newline at end of file