jlelse
/
Indiego
Archived
1
Fork 0

Add option to enable Twemoji

This commit is contained in:
Jan-Lukas Else 2020-06-03 09:38:09 +02:00
parent 251b2317dc
commit 0d3f314102
7 changed files with 29 additions and 1 deletions

View File

@ -149,4 +149,12 @@ footer {
.full-width {
width: 100%;
}
/* Twemoji */
img.emoji {
height: 1em;
width: 1em;
margin: 0 .05em 0 .1em;
vertical-align: -0.1em;
}

4
assets/js/twemoji.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -5,4 +5,11 @@ outputFormats:
isPlainText: true
podcast:
mediaType: "application/rss+xml"
baseName: "podcast"
baseName: "podcast"
module:
imports:
- path: github.com/twitter/twemoji
mounts:
- source: assets/svg
target: static/twemoji/svg

2
go.mod
View File

@ -1,3 +1,5 @@
module git.jlel.se/jlelse/Indiego
go 1.14
require github.com/twitter/twemoji v13.0.0+incompatible // indirect

2
go.sum Normal file
View File

@ -0,0 +1,2 @@
github.com/twitter/twemoji v13.0.0+incompatible h1:zhjK0965GpFVjOsOpSfg2+Q59GjlWbOlLYvoMGkihqk=
github.com/twitter/twemoji v13.0.0+incompatible/go.mod h1:06L6PdKuWDx/Yh6s4B7yGkAeBmWZzbFZgfNnWlJPPYM=

View File

@ -27,4 +27,5 @@
{{ end }}
{{ end }}
{{ partialCached "footer" . }}
{{ partialCached "twemoji" . }}
{{ partialCached "custombodyend" . }}

View File

@ -0,0 +1,4 @@
{{ if .Param "twemoji" }}
{{ $twemoji := resources.Get "js/twemoji.js" | minify | fingerprint }}
<script defer src="{{ $twemoji.Permalink }}"></script>
{{ end }}