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 ZENG <dillonzq@outlook.com>2019-08-02 11:16:59 +0300
committerDillon ZENG <dillonzq@outlook.com>2019-08-02 11:16:59 +0300
commit1e709b5ba48256988de2140ffb2a84ca956b5887 (patch)
treeea99eccba90de3f115d85430876dd43377c16924 /layouts/_default/single.html
parent3e2972c318b3c8297a5ac775cb897adefa90b2ee (diff)
fix: fix disqus feature and format
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 71f52c6..d9bd592 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -37,7 +37,7 @@
<img src="{{ printf "%s%s" $cdn_url $img }}" class="featured_image">
{{ end }}
<!-- end featured_image-->
-
+
{{ $reAltIn := "<img src=\"([^\"]+)\" alt=\"([^\"]+)?\" />" }}
{{ $reAltOut := ( printf "<figure><img src=\"/images/ring.svg\" data-sizes=\"auto\" data-src=\"%s$1\" alt=\"$2\" class=\"lazyload\"><figcaption class=\"image-caption\">$2</figcaption></figure>" $cdn_url ) }}
{{ $altContent := .Content | replaceRE $reAltIn $reAltOut | safeHTML }}
@@ -56,12 +56,12 @@
<span>{{ . }} </span>
</p>
{{ end }}
-
+
<p class="copyright-item">
<span>{{ i18n "Words" }}:</span>
<span>{{ .WordCount }}</span>
</p>
-
+
<p class="copyright-item">
{{ if and ( $.Param "socialShare" ) (gt (len ($.Param "share")) 0) }}
<span>{{ i18n "Share" }}:</span>
@@ -76,19 +76,19 @@
{{ end }}
</div>
-
<div class="post-tags">
{{ with .Params.tags }}
<section>
<i class="iconfont icon-icon-tag"></i>{{ i18n "Tag" }}:
{{ range . }}
- <span class="tag"><a href="{{ "tags/" | absURL }}{{ . | urlize }}/">
- #{{.}}</a></span>
+ <span class="tag">
+ <a href="{{ "tags/" | absURL }}{{ . | urlize }}/">#{{.}}</a>
+ </span>
{{ end }}
</section>
{{ end }}
<section>
- <a href="javascript:window.history.back();">{{ i18n "back" }}</a></span> ·
+ <a href="javascript:window.history.back();">{{ i18n "back" }}</a></span> ·
<span><a href="{{ .Site.BaseURL }}">{{ i18n "Home" }}</a></span>
</section>
</div>
@@ -96,16 +96,16 @@
<div class="post-nav">
{{ if .PrevInSection }}
<a href="{{.PrevInSection.Permalink}}" class="prev" rel="prev" title="{{ .PrevInSection.Title}}"><i class="iconfont icon-dajiantou"></i>&nbsp;{{ .PrevInSection.Title}}</a>
- {{ end }}
+ {{ end }}
{{ if .NextInSection }}
<a href="{{.NextInSection.Permalink}}" class="next" rel="next" title="{{.NextInSection.Title}}">{{.NextInSection.Title}}&nbsp;<i class="iconfont icon-xiaojiantou"></i></a>
{{ end }}
</div>
<div class="post-comment">
- {{ if ( .Params.showComments | default true ) }}
- {{ partial "comments.html" . }}
- {{ end }}
+ {{ if ( .Params.showComments | default true ) }}
+ {{ partial "comments" . }}
+ {{ end }}
</div>
</article>
{{- end }}