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

github.com/xianmin/hugo-theme-jane.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Xianmin <xianmin12@gmail.com>2019-08-13 14:03:27 +0300
committerGitHub <noreply@github.com>2019-08-13 14:03:27 +0300
commit90a82a9435994b4f4a7323616d58a01cc7869c92 (patch)
tree5bba68120a63c16db94301f724af2604d6246e33
parentc7fcba07a60553b3fea85dd79759a15a38b0301c (diff)
parent0f96c8a1e10eee26dc0fea5e5e3fa93be6073396 (diff)
Merge pull request #226 from paskal/master
Remove word-break from post "a" tag, add "target" and "rel" params to figure shortcode
-rw-r--r--assets/sass/_partial/_post/_content.scss1
-rw-r--r--layouts/shortcodes/figure.html2
2 files changed, 1 insertions, 2 deletions
diff --git a/assets/sass/_partial/_post/_content.scss b/assets/sass/_partial/_post/_content.scss
index 2c3fa3c..0ff102f 100644
--- a/assets/sass/_partial/_post/_content.scss
+++ b/assets/sass/_partial/_post/_content.scss
@@ -30,7 +30,6 @@
a {
color: $theme-color;
- word-break: break-all;
&:hover {
border-bottom: $content-link-border;
diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html
index db4f4a7..f662b39 100644
--- a/layouts/shortcodes/figure.html
+++ b/layouts/shortcodes/figure.html
@@ -15,7 +15,7 @@ Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/
<div class="img"{{ if .Parent }} style="background-image: url('{{ print $thumb }}');"{{ end }}{{ with .Get "size" }} data-size="{{.}}"{{ end }}>
<img itemprop="thumbnail" src="{{ $thumb }}" {{ with .Get "alt" | default (.Get "caption") }}alt="{{.}}"{{ end }}/><!-- <img> hidden if in .gallery -->
</div>
- {{ with .Get "link" | default (.Get "src") }}<a href="{{.}}" itemprop="contentUrl"></a>{{ end }}
+ {{ with .Get "link" | default (.Get "src") }}<a href="{{.}}"{{ with $.Get "target" }} target="{{.}}"{{ end }}{{ with $.Get "rel" }} rel="{{.}}"{{ end }} itemprop="contentUrl"></a>{{ end }}
{{- if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
<figcaption>
{{- with .Get "title" }}<h4>{{.}}</h4>{{ end }}