diff --git a/go.mod b/go.mod index 194307ad..fee8209c 100644 --- a/go.mod +++ b/go.mod @@ -13,8 +13,10 @@ require ( github.com/grpc-ecosystem/grpc-gateway v1.6.4 github.com/jtolds/gls v4.2.1+incompatible // indirect github.com/moul/numberinfo v0.0.0-20160903151149-753f372df509 + github.com/moul/sprig v0.0.0-20170404194836-dba49a8d3a46 github.com/oxtoacart/bpool v0.0.0-20150712133111-4e1c5567d7c2 github.com/pkg/errors v0.8.1 + github.com/satori/go.uuid v1.2.0 // indirect github.com/shazow/memoizer v0.0.0-20130904030615-74fc48eaeadc github.com/sirupsen/logrus v1.3.0 // indirect github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d // indirect diff --git a/go.sum b/go.sum index 212ec9c8..12fa094c 100644 --- a/go.sum +++ b/go.sum @@ -269,6 +269,8 @@ github.com/moul/advanced-ssh-config v2.8.0+incompatible h1:TwBlAP+vrtYVW+cv+NJqG github.com/moul/advanced-ssh-config v2.8.0+incompatible/go.mod h1:R4jFrcdiyzi23qjl7fBUyk7zV3xoFv5S8ulBBsU2ufw= github.com/moul/numberinfo v0.0.0-20160903151149-753f372df509 h1:I9dq1rfaqOuM/cdoYtHeAK/nJxU2iRJAx9MPwHjoJic= github.com/moul/numberinfo v0.0.0-20160903151149-753f372df509/go.mod h1:9J61gswx3x7Sv1flRnwrSJv0jIksuHecefKXOnjMBpI= +github.com/moul/sprig v0.0.0-20170404194836-dba49a8d3a46 h1:unq5acwmnJ+T7/c8TFry3PsBIvKag9OLpg+pGPZP9BA= +github.com/moul/sprig v0.0.0-20170404194836-dba49a8d3a46/go.mod h1:L1YcYiORJV//vKELNvA8LX4T+WSIa2z6zz9kgd6mUMg= github.com/nicksnyder/go-i18n v1.10.0/go.mod h1:HrK7VCrbOvQoUAQ7Vpy7i87N7JZZZ7R2xBGjv0j365Q= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -285,6 +287,7 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rogpeppe/go-internal v1.0.0 h1:o4VLZ5jqHE+HahLT6drNtSGTrrUA3wPBmtpgqtdbClo= github.com/rogpeppe/go-internal v1.0.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/serenize/snaker v0.0.0-20171204205717-a683aaf2d516/go.mod h1:Yow6lPLSAXx2ifx470yD/nUe22Dv5vBvxK/UK9UUTVs= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= diff --git a/templates/copaings.tmpl b/templates/copaings.tmpl index ce48f3b6..a1005331 100644 --- a/templates/copaings.tmpl +++ b/templates/copaings.tmpl @@ -1,5 +1,36 @@ {{define "title"}}Copaings{{end}} +{{define "h1"}}Des copaings{{end}} +{{define "h1small"}}d'amour{{end}} {{define "content"}} -Copaingzzz + {{ $square_size := 250 }} + +

Les sites d'internet des copaings

+
+ {{ range $key, $copain := .friends }} + +
+
+
+
+

{{ $copain.Name }}

+
{{ $copain.Description }}
+
+ {{ range $link := $copain.Links }} + + {{ $link.Name }} + + {{ end }} +
+
+ +
+
+ + {{ end }} +
{{end}} diff --git a/templates/layout/base.tmpl b/templates/layout/base.tmpl index a1403081..5f6ce3df 100644 --- a/templates/layout/base.tmpl +++ b/templates/layout/base.tmpl @@ -80,25 +80,25 @@