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

github.com/it-gro/hugo-theme-w3css-basic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-gro <13005925+it-gro@users.noreply.github.com>2019-08-16 00:58:54 +0300
committerit-gro <13005925+it-gro@users.noreply.github.com>2019-08-16 00:58:54 +0300
commit6a157d9d8f21700ffc633936754739a5946d6fd1 (patch)
tree99cf5d1bb9638a9d1a7a3f8c737d98150202adfd /layouts
parentf6a063f4ee06f3cb89c0d8a80f9584ce9920a5e3 (diff)
wip
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 062a89e..5b5b5e5 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -50,13 +50,16 @@
{{- end}}
{{- /* .Content */}}
- {{- $.Scratch.Set `myContent` (.Content | replaceRE `(?s:</div>\s?</p>)` `</div>` | replaceRE `(?s:</pre>\s?</p>)` `</pre>` | replaceRE `(?s:</figure>\s*</p>)` `</figure>` ) }}
+ {{/*- $.Scratch.Set `myContent` (.Content | replaceRE `(?s:</div>\s?</p>)` `</div>` | replaceRE `(?s:</pre>\s?</p>)` `</pre>` | replaceRE `(?s:</figure>\s*</p>)` `</figure>` ) */}}
+ {{- $myContent := (.Content | replaceRE `(?s:</div>\s?</p>)` `</div>` | replaceRE `(?s:</pre>\s?</p>)` `</pre>` | replaceRE `(?s:</figure>\s*</p>)` `</figure>` ) }}
{{- if isset $.Site.Params (lower `anchor` ) }}
{{- if $.Site.Params.anchor.enable }}
- {{- $.Scratch.Set `myContent` ( ($.Scratch.Get `myContent`) | replaceRE `(<h[1-9] id="([^"]+)".+)(</h[1-9]+>)` (printf `${1}&nbsp;<a class="anchor w3-small " href="#${2}"><i class="%s"></i></a> ${3}` (default "fas fa-link" $.Site.Params.anchor.icon) ) ) }}
+ {{/*- $.Scratch.Set `myContent` ( ($.Scratch.Get `myContent`) | replaceRE `(<h[1-9] id="([^"]+)".+)(</h[1-9]+>)` (printf `${1}&nbsp;<a class="anchor w3-small " href="#${2}"><i class="%s"></i></a> ${3}` (default "fas fa-link" $.Site.Params.anchor.icon) ) ) */}}
+ {{- $myContent := ( ($.Scratch.Get `myContent`) | replaceRE `(<h[1-9] id="([^"]+)".+)(</h[1-9]+>)` (printf `${1}&nbsp;<a class="anchor w3-small " href="#${2}"><i class="%s"></i></a> ${3}` (default "fas fa-link" $.Site.Params.anchor.icon) ) ) }}
{{- end }}
{{- end }}
- {{- ($.Scratch.Get `myContent`) | safeHTML }}
+ {{/*- ($.Scratch.Get `myContent`) | safeHTML */}}
+ {{- $myContent | safeHTML }}
{{- partial `main.related.html` . -}}
{{- end }}