twemoji
This commit is contained in:
parent
c372bda34a
commit
90e205e17b
3 changed files with 14 additions and 1 deletions
|
@ -69,4 +69,8 @@ yarn start
|
|||
```
|
||||
|
||||
## Setup
|
||||
Visit `/` on the HTTP server to add an admin account.
|
||||
Visit `/` on the HTTP server to add an admin account.
|
||||
|
||||
## Twemoji
|
||||
I use Twemoji in this project. Thanks Twitter!
|
||||
To use Twemoji, USE_CDN must be turned on (it is by default).
|
|
@ -42,3 +42,9 @@ ul.noStyle li {
|
|||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
img.emoji {
|
||||
margin: 0px !important;
|
||||
vertical-align: middle;
|
||||
width: 2em !important;
|
||||
}
|
|
@ -36,3 +36,6 @@ html(lang='en')
|
|||
h1 #{config.siteTitle}
|
||||
include includes/messages.pug
|
||||
block content
|
||||
if config.useCDN
|
||||
script(src='https://twemoji.maxcdn.com/v/latest/twemoji.min.js', crossorigin='anonymous')
|
||||
script twemoji.parse(document.body)
|
Loading…
Reference in a new issue