summaryrefslogtreecommitdiffstats
path: root/docs/themes
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-01-31 11:08:08 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-01-31 11:08:08 +0100
commit158e1151cdfbdebd2e4a527e828d8a0b17933787 (patch)
treeb73947184a82fe10366dbefe7e3f2d0e415ae801 /docs/themes
parentf0c0ece44d55b6c2997cbd106d1bc099ea1a2fa7 (diff)
parent337d0c5f516ee085205e8abefdb7f87e6d33ca05 (diff)
Diffstat (limited to 'docs/themes')
-rw-r--r--docs/themes/gohugoioTheme/archetypes/default.md13
-rw-r--r--docs/themes/gohugoioTheme/archetypes/functions.md17
-rw-r--r--docs/themes/gohugoioTheme/archetypes/showcase.md13
-rw-r--r--docs/themes/gohugoioTheme/archetypes/tutorials.md16
-rwxr-xr-xdocs/themes/gohugoioTheme/layouts/_default/baseof.html4
-rw-r--r--docs/themes/gohugoioTheme/layouts/partials/twitter_cards.html17
6 files changed, 2 insertions, 78 deletions
diff --git a/docs/themes/gohugoioTheme/archetypes/default.md b/docs/themes/gohugoioTheme/archetypes/default.md
deleted file mode 100644
index f30f01f74..000000000
--- a/docs/themes/gohugoioTheme/archetypes/default.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-linktitle: ""
-description: ""
-godocref: ""
-publishdate: ""
-lastmod: ""
-categories: []
-tags: []
-weight: 00
-slug: ""
-aliases: []
-toc: false
---- \ No newline at end of file
diff --git a/docs/themes/gohugoioTheme/archetypes/functions.md b/docs/themes/gohugoioTheme/archetypes/functions.md
deleted file mode 100644
index 0a5dd344f..000000000
--- a/docs/themes/gohugoioTheme/archetypes/functions.md
+++ /dev/null
@@ -1,17 +0,0 @@
----
-linktitle: ""
-description: ""
-godocref: ""
-publishdate: ""
-lastmod: ""
-categories: [functions]
-tags: []
-ns: ""
-signature: []
-workson: []
-hugoversion: ""
-aliases: []
-relatedfuncs: []
-toc: false
-deprecated: false
---- \ No newline at end of file
diff --git a/docs/themes/gohugoioTheme/archetypes/showcase.md b/docs/themes/gohugoioTheme/archetypes/showcase.md
deleted file mode 100644
index 562fb9e8e..000000000
--- a/docs/themes/gohugoioTheme/archetypes/showcase.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-description: ""
-lastmod: ""
-license: ""
-licenseLink: ""
-sitelink: ""
-sourcelink: ""
-categories: [showcase]
-tags: []
-image: ""
-toc: false
-notesforauthors: "Go to gohugo.io/contribute/documentation for more info"
---- \ No newline at end of file
diff --git a/docs/themes/gohugoioTheme/archetypes/tutorials.md b/docs/themes/gohugoioTheme/archetypes/tutorials.md
deleted file mode 100644
index 0a3540c0f..000000000
--- a/docs/themes/gohugoioTheme/archetypes/tutorials.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-linktitle: ""
-description: ""
-godocref: ""
-publishdate: ""
-lastmod: ""
-categories: [tutorials]
-tags: []
-author: ""
-authorurl: ""
-originalurl: ""
-draft: false
-aliases: []
-notesforauthors: "Go to gohugo.io/contribute/documentation for more info."
----
-
diff --git a/docs/themes/gohugoioTheme/layouts/_default/baseof.html b/docs/themes/gohugoioTheme/layouts/_default/baseof.html
index fb09c0db4..d6c854db0 100755
--- a/docs/themes/gohugoioTheme/layouts/_default/baseof.html
+++ b/docs/themes/gohugoioTheme/layouts/_default/baseof.html
@@ -9,7 +9,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
{{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
- <title>{{ block "title" . }}{{ .Site.Title }} {{ with .Title }} | {{ . }}{{ end }}{{ end }}</title>
+ <title>{{ block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
@@ -27,7 +27,7 @@
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/google_news.html" . -}}
{{- template "_internal/schema.html" . -}}
- {{- partial "twitter_cards.html" . -}}
+ {{- template "_internal/twitter_cards.html" . -}}
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
{{ template "_internal/google_analytics_async.html" . }}
diff --git a/docs/themes/gohugoioTheme/layouts/partials/twitter_cards.html b/docs/themes/gohugoioTheme/layouts/partials/twitter_cards.html
deleted file mode 100644
index d719937df..000000000
--- a/docs/themes/gohugoioTheme/layouts/partials/twitter_cards.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{{- with $.Param "images" -}}
-<meta name="twitter:card" content="summary_large_image"/>
-<meta name="twitter:image:src" content="{{ index . 0 | absURL }}"/>
-{{ else -}}
-<meta name="twitter:card" content="summary"/>
-{{- end -}}
-<meta name="twitter:title" content="{{ .Title }}"/>
-<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}"/>
-{{ with .Site.Social.twitter -}}
-<meta name="twitter:site" content="@{{ . }}"/>
-{{ end -}}
-{{ range .Site.Authors }}
-{{ with .twitter -}}
-<meta name="twitter:creator" content="@{{ . }}"/>
-{{ end -}}
-{{ end -}}
-