From: bep Date: Fri, 30 Jan 2015 20:58:18 +0000 (+0100) Subject: Remove _default prefix from SEO templates X-Git-Tag: v0.13~83^2~1 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=230e7c02c528d0840675f27b3e926178c78176cb;p=brevno-suite%2Fhugo Remove _default prefix from SEO templates --- diff --git a/tpl/template_embedded.go b/tpl/template_embedded.go index dbeace55..c0b36d99 100644 --- a/tpl/template_embedded.go +++ b/tpl/template_embedded.go @@ -126,7 +126,7 @@ func (t *GoHtmlTemplate) EmbedTemplates() { comments powered by Disqus{{end}}`) // Add SEO & Social metadata - t.AddInternalTemplate("_default", "opengraph.html", ` + t.AddInternalTemplate("", "opengraph.html", ` @@ -166,7 +166,7 @@ func (t *GoHtmlTemplate) EmbedTemplates() { {{ with .Site.Social.facebook_admin }}{{ end }}`) - t.AddInternalTemplate("_default", "twitter_cards.html", `{{ if .IsPage }} + t.AddInternalTemplate("", "twitter_cards.html", `{{ if .IsPage }} {{ with .Params.images }} @@ -184,11 +184,11 @@ func (t *GoHtmlTemplate) EmbedTemplates() { {{ with .twitter }}{{ end }} {{ end }}{{ end }}`) - t.AddInternalTemplate("_default", "google_news.html", `{{ if .IsPage }}{{ with .Params.news_keywords }} + t.AddInternalTemplate("", "google_news.html", `{{ if .IsPage }}{{ with .Params.news_keywords }} {{ end }}{{ end }}`) - t.AddInternalTemplate("_default", "schema.html", `{{ with .Site.Social.GooglePlus }}{{ end }} + t.AddInternalTemplate("", "schema.html", `{{ with .Site.Social.GooglePlus }}{{ end }}