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

github.com/kdevo/osprey-delight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdevo <kdevo@users.noreply.github.com>2021-12-02 01:44:52 +0300
committerkdevo <kdevo@users.noreply.github.com>2021-12-02 01:44:52 +0300
commit56649f89a654e2721e8d5909376ef231a64d043f (patch)
treecc864df56afc9361c9ddef84a665e46e4707ae47
parent3dd1295401c365631a8b815be5d38277fc18b959 (diff)
fix(partials/modals): emojify GitHub project descriptions
-rw-r--r--layouts/partials/sections/gallery/modals.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/sections/gallery/modals.html b/layouts/partials/sections/gallery/modals.html
index 8aa51cf..5be4818 100644
--- a/layouts/partials/sections/gallery/modals.html
+++ b/layouts/partials/sections/gallery/modals.html
@@ -25,10 +25,10 @@
<!-- Content -->
<article class="entry-content">
{{ if eq (len (trim .Content "\r\n" )) 0 -}}
- <p>{{ with $scratch.Get "repo" }}{{ .description }}{{ end }}</p>
+ <p>{{ with $scratch.Get "repo" }}{{ .description | emojify }}{{ end }}</p>
{{- else -}}
{{ if $scratch.Get "repo" }}
- {{ replace .Content "{github-description}" ($scratch.Get "repo").description | safeHTML }}
+ {{ replace .Content "{github-description}" ($scratch.Get "repo").description | emojify | safeHTML }}
{{- else -}}
{{ .Content }}
{{- end }}