Browse Source

Add option to enable Twemoji

master
Jan-Lukas Else 11 months ago
parent
commit
0d3f314102
  1. 8
      assets/css/style.scss
  2. 4
      assets/js/twemoji.js
  3. 9
      config.yaml
  4. 2
      go.mod
  5. 2
      go.sum
  6. 1
      layouts/_default/baseof.html
  7. 4
      layouts/partials/twemoji.html

8
assets/css/style.scss

@ -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
File diff suppressed because it is too large
View File

9
config.yaml

@ -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

@ -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

@ -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=

1
layouts/_default/baseof.html

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

4
layouts/partials/twemoji.html

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