1
mirror of https://github.com/jakejarvis/hugo-mod-twemoji.git synced 2025-04-28 11:30:29 -04:00

some readme corrections/clarifications

This commit is contained in:
Jake Jarvis 2020-04-08 12:37:05 -04:00
parent 927123d837
commit e09ded66cb
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39

View File

@ -8,7 +8,7 @@ This [Hugo Module](https://gohugo.io/hugo-modules/) can be used to import the Tw
## 🤖 Usage ## 🤖 Usage
Add the module to your Hugo project's `config.toml`: Give the [Hugo Modules documentation](https://gohugo.io/hugo-modules/) a read to prepare your project, and then add this module to your Hugo project's `config.toml`:
```toml ```toml
[module] [module]
@ -16,7 +16,7 @@ Add the module to your Hugo project's `config.toml`:
path = "github.com/jakejarvis/hugo-mod-twemoji" path = "github.com/jakejarvis/hugo-mod-twemoji"
``` ```
The graphics will be mounted in `static/twemoji/svg` and `static/twemoji/png`, and the minified script in `static/twemoji/js`. The graphics will be mounted in `static/twemoji/svg` and `static/twemoji/png`, and the [minified script](https://github.com/twitter/twemoji/blob/gh-pages/v/12.1.5/twemoji.min.js) in `static/twemoji/js`.
Before you start, you'll probably want to [add Twitter's recommended CSS](https://github.com/twitter/twemoji#inline-styles) to your stylesheet to make sure the Twemojis match the size and alignment of the surrounding text — otherwise they'll be humongous: Before you start, you'll probably want to [add Twitter's recommended CSS](https://github.com/twitter/twemoji#inline-styles) to your stylesheet to make sure the Twemojis match the size and alignment of the surrounding text — otherwise they'll be humongous:
@ -31,7 +31,7 @@ img.emoji {
### ⚡ Quick Start ### ⚡ Quick Start
For a quick start, a partial template is mounted at `layouts/partials/twemoji-js.html`, which does everything described in the section below for you. Include this somewhere near the bottom of your base template, before `</body>`: For a quick start, an optional [partial template](https://gohugo.io/templates/partials/) is mounted at `layouts/partials/twemoji.html`, which does everything described in the section below for you. Include this somewhere near the bottom of your base template, before `</body>`:
```go ```go
{{ partial "twemoji" . }} {{ partial "twemoji" . }}