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
|
|
@ -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
Add a link
Reference in a new issue