Browse Source

Add option to enable Twemoji

master
Jan-Lukas Else 7 months ago
parent
commit
0d3f314102
7 changed files with 29 additions and 1 deletions
  1. +8
    -0
      assets/css/style.scss
  2. +4
    -0
      assets/js/twemoji.js
  3. +8
    -1
      config.yaml
  4. +2
    -0
      go.mod
  5. +2
    -0
      go.sum
  6. +1
    -0
      layouts/_default/baseof.html
  7. +4
    -0
      layouts/partials/twemoji.html

+ 8
- 0
assets/css/style.scss 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
- 0
assets/js/twemoji.js
File diff suppressed because it is too large
View File


+ 8
- 1
config.yaml 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
- 0
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
- 0
go.sum 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=

+ 1
- 0
layouts/_default/baseof.html View File

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

+ 4
- 0
layouts/partials/twemoji.html View File

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