diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-05-25 14:34:40 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-05-25 14:34:40 +0200 |
commit | 0bf0e1972df01cb3c5cff21b1accbbff55a6a475 (patch) | |
tree | 48ba3a57feddcba03a6431854d7182475150d686 | |
parent | 1f244b802eaabb119d38dae00a8c2bbbd3263752 (diff) |
tpl: Remove the shortcode assets for now
Not in use.
-rw-r--r-- | tpl/tplimpl/embedded/templates.autogen.go | 42 | ||||
-rw-r--r-- | tpl/tplimpl/embedded/templates/shortcodes/__h_simple_assets.html | 37 |
2 files changed, 2 insertions, 77 deletions
diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 4d0a9b6ac..df44102ea 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -243,44 +243,6 @@ if (!doNotTrack) { <!-- Output all taxonomies as schema.org keywords --> <meta itemprop="keywords" content="{{ if .IsPage}}{{ range $index, $tag := .Params.tags }}{{ $tag }},{{ end }}{{ else }}{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}{{ end }}" /> {{ end }}`}, - {`shortcodes/__h_simple_assets.html`, `{{ define "__h_simple_css" }}{{/* These template definitions are global. */}} -{{/* TODO(bep) rename this to Youtube something. We need to add these per service. */}} -{{ if not (.Page.Scratch.Get "__h_simple_css") }} -{{/* Only include once */}} -{{ .Page.Scratch.Set "__h_simple_css" true }} -<style> -.__h_youtube { - position: relative; - padding-bottom: 56.23%; - height: 0; - overflow: hidden; - max-width: 100%; - background: #000; - margin: 5px; -} -.__h_youtube img { - max-width: 100%; - height: auto; - color: #000; -} -.__h_youtube .play { - height: 72px; - width: 72px; - left: 50%; - top: 50%; - margin-left: -36px; - margin-top: -36px; - position: absolute; - cursor: pointer; -} -</style> -{{ end }} -{{ end }} - -{{- define "__h_simple_icon_play" -}} -M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z -{{- end -}} -`}, {`shortcodes/figure.html`, `<!-- image --> <figure{{ with .Get "class" }} class="{{.}}"{{ end }}> {{ if .Get "link"}}<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>{{ end }} @@ -343,8 +305,8 @@ M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.5 {{ .Page.Scratch.Set "__h_simple_instagram_css" true }} <style type="text/css"> .__h_instagram.card { - font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; - font-size: 14px; + font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; + font-size: 14px; border: 1px solid rgb(219, 219, 219); padding: 0; margin-top: 30px; diff --git a/tpl/tplimpl/embedded/templates/shortcodes/__h_simple_assets.html b/tpl/tplimpl/embedded/templates/shortcodes/__h_simple_assets.html deleted file mode 100644 index 1884f7ea2..000000000 --- a/tpl/tplimpl/embedded/templates/shortcodes/__h_simple_assets.html +++ /dev/null @@ -1,37 +0,0 @@ -{{ define "__h_simple_css" }}{{/* These template definitions are global. */}} -{{/* TODO(bep) rename this to Youtube something. We need to add these per service. */}} -{{ if not (.Page.Scratch.Get "__h_simple_css") }} -{{/* Only include once */}} -{{ .Page.Scratch.Set "__h_simple_css" true }} -<style> -.__h_youtube { - position: relative; - padding-bottom: 56.23%; - height: 0; - overflow: hidden; - max-width: 100%; - background: #000; - margin: 5px; -} -.__h_youtube img { - max-width: 100%; - height: auto; - color: #000; -} -.__h_youtube .play { - height: 72px; - width: 72px; - left: 50%; - top: 50%; - margin-left: -36px; - margin-top: -36px; - position: absolute; - cursor: pointer; -} -</style> -{{ end }} -{{ end }} - -{{- define "__h_simple_icon_play" -}} -M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z -{{- end -}} |