Add option to enable Twemoji
This commit is contained in:
parent
251b2317dc
commit
0d3f314102
|
@ -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;
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -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
2
go.mod
|
@ -1,3 +1,5 @@
|
|||
module git.jlel.se/jlelse/Indiego
|
||||
|
||||
go 1.14
|
||||
|
||||
require github.com/twitter/twemoji v13.0.0+incompatible // indirect
|
||||
|
|
|
@ -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=
|
|
@ -27,4 +27,5 @@
|
|||
{{ end }}
|
||||
{{ end }}
|
||||
{{ partialCached "footer" . }}
|
||||
{{ partialCached "twemoji" . }}
|
||||
{{ partialCached "custombodyend" . }}
|
|
@ -0,0 +1,4 @@
|
|||
{{ if .Param "twemoji" }}
|
||||
{{ $twemoji := resources.Get "js/twemoji.js" | minify | fingerprint }}
|
||||
<script defer src="{{ $twemoji.Permalink }}"></script>
|
||||
{{ end }}
|
Reference in New Issue