commit
This commit is contained in:
parent
01f9e43e59
commit
c2db7ec11e
|
|
@ -1,6 +1,7 @@
|
|||
<footer class="footer">
|
||||
{{ partial "footer/select-lang" . }}
|
||||
{{ partial "footer/links-social.html" . }}
|
||||
{{ partial "footer/links-feed.html" . }}
|
||||
{{ partial "footer/go-to-top" . }}
|
||||
<hr />
|
||||
|
||||
|
|
|
|||
|
|
@ -880,7 +880,7 @@
|
|||
descDiv = document.createElement('div');
|
||||
descDiv.setAttribute('class', 'menu-item__desc');
|
||||
descDiv.innerHTML = result.item.description;
|
||||
} else {
|
||||
} else if (result.item.content) {
|
||||
descDiv = document.createElement('div');
|
||||
descDiv.setAttribute('class', 'menu-item__desc');
|
||||
descDiv.innerHTML = result.item.content.substring(0, 150);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,22 @@
|
|||
{{ if not .Site.IsServer }}
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{ end }}
|
||||
{{ if and (.Site.Params.googleAnalytics) (not .Site.IsServer) }}
|
||||
<script>
|
||||
{{ $googleAnalyticsId := .Site.Params.googleAnalytics }}
|
||||
var googleAnalyticsId = JSON.parse({{ $googleAnalyticsId | jsonify }});
|
||||
|
||||
var _hmt = _hmt || [];
|
||||
(function () {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://www.googletagmanager.com/gtag/js?id=" + googleAnalyticsId;
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
</script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', {{ .Site.Params.googleAnalytics }});
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,13 @@
|
|||
· <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $.Param "AuthorEmoji" }}{{ $.Param "AuthorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }} {{ . }}</span>
|
||||
{{ end }}
|
||||
</h6>
|
||||
<div class="summary-card__tags">
|
||||
{{ with .Params.tags }}
|
||||
{{ range . }}
|
||||
<span class="tag">{{ . }}</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</header>
|
||||
<div class="summary-card__content">
|
||||
<div class="summary-card__text p2">
|
||||
|
|
|
|||
|
|
@ -28,6 +28,20 @@
|
|||
· <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $.Param "authorEmoji" }}{{ $.Param "authorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }} {{ . }}</span>
|
||||
{{ end }}
|
||||
</h6>
|
||||
{{ with .Params.tags }}
|
||||
<div class="summary-card__tags">
|
||||
{{ $length := len . }}
|
||||
{{ $lastIndex := sub $length 1 }}
|
||||
{{ range $index, $tag := . }}
|
||||
{{ if $tag }}
|
||||
<a href="{{ $.Site.BaseURL }}/tags/{{ $tag | urlize }}" class="tag">#{{ $tag }}</a>
|
||||
{{ if ne $index $lastIndex }}
|
||||
<span class="tag-delimiter">·</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</header>
|
||||
<div>
|
||||
<div class="summary-classic__text p2">
|
||||
|
|
|
|||
Loading…
Reference in New Issue