shithub: hugo

Download patch

ref: 7791a804e2179667617b3b145b0fe7eba17627a1
parent: c774b230e941902675af081f118ea206a4f2a04e
author: Elliott Sales de Andrade <quantum.analyst@gmail.com>
date: Wed Apr 8 02:56:14 EDT 2020

deps: Update to latest emoji package


--- a/go.mod
+++ b/go.mod
@@ -24,7 +24,7 @@
 	github.com/gorilla/websocket v1.4.1
 	github.com/jdkato/prose v1.1.1
 	github.com/kr/pretty v0.2.0 // indirect
-	github.com/kyokomi/emoji v2.1.0+incompatible
+	github.com/kyokomi/emoji v2.2.1+incompatible
 	github.com/magefile/mage v1.9.0
 	github.com/markbates/inflect v1.0.0
 	github.com/mattn/go-isatty v0.0.11
--- a/go.sum
+++ b/go.sum
@@ -215,8 +215,8 @@
 github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
 github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
 github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
-github.com/kyokomi/emoji v2.1.0+incompatible h1:+DYU2RgpI6OHG4oQkM5KlqD3Wd3UPEsX8jamTo1Mp6o=
-github.com/kyokomi/emoji v2.1.0+incompatible/go.mod h1:mZ6aGCD7yk8j6QY6KICwnZ2pxoszVseX1DNoGtU2tBA=
+github.com/kyokomi/emoji v2.2.1+incompatible h1:uP/6J5y5U0XxPh6fv8YximpVD1uMrshXG78I1+uF5SA=
+github.com/kyokomi/emoji v2.2.1+incompatible/go.mod h1:mZ6aGCD7yk8j6QY6KICwnZ2pxoszVseX1DNoGtU2tBA=
 github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
 github.com/magefile/mage v1.9.0 h1:t3AU2wNwehMCW97vuqQLtw6puppWXHO+O2MHo5a50XE=
 github.com/magefile/mage v1.9.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=
--- a/tpl/transform/init.go
+++ b/tpl/transform/init.go
@@ -32,7 +32,7 @@
 		ns.AddMethodMapping(ctx.Emojify,
 			[]string{"emojify"},
 			[][2]string{
-				{`{{ "I :heart: Hugo" | emojify }}`, `I ❤ Hugo`},
+				{`{{ "I :heart: Hugo" | emojify }}`, `I ❤️ Hugo`},
 			},
 		)
 
--- a/tpl/transform/transform_test.go
+++ b/tpl/transform/transform_test.go
@@ -44,7 +44,7 @@
 		expect interface{}
 	}{
 		{":notamoji:", template.HTML(":notamoji:")},
-		{"I :heart: Hugo", template.HTML("I ❤ Hugo")},
+		{"I :heart: Hugo", template.HTML("I ❤️ Hugo")},
 		// errors
 		{tstNoStringer{}, false},
 	} {