diff options
author | kdevo <kdevo@users.noreply.github.com> | 2021-12-02 01:44:52 +0300 |
---|---|---|
committer | kdevo <kdevo@users.noreply.github.com> | 2021-12-02 01:44:52 +0300 |
commit | 56649f89a654e2721e8d5909376ef231a64d043f (patch) | |
tree | cc864df56afc9361c9ddef84a665e46e4707ae47 | |
parent | 3dd1295401c365631a8b815be5d38277fc18b959 (diff) |
fix(partials/modals): emojify GitHub project descriptions
-rw-r--r-- | layouts/partials/sections/gallery/modals.html | 4 |
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 }} |