Add support emojis (#184)
* layout, index: render markdown emoji in section titles * exampleSite, config: enable emoji rendering in markdown files
This commit is contained in:
parent
4191af692f
commit
e13ca197b8
2 changed files with 4 additions and 1 deletions
|
|
@ -14,6 +14,9 @@ title = "Jane Doe - Nutrition Coach & Chef Consultant"
|
|||
# In order to add version information in the page's footer set to true.
|
||||
# enableGitInfo = true
|
||||
|
||||
# enable emoji processing in Markdown (valid only for pure markdown content)
|
||||
enableEmoji = true
|
||||
|
||||
# Theme-specific variables `.Site.Params.myParamName`
|
||||
[params]
|
||||
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@
|
|||
<div class='post-holder{{ if and (ne .Site.Params.invertSectionColors true) (not (modBool $index_val 2)) }} dark{{ else if and (eq .Site.Params.invertSectionColors true) (modBool $index_val 2) }} dark{{ end }}'>
|
||||
<article id='{{ anchorize $fnav_title }}' class='post {{ if eq $index_val 0 }}first{{ end }} {{ if eq (add $index_val 1) (len $content) }}last{{ end }}'>
|
||||
<header class="post-header">
|
||||
<h2 class="post-title">{{ .Title | safeHTML }}</h2>
|
||||
<h2 class="post-title">{{ .Title | emojify | safeHTML }}</h2>
|
||||
</header>
|
||||
<section class="post-content">
|
||||
{{ .Content }}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue