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

github.com/reuixiy/hugo-theme-meme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/utils/content.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/utils/content.html b/layouts/partials/utils/content.html
index 0819137..a1bf70b 100644
--- a/layouts/partials/utils/content.html
+++ b/layouts/partials/utils/content.html
@@ -52,7 +52,7 @@
{{- $regexReplacementDropCap := `$1 style="text-indent:0"$2<span class="drop-cap">$3</span>$4` -}}
{{- $firstParagraphOld := (delimit (findRE $regexPatternDropCap $Content 1) " ") -}}
{{- $firstParagraphNew := (replaceRE $regexPatternDropCap $regexReplacementDropCap $firstParagraphOld) -}}
- {{- $Content = replace $Content $firstParagraphOld $firstParagraphNew -}}
+ {{- $Content = replace $Content $firstParagraphOld $firstParagraphNew 1 -}}
{{- end -}}
<!-- Drop Cap After `<hr />` -->