2019-01-02 06:33:26 -05:00
// Copyright 2019 The Hugo Authors. All rights reserved.
2014-01-09 17:33:20 -05:00
//
2015-11-23 22:16:36 -05:00
// Licensed under the Apache License, Version 2.0 (the "License");
2014-01-09 17:33:20 -05:00
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
2015-11-23 22:16:36 -05:00
// http://www.apache.org/licenses/LICENSE-2.0
2014-01-09 17:33:20 -05:00
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
2018-05-04 11:53:56 -04:00
// This file is autogenerated.
2014-01-09 17:33:20 -05:00
2018-05-04 11:53:56 -04:00
// Package embedded defines the internal templates that Hugo provides.
package embedded
2014-04-09 17:45:34 -04:00
2018-09-06 18:25:30 -04:00
// EmbeddedTemplates represents all embedded templates.
2018-05-04 11:53:56 -04:00
var EmbeddedTemplates = [ ] [ 2 ] string {
{ ` _default/robots.txt ` , ` User-agent: * ` } ,
2019-08-17 13:37:14 -04:00
{ ` _default/rss.xml ` , ` { { - $ pctx := . - } }
{ { - if . IsHome - } } { { $ pctx = . Site } } { { - end - } }
2020-02-18 10:55:30 -05:00
{ { - $ pages := slice - } }
2020-02-18 11:29:46 -05:00
{ { - if or $ . IsHome $ . IsSection - } }
2020-02-18 10:55:30 -05:00
{ { - $ pages = $ pctx . RegularPages - } }
2020-02-18 11:29:46 -05:00
{ { - else - } }
{ { - $ pages = $ pctx . Pages - } }
2020-02-18 10:55:30 -05:00
{ { - end - } }
2019-01-02 06:33:26 -05:00
{ { - $ limit := . Site . Config . Services . RSS . Limit - } }
{ { - if ge $ limit 1 - } }
{ { - $ pages = $ pages | first $ limit - } }
{ { - end - } }
2019-09-21 04:06:15 -04:00
{ { - printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML } }
2019-01-02 06:33:26 -05:00
< rss version = "2.0" xmlns : atom = "http://www.w3.org/2005/Atom" >
2014-04-09 17:45:34 -04:00
< channel >
2016-11-20 06:54:17 -05:00
< title > { { if eq . Title . Site . Title } } { { . Site . Title } } { { else } } { { with . Title } } { { . } } on { { end } } { { . Site . Title } } { { end } } < / title >
2014-04-09 17:45:34 -04:00
< link > { { . Permalink } } < / link >
2016-11-20 06:54:17 -05:00
< description > Recent content { { if ne . Title . Site . Title } } { { with . Title } } in { { . } } { { end } } { { end } } on { { . Site . Title } } < / description >
2015-01-30 08:24:44 -05:00
< generator > Hugo -- gohugo . io < / generator > { { with . Site . LanguageCode } }
2016-09-18 13:10:11 -04:00
< language > { { . } } < / language > { { end } } { { with . Site . Author . email } }
< managingEditor > { { . } } { { with $ . Site . Author . name } } ( { { . } } ) { { end } } < / managingEditor > { { end } } { { with . Site . Author . email } }
< webMaster > { { . } } { { with $ . Site . Author . name } } ( { { . } } ) { { end } } < / webMaster > { { end } } { { with . Site . Copyright } }
2015-01-30 08:24:44 -05:00
< copyright > { { . } } < / copyright > { { end } } { { if not . Date . IsZero } }
2015-03-18 01:16:54 -04:00
< lastBuildDate > { { . Date . Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML } } < / lastBuildDate > { { end } }
2020-08-12 01:34:04 -04:00
{ { - with . OutputFormats . Get "RSS" - } }
{ { printf "<atom:link href=%q rel=\"self\" type=%q />" . Permalink . MediaType | safeHTML } }
{ { - end - } }
2019-01-02 06:33:26 -05:00
{ { range $ pages } }
2014-04-09 17:45:34 -04:00
< item >
< title > { { . Title } } < / title >
< link > { { . Permalink } } < / link >
2015-03-18 01:16:54 -04:00
< pubDate > { { . Date . Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML } } < / pubDate >
2016-09-18 13:10:11 -04:00
{ { with . Site . Author . email } } < author > { { . } } { { with $ . Site . Author . name } } ( { { . } } ) { { end } } < / author > { { end } }
2014-04-09 17:45:34 -04:00
< guid > { { . Permalink } } < / guid >
2017-03-25 17:58:41 -04:00
< description > { { . Summary | html } } < / description >
2014-04-09 17:45:34 -04:00
< / item >
{ { end } }
< / channel >
2020-08-12 01:34:04 -04:00
< / rss >
` } ,
2019-09-21 04:06:15 -04:00
{ ` _default/sitemap.xml ` , ` { { printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML } }
2019-01-02 06:33:26 -05:00
< urlset xmlns = "http://www.sitemaps.org/schemas/sitemap/0.9"
2017-10-17 14:56:50 -04:00
xmlns : xhtml = "http://www.w3.org/1999/xhtml" >
2014-05-06 06:50:23 -04:00
{ { range . Data . Pages } }
2021-02-06 12:30:09 -05:00
{ { - if . Permalink - } }
2014-05-06 06:50:23 -04:00
< url >
2015-05-14 17:58:14 -04:00
< loc > { { . Permalink } } < / loc > { { if not . Lastmod . IsZero } }
< lastmod > { { safeHTML ( . Lastmod . Format "2006-01-02T15:04:05-07:00" ) } } < / lastmod > { { end } } { { with . Sitemap . ChangeFreq } }
2014-05-06 11:02:56 -04:00
< changefreq > { { . } } < / changefreq > { { end } } { { if ge . Sitemap . Priority 0.0 } }
2017-04-22 16:37:14 -04:00
< priority > { { . Sitemap . Priority } } < / priority > { { end } } { { if . IsTranslated } } { { range . Translations } }
< xhtml : link
rel = "alternate"
2019-01-02 06:33:26 -05:00
hreflang = "{{ .Language.Lang }}"
2017-04-22 16:37:14 -04:00
href = "{{ .Permalink }}"
/ > { { end } }
< xhtml : link
rel = "alternate"
2019-01-02 06:33:26 -05:00
hreflang = "{{ .Language.Lang }}"
2017-04-22 16:37:14 -04:00
href = "{{ .Permalink }}"
/ > { { end } }
2014-05-06 06:50:23 -04:00
< / url >
2021-02-06 12:30:09 -05:00
{ { - end - } }
2014-05-06 06:50:23 -04:00
{ { end } }
2020-08-12 01:34:04 -04:00
< / urlset >
` } ,
2019-09-21 04:06:15 -04:00
{ ` _default/sitemapindex.xml ` , ` { { printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML } }
2019-01-02 06:33:26 -05:00
< sitemapindex xmlns = "http://www.sitemaps.org/schemas/sitemap/0.9" >
2020-08-12 01:34:04 -04:00
{ { range . } }
< sitemap >
< loc > { { . SitemapAbsURL } } < / loc >
{ { if not . LastChange . IsZero } }
< lastmod > { { . LastChange . Format "2006-01-02T15:04:05-07:00" | safeHTML } } < / lastmod >
{ { end } }
< / sitemap >
{ { end } }
2016-08-04 16:12:19 -04:00
< / sitemapindex >
2018-05-04 11:53:56 -04:00
` } ,
2019-12-10 13:56:44 -05:00
{ ` alias.html ` , ` <!DOCTYPE html><html><head><title> {{ .Permalink }} </title><link rel="canonical" href=" {{ .Permalink }} "/><meta name="robots" content="noindex"><meta charset="utf-8" /><meta http-equiv="refresh" content="0; url= {{ .Permalink }} " /></head></html> ` } ,
2019-01-02 06:33:26 -05:00
{ ` disqus.html ` , ` { { - $ pc := . Site . Config . Privacy . Disqus - } }
2018-05-20 14:00:29 -04:00
{ { - if not $ pc . Disable - } }
{ { if . Site . DisqusShortname } } < div id = "disqus_thread" > < / div >
2018-08-06 17:11:12 -04:00
< script type = "application/javascript" >
2017-06-27 07:40:01 -04:00
var disqus_config = function ( ) {
2019-04-09 10:39:12 -04:00
{ { with . Params . disqus_identifier } } this . page . identifier = ' { { . } } ' ; { { end } }
{ { with . Params . disqus_title } } this . page . title = ' { { . } } ' ; { { end } }
{ { with . Params . disqus_url } } this . page . url = ' { { . | html } } ' ; { { end } }
2017-06-27 07:40:01 -04:00
} ;
2014-04-23 02:52:01 -04:00
( function ( ) {
2017-06-27 07:40:01 -04:00
if ( [ "localhost" , "127.0.0.1" ] . indexOf ( window . location . hostname ) != - 1 ) {
document . getElementById ( ' disqus_thread ' ) . innerHTML = ' Disqus comments not available by default when the website is previewed locally . ' ;
return ;
}
2017-06-27 11:45:48 -04:00
var d = document , s = d . createElement ( ' script ' ) ; s . async = true ;
s . src = ' //' + {{ .Site.DisqusShortname }} + '.disqus.com/embed.js';
s . setAttribute ( ' data - timestamp ' , + new Date ( ) ) ;
( d . head || d . body ) . appendChild ( s ) ;
2014-04-23 02:52:01 -04:00
} ) ( ) ;
< / script >
2017-08-22 13:55:29 -04:00
< noscript > Please enable JavaScript to view the < a href = "https://disqus.com/?ref_noscript" > comments powered by Disqus . < / a > < / noscript >
2018-05-20 14:00:29 -04:00
< a href = "https://disqus.com" class = "dsq-brlink" > comments powered by < span class = "logo-disqus" > Disqus < / span > < / a > { { end } }
{ { - end - } } ` } ,
2018-05-23 04:03:11 -04:00
{ ` google_analytics.html ` , ` { { - $ pc := . Site . Config . Privacy . GoogleAnalytics - } }
2021-03-03 07:30:06 -05:00
{ { - if not $ pc . Disable } } { { with . Site . GoogleAnalytics - } }
{ { if hasPrefix . "G-" } }
< script async src = "https://www.googletagmanager.com/gtag/js?id={{ . }}" > < / script >
< script >
{ { template "__ga_js_set_doNotTrack" $ } }
if ( ! doNotTrack ) {
window . dataLayer = window . dataLayer || [ ] ;
function gtag ( ) { dataLayer . push ( arguments ) ; }
gtag ( ' js ' , new Date ( ) ) ;
gtag ( ' config ' , ' { { . } } ' , { ' anonymize_ip ' : { { - $ pc . AnonymizeIP - } } } ) ;
}
< / script >
{ { else if hasPrefix . "UA-" } }
2018-08-06 17:11:12 -04:00
< script type = "application/javascript" >
2018-05-21 04:18:36 -04:00
{ { template "__ga_js_set_doNotTrack" $ } }
if ( ! doNotTrack ) {
( function ( i , s , o , g , r , a , m ) { i [ ' GoogleAnalyticsObject ' ] = r ; i [ r ] = i [ r ] || function ( ) {
( i [ r ] . q = i [ r ] . q || [ ] ) . push ( arguments ) } , i [ r ] . l = 1 * new Date ( ) ; a = s . createElement ( o ) ,
m = s . getElementsByTagName ( o ) [ 0 ] ; a . async = 1 ; a . src = g ; m . parentNode . insertBefore ( a , m )
} ) ( window , document , ' script ',' https : //www.google-analytics.com/analytics.js','ga');
2018-05-25 08:52:06 -04:00
{ { - if $ pc . UseSessionStorage } }
if ( window . sessionStorage ) {
var GA_SESSION_STORAGE_KEY = ' ga : clientId ' ;
ga ( ' create ' , ' { { . } } ' , {
' storage ' : ' none ' ,
' clientId ' : sessionStorage . getItem ( GA_SESSION_STORAGE_KEY )
} ) ;
ga ( function ( tracker ) {
sessionStorage . setItem ( GA_SESSION_STORAGE_KEY , tracker . get ( ' clientId ' ) ) ;
} ) ;
}
{ { else } }
2018-05-21 04:18:36 -04:00
ga ( ' create ' , ' { { . } } ' , ' auto ' ) ;
2018-05-25 08:52:06 -04:00
{ { end - } }
2018-05-25 10:05:45 -04:00
{ { if $ pc . AnonymizeIP } } ga ( ' set ' , ' anonymizeIp ' , true ) ; { { end } }
2018-05-21 04:18:36 -04:00
ga ( ' send ' , ' pageview ' ) ;
}
2018-05-04 11:53:56 -04:00
< / script >
2018-05-21 04:18:36 -04:00
{ { - end - } }
2021-03-03 07:30:06 -05:00
{ { - end } } { { end - } }
2018-05-21 04:18:36 -04:00
{ { - define "__ga_js_set_doNotTrack" - } } { { /* This is also used in the async version. */ } }
2018-05-23 04:03:11 -04:00
{ { - $ pc := . Site . Config . Privacy . GoogleAnalytics - } }
2018-05-21 04:18:36 -04:00
{ { - if not $ pc . RespectDoNotTrack - } }
var doNotTrack = false ;
{ { - else - } }
var dnt = ( navigator . doNotTrack || window . doNotTrack || navigator . msDoNotTrack ) ;
var doNotTrack = ( dnt == "1" || dnt == "yes" ) ;
{ { - end - } }
2018-05-20 14:00:29 -04:00
{ { - end - } } ` } ,
2018-05-23 04:03:11 -04:00
{ ` google_analytics_async.html ` , ` { { - $ pc := . Site . Config . Privacy . GoogleAnalytics - } }
2018-05-20 14:00:29 -04:00
{ { - if not $ pc . Disable - } }
{ { with . Site . GoogleAnalytics } }
2018-08-06 17:11:12 -04:00
< script type = "application/javascript" >
2018-05-21 04:18:36 -04:00
{ { template "__ga_js_set_doNotTrack" $ } }
if ( ! doNotTrack ) {
window . ga = window . ga || function ( ) { ( ga . q = ga . q || [ ] ) . push ( arguments ) } ; ga . l = + new Date ;
2018-05-25 08:52:06 -04:00
{ { - if $ pc . UseSessionStorage } }
if ( window . sessionStorage ) {
var GA_SESSION_STORAGE_KEY = ' ga : clientId ' ;
ga ( ' create ' , ' { { . } } ' , {
' storage ' : ' none ' ,
' clientId ' : sessionStorage . getItem ( GA_SESSION_STORAGE_KEY )
} ) ;
ga ( function ( tracker ) {
sessionStorage . setItem ( GA_SESSION_STORAGE_KEY , tracker . get ( ' clientId ' ) ) ;
} ) ;
}
{ { else } }
2018-05-21 04:18:36 -04:00
ga ( ' create ' , ' { { . } } ' , ' auto ' ) ;
2018-05-25 08:52:06 -04:00
{ { end - } }
2018-05-25 10:05:45 -04:00
{ { if $ pc . AnonymizeIP } } ga ( ' set ' , ' anonymizeIp ' , true ) ; { { end } }
2018-05-21 04:18:36 -04:00
ga ( ' send ' , ' pageview ' ) ;
}
2018-05-04 11:53:56 -04:00
< / script >
2018-06-09 17:47:44 -04:00
< script async src = ' https : //www.google-analytics.com/analytics.js'></script>
2018-05-20 14:00:29 -04:00
{ { end } }
2018-06-26 05:31:17 -04:00
{ { - end - } }
` } ,
2018-05-04 11:53:56 -04:00
{ ` google_news.html ` , ` { { if . IsPage } } { { with . Params . news_keywords } }
< meta name = "news_keywords" content = "{{ range $i, $kw := first 10 . }}{{ if $i }},{{ end }}{{ $kw }}{{ end }}" / >
{ { end } } { { end } } ` } ,
{ ` opengraph.html ` , ` < meta property = "og:title" content = "{{ .Title }}" / >
2015-02-01 13:56:21 -05:00
< meta property = "og:description" content = "{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" / >
2014-12-09 13:33:55 -05:00
< meta property = "og:type" content = "{{ if .IsPage }}article{{ else }}website{{ end }}" / >
< meta property = "og:url" content = "{{ .Permalink }}" / >
2021-02-18 11:52:32 -05:00
{ { - with $ . Params . images - } }
{ { - range first 6 . } } < meta property = "og:image" content = "{{ . | absURL }}" / > { { end - } }
{ { - else - } }
2019-11-26 14:11:53 -05:00
{ { - $ images := $ . Resources . ByType "image" - } }
{ { - $ featured := $ images . GetMatch "*feature*" - } }
{ { - if not $ featured } } { { $ featured = $ images . GetMatch "{*cover*,*thumbnail*}" } } { { end - } }
{ { - with $ featured - } }
< meta property = "og:image" content = "{{ $featured.Permalink }}" / >
2021-02-18 11:52:32 -05:00
{ { - else - } }
{ { - with $ . Site . Params . images } } < meta property = "og:image" content = "{{ index . 0 | absURL }}" / > { { end - } }
{ { - end - } }
{ { - end - } }
2014-12-09 13:33:55 -05:00
2018-08-12 14:25:41 -04:00
{ { - if . IsPage } }
2021-02-18 11:52:32 -05:00
{ { - $ iso8601 := "2006-01-02T15:04:05-07:00" - } }
< meta property = "article:section" content = "{{ .Section }}" / >
2021-06-20 15:30:41 -04:00
{ { with . PublishDate } } < meta property = "article:published_time" { { . Format $ iso8601 | printf "content=%q" | safeHTMLAttr } } / > { { end } }
{ { with . Lastmod } } < meta property = "article:modified_time" { { . Format $ iso8601 | printf "content=%q" | safeHTMLAttr } } / > { { end } }
2021-02-18 11:52:32 -05:00
{ { - end - } }
2018-08-12 14:25:41 -04:00
{ { - with . Params . audio } } < meta property = "og:audio" content = "{{ . }}" / > { { end } }
{ { - with . Params . locale } } < meta property = "og:locale" content = "{{ . }}" / > { { end } }
{ { - with . Site . Params . title } } < meta property = "og:site_name" content = "{{ . }}" / > { { end } }
2021-02-18 11:52:32 -05:00
{ { - with . Params . videos } } { { - range . } }
2018-08-12 14:25:41 -04:00
< meta property = "og:video" content = "{{ . | absURL }}" / >
2015-01-20 04:43:42 -05:00
{ { end } } { { end } }
2014-12-09 13:33:55 -05:00
2018-08-12 14:25:41 -04:00
{ { - /* If it is part of a series, link to related articles */ } }
{ { - $ permalink := . Permalink } }
2021-02-18 11:52:32 -05:00
{ { - $ siteSeries := . Site . Taxonomies . series } }
{ { with . Params . series } } { { - range $ name := . } }
2020-12-16 06:20:02 -05:00
{ { - $ series := index $ siteSeries ( $ name | urlize ) } }
2018-08-12 14:25:41 -04:00
{ { - range $ page := first 6 $ series . Pages } }
{ { - if ne $ page . Permalink $ permalink } } < meta property = "og:see_also" content = "{{ $page.Permalink }}" / > { { end } }
{ { - end } }
2014-12-09 13:33:55 -05:00
{ { end } } { { end } }
2018-08-12 14:25:41 -04:00
{ { - /* Facebook Page Admin ID for Domain Insights */ } }
2018-09-21 18:36:15 -04:00
{ { - with . Site . Social . facebook_admin } } < meta property = "fb:admins" content = "{{ . }}" / > { { end } }
` } ,
2021-06-08 04:41:21 -04:00
{ ` pagination.html ` , ` { { - $ validFormats := slice "default" "terse" } }
{ { - $ msg1 := "When passing a map to the internal pagination template, one of the elements must be named 'page', and it must be set to the context of the current page." } }
{ { - $ msg2 := "The 'format' specified in the map passed to the internal pagination template is invalid. Valid choices are: %s." } }
{ { - $ page := . } }
{ { - $ format := "default" } }
{ { - if reflect . IsMap . } }
{ { - with . page } }
{ { - $ page = . } }
{ { - else } }
{ { - errorf $ msg1 } }
2020-06-12 05:29:04 -04:00
{ { - end } }
2021-06-08 04:41:21 -04:00
{ { - with . format } }
{ { - $ format = lower . } }
2020-06-12 05:29:04 -04:00
{ { - end } }
2021-06-08 04:41:21 -04:00
{ { - end } }
{ { - if in $ validFormats $ format } }
{ { - if gt $ page . Paginator . TotalPages 1 } }
< ul class = "pagination pagination-{{ $format }}" >
{ { - partial ( printf "partials/inline/pagination/%s" $ format ) $ page } }
< / ul >
{ { - end } }
{ { - else } }
{ { - errorf $ msg2 ( delimit $ validFormats ", " ) } }
{ { - end - } }
{ { / * Format : default
{ { /* --------------------------------------------------------------------- */ } }
{ { - define "partials/inline/pagination/default" } }
{ { - with . Paginator } }
{ { - $ currentPageNumber := . PageNumber } }
{ { - with . First } }
{ { - if ne $ currentPageNumber . PageNumber } }
< li class = "page-item" >
< a href = "{{ .URL }}" aria - label = "First" class = "page-link" role = "button" > < span aria - hidden = "true" > & laquo ; & laquo ; < / span > < / a >
< / li >
{ { - else } }
< li class = "page-item disabled" >
< a href = "#" aria - disabled = "true" aria - label = "First" class = "page-link" role = "button" > < span aria - hidden = "true" > & laquo ; & laquo ; < / span > < / a >
< / li >
{ { - end } }
{ { - end } }
{ { - with . Prev } }
< li class = "page-item" >
< a href = "{{ .URL }}" aria - label = "Previous" class = "page-link" role = "button" > < span aria - hidden = "true" > & laquo ; < / span > < / a >
< / li >
{ { - else } }
< li class = "page-item disabled" >
< a href = "#" aria - disabled = "true" aria - label = "Previous" class = "page-link" role = "button" > < span aria - hidden = "true" > & laquo ; < / span > < / a >
< / li >
{ { - end } }
{ { - $ slots := 5 } }
{ { - $ start := math . Max 1 ( sub . PageNumber ( math . Floor ( div $ slots 2 ) ) ) } }
{ { - $ end := math . Min . TotalPages ( sub ( add $ start $ slots ) 1 ) } }
{ { - if lt ( add ( sub $ end $ start ) 1 ) $ slots } }
{ { - $ start = math . Max 1 ( add ( sub $ end $ slots ) 1 ) } }
{ { - end } }
{ { - range $ k := seq $ start $ end } }
{ { - if eq $ . Paginator . PageNumber $ k } }
< li class = "page-item active" >
< a href = "#" aria - current = "page" aria - label = "Page {{ $k }}" class = "page-link" role = "button" > { { $ k } } < / a >
< / li >
{ { - else } }
< li class = "page-item" >
< a href = "{{ (index $.Paginator.Pagers (sub $k 1)).URL }}" aria - label = "Page {{ $k }}" class = "page-link" role = "button" > { { $ k } } < / a >
< / li >
{ { - end } }
{ { - end } }
{ { - with . Next } }
< li class = "page-item" >
< a href = "{{ .URL }}" aria - label = "Next" class = "page-link" role = "button" > < span aria - hidden = "true" > & raquo ; < / span > < / a >
< / li >
{ { - else } }
< li class = "page-item disabled" >
< a href = "#" aria - disabled = "true" aria - label = "Next" class = "page-link" role = "button" > < span aria - hidden = "true" > & raquo ; < / span > < / a >
< / li >
{ { - end } }
{ { - with . Last } }
{ { - if ne $ currentPageNumber . PageNumber } }
< li class = "page-item" >
< a href = "{{ .URL }}" aria - label = "Last" class = "page-link" role = "button" > < span aria - hidden = "true" > & raquo ; & raquo ; < / span > < / a >
< / li >
{ { - else } }
< li class = "page-item disabled" >
< a href = "#" aria - disabled = "true" aria - label = "Last" class = "page-link" role = "button" > < span aria - hidden = "true" > & raquo ; & raquo ; < / span > < / a >
< / li >
{ { - end } }
{ { - end } }
{ { - end } }
{ { - end - } }
{ { / * Format : terse
{ { /* --------------------------------------------------------------------- */ } }
{ { - define "partials/inline/pagination/terse" } }
{ { - with . Paginator } }
{ { - $ currentPageNumber := . PageNumber } }
{ { - with . First } }
{ { - if ne $ currentPageNumber . PageNumber } }
< li class = "page-item" >
< a href = "{{ .URL }}" aria - label = "First" class = "page-link" role = "button" > < span aria - hidden = "true" > & laquo ; & laquo ; < / span > < / a >
< / li >
{ { - end } }
{ { - end } }
{ { - with . Prev } }
< li class = "page-item" >
< a href = "{{ .URL }}" aria - label = "Previous" class = "page-link" role = "button" > < span aria - hidden = "true" > & laquo ; < / span > < / a >
< / li >
{ { - end } }
{ { - $ slots := 3 } }
{ { - $ start := math . Max 1 ( sub . PageNumber ( math . Floor ( div $ slots 2 ) ) ) } }
{ { - $ end := math . Min . TotalPages ( sub ( add $ start $ slots ) 1 ) } }
{ { - if lt ( add ( sub $ end $ start ) 1 ) $ slots } }
{ { - $ start = math . Max 1 ( add ( sub $ end $ slots ) 1 ) } }
{ { - end } }
{ { - range $ k := seq $ start $ end } }
{ { - if eq $ . Paginator . PageNumber $ k } }
< li class = "page-item active" >
< a href = "#" aria - current = "page" aria - label = "Page {{ $k }}" class = "page-link" role = "button" > { { $ k } } < / a >
< / li >
{ { - else } }
< li class = "page-item" >
< a href = "{{ (index $.Paginator.Pagers (sub $k 1)).URL }}" aria - label = "Page {{ $k }}" class = "page-link" role = "button" > { { $ k } } < / a >
< / li >
{ { - end } }
{ { - end } }
{ { - with . Next } }
< li class = "page-item" >
< a href = "{{ .URL }}" aria - label = "Next" class = "page-link" role = "button" > < span aria - hidden = "true" > & raquo ; < / span > < / a >
< / li >
{ { - end } }
{ { - with . Last } }
{ { - if ne $ currentPageNumber . PageNumber } }
< li class = "page-item" >
< a href = "{{ .URL }}" aria - label = "Last" class = "page-link" role = "button" > < span aria - hidden = "true" > & raquo ; & raquo ; < / span > < / a >
< / li >
{ { - end } }
{ { - end } }
{ { - end } }
{ { - end - } }
2019-08-01 08:05:20 -04:00
` } ,
2019-06-26 16:39:32 -04:00
{ ` schema.html ` , ` < meta itemprop = "name" content = "{{ .Title }}" >
2018-05-04 11:53:56 -04:00
< meta itemprop = "description" content = "{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" >
2014-12-09 13:33:55 -05:00
2021-02-18 11:52:32 -05:00
{ { - if . IsPage - } }
{ { - $ iso8601 := "2006-01-02T15:04:05-07:00" - } }
2021-06-20 15:30:41 -04:00
{ { with . PublishDate } } < meta itemprop = "datePublished" { { . Format $ iso8601 | printf "content=%q" | safeHTMLAttr } } / > { { end } }
{ { with . Lastmod } } < meta itemprop = "dateModified" { { . Format $ iso8601 | printf "content=%q" | safeHTMLAttr } } / > { { end } }
2018-05-04 11:53:56 -04:00
< meta itemprop = "wordCount" content = "{{ .WordCount }}" >
2021-02-18 11:52:32 -05:00
{ { - with $ . Params . images - } }
{ { - range first 6 . - } } < meta itemprop = "image" content = "{{ . | absURL }}" > { { end - } }
{ { - else - } }
2018-11-07 08:30:42 -05:00
{ { - $ images := $ . Resources . ByType "image" - } }
{ { - $ featured := $ images . GetMatch "*feature*" - } }
{ { - if not $ featured } } { { $ featured = $ images . GetMatch "{*cover*,*thumbnail*}" } } { { end - } }
{ { - with $ featured - } }
< meta itemprop = "image" content = "{{ $featured.Permalink }}" >
2021-02-18 11:52:32 -05:00
{ { - else - } }
{ { - with $ . Site . Params . images - } } < meta itemprop = "image" content = "{{ index . 0 | absURL }}" / > { { end - } }
{ { - end - } }
{ { - end - } }
2018-05-04 11:53:56 -04:00
< ! -- 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 }}" / >
2021-02-18 11:52:32 -05:00
{ { - end - } }
2020-07-19 09:24:44 -04:00
` } ,
2018-05-29 18:48:36 -04:00
{ ` shortcodes/__h_simple_assets.html ` , ` { { define "__h_simple_css" } } { { /* These template definitions are global. */ } }
{ { - if not ( . Page . Scratch . Get "__h_simple_css" ) - } }
{ { /* Only include once */ } }
{ { - . Page . Scratch . Set "__h_simple_css" true - } }
< style >
. __h_video {
position : relative ;
padding - bottom : 56.23 % ;
height : 0 ;
overflow : hidden ;
width : 100 % ;
background : # 000 ;
}
. __h_video img {
2018-05-30 02:43:08 -04:00
width : 100 % ;
2018-05-29 18:48:36 -04:00
height : auto ;
color : # 000 ;
}
. __h_video . play {
height : 72 px ;
width : 72 px ;
left : 50 % ;
top : 50 % ;
margin - left : - 36 px ;
margin - top : - 36 px ;
position : absolute ;
cursor : pointer ;
}
< / style >
{ { - end - } }
{ { - end - } }
{ { - define "__h_simple_icon_play" - } }
< svg version = "1" xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 61 61" > < circle cx = "30.5" cy = "30.5" r = "30.5" opacity = ".8" fill = "#000" > < / circle > < path d = "M25.3 19.2c-2.1-1.2-3.8-.2-3.8 2.2v18.1c0 2.4 1.7 3.4 3.8 2.2l16.6-9.1c2.1-1.2 2.1-3.2 0-4.4l-16.6-9z" fill = "#fff" > < / path > < / svg >
{ { - end - } }
` } ,
2018-10-02 13:56:31 -04:00
{ ` shortcodes/figure.html ` , ` < figure { { with . Get "class" } } class = "{{ . }}" { { end } } >
{ { - if . Get "link" - } }
< a href = "{{ .Get " link " }}" { { with . Get "target" } } target = "{{ . }}" { { end } } { { with . Get "rel" } } rel = "{{ . }}" { { end } } >
2021-04-09 22:03:01 -04:00
{ { - end - } }
2018-10-02 13:56:31 -04:00
< img src = "{{ .Get " src " }}"
{ { - if or ( . Get "alt" ) ( . Get "caption" ) } }
2018-10-02 15:23:10 -04:00
alt = "{{ with .Get " alt " }}{{ . }}{{ else }}{{ .Get " caption " | markdownify| plainify }}{{ end }}"
2018-10-02 13:56:31 -04:00
{ { - end - } }
{ { - with . Get "width" } } width = "{{ . }}" { { end - } }
{ { - with . Get "height" } } height = "{{ . }}" { { end - } }
2021-04-09 22:03:01 -04:00
/ > < ! -- Closing img tag -- >
2018-10-02 13:56:31 -04:00
{ { - if . Get "link" } } < / a > { { end - } }
{ { - if or ( or ( . Get "title" ) ( . Get "caption" ) ) ( . Get "attr" ) - } }
< figcaption >
{ { with ( . Get "title" ) - } }
< h4 > { { . } } < / h4 >
{ { - end - } }
{ { - if or ( . Get "caption" ) ( . Get "attr" ) - } } < p >
2018-10-02 15:23:10 -04:00
{ { - . Get "caption" | markdownify - } }
2018-11-27 12:15:55 -05:00
{ { - with . Get "attrlink" } }
2018-10-02 13:56:31 -04:00
< a href = "{{ . }}" >
{ { - end - } }
2018-10-02 15:23:10 -04:00
{ { - . Get "attr" | markdownify - } }
2018-10-02 13:56:31 -04:00
{ { - if . Get "attrlink" } } < / a > { { end } } < / p >
{ { - end } }
< / figcaption >
{ { - end } }
2018-05-04 11:53:56 -04:00
< / figure >
2018-10-02 13:56:31 -04:00
` } ,
2019-08-01 08:05:20 -04:00
{ ` shortcodes/gist.html ` , ` < script type = "application/javascript" src = "https://gist.github.com/{{ index .Params 0 }}/{{ index .Params 1 }}.js{{if len .Params | eq 3 }}?file={{ index .Params 2 }}{{end}}" > < / script >
` } ,
2018-05-04 11:53:56 -04:00
{ ` shortcodes/highlight.html ` , ` {{ if len .Params | eq 2 }} {{ highlight ( trim .Inner "\n\r" ) ( .Get 0 ) ( .Get 1 ) }} {{ else }} {{ highlight ( trim .Inner "\n\r" ) ( .Get 0 ) "" }} {{ end }} ` } ,
2021-06-07 06:45:00 -04:00
{ ` shortcodes/instagram.html ` , ` { { - $ pc := site . Config . Privacy . Instagram - } }
2018-05-20 14:00:29 -04:00
{ { - if not $ pc . Disable - } }
2021-06-07 06:45:00 -04:00
{ { $ accessToken := site . Config . Services . Instagram . AccessToken } }
{ { - if not $ accessToken - } }
2021-06-18 06:27:37 -04:00
{ { - erroridf "error-missing-instagram-accesstoken" "instagram shortcode: Missing config value for services.instagram.accessToken. This can be set in config.toml, but it is recommended to configure this via the HUGO_SERVICES_INSTAGRAM_ACCESSTOKEN OS environment variable. If you are using a Client Access Token, remember that you must combine it with your App ID using a pipe symbol (<APPID>|<CLIENTTOKEN>) otherwise the request will fail." - } }
2021-06-07 06:45:00 -04:00
{ { - else - } }
{ { - if $ pc . Simple - } }
{ { template "_internal/shortcodes/instagram_simple.html" . } }
{ { - else - } }
{ { $ id := . Get 0 } }
{ { $ hideCaption := cond ( eq ( . Get 1 ) "hidecaption" ) "1" "0" } }
{ { $ headers := dict "Authorization" ( printf "Bearer %s" $ accessToken ) } }
{ { with getJSON "https://graph.facebook.com/v8.0/instagram_oembed/?url=https://instagram.com/p/" $ id "/&hidecaption=" $ hideCaption $ headers } }
{ { . html | safeHTML } }
{ { end } }
{ { - end - } }
{ { - end - } }
2018-05-20 14:00:29 -04:00
{ { - end - } } ` } ,
2018-05-23 06:26:10 -04:00
{ ` shortcodes/instagram_simple.html ` , ` { { - $ pc := . Page . Site . Config . Privacy . Instagram - } }
{ { - $ sc := . Page . Site . Config . Services . Instagram - } }
{ { - if not $ pc . Disable - } }
2021-06-07 06:45:00 -04:00
{ { $ accessToken := site . Config . Services . Instagram . AccessToken } }
{ { - if not $ accessToken - } }
2021-06-18 06:27:37 -04:00
{ { - erroridf "error-missing-instagram-accesstoken" "instagram shortcode: Missing config value for services.instagram.accessToken. This can be set in config.toml, but it is recommended to configure this via the HUGO_SERVICES_INSTAGRAM_ACCESSTOKEN OS environment variable. If you are using a Client Access Token, remember that you must combine it with your App ID using a pipe symbol (<APPID>|<CLIENTTOKEN>) otherwise the request will fail." - } }
2021-06-07 06:45:00 -04:00
{ { - else - } }
{ { - $ id := . Get 0 - } }
{ { - $ headers := dict "Authorization" ( printf "Bearer %s" $ accessToken ) - } }
{ { - $ item := getJSON "https://graph.facebook.com/v8.0/instagram_oembed/?url=https://instagram.com/p/" $ id "/&maxwidth=640&omitscript=true" $ headers - } }
{ { - $ class1 := "__h_instagram" - } }
{ { - $ class2 := "s_instagram_simple" - } }
{ { - $ hideCaption := ( eq ( . Get 1 ) "hidecaption" ) - } }
{ { with $ item } }
{ { - $ mediaURL := printf "https://instagram.com/p/%s/" $ id | safeURL - } }
{ { - if not $ sc . DisableInlineCSS - } }
{ { template "__h_simple_instagram_css" $ } }
{ { - end - } }
< div class = "{{ $class1 }} {{ $class2 }} card" style = "max-width: {{ $item.thumbnail_width }}px" >
< div class = "card-header" >
< a href = "{{ $item.author_url | safeURL }}" class = "card-link" >
{ { $ item . author_name } }
< / a >
< / div >
< a href = "{{ $mediaURL }}" rel = "noopener" target = "_blank" >
< img class = "card-img-top img-fluid" src = "{{ $item.thumbnail_url }}" width = "{{ $item.thumbnail_width }}" height = "{{ $item.thumbnail_height }}" alt = "Instagram Image" >
< / a >
< div class = "card-body" >
{ { if not $ hideCaption } }
< p class = "card-text" >
< a href = "{{ $item.author_url | safeURL }}" class = "card-link" >
{ { $ item . author_name } }
< / a >
{ { $ item . title } }
< / p >
{ { end } }
< a href = "{{ $item.author_url | safeURL }}" class = "card-link" >
View More on Instagram
< / a >
< / div >
< / div >
{ { end } }
{ { - end - } }
2018-05-23 06:26:10 -04:00
{ { - end - } }
{ { define "__h_simple_instagram_css" } }
2021-06-07 06:45:00 -04:00
{ { if not ( . Page . Scratch . Get "__h_simple_instagram_css" ) } }
{ { /* Only include once */ } }
{ { . Page . Scratch . Set "__h_simple_instagram_css" true } }
< style type = "text/css" >
. __h_instagram . card {
2018-05-25 08:34:40 -04:00
font - family : - apple - system , BlinkMacSystemFont , "Segoe UI" , Roboto , Oxygen - Sans , Ubuntu , Cantarell , "Helvetica Neue" , sans - serif ;
font - size : 14 px ;
2018-05-23 06:26:10 -04:00
border : 1 px solid rgb ( 219 , 219 , 219 ) ;
padding : 0 ;
2021-06-07 06:45:00 -04:00
margin - top : 30 px ;
}
. __h_instagram . card . card - header , . __h_instagram . card . card - body {
2018-05-23 06:26:10 -04:00
padding : 10 px 10 px 10 px ;
2021-06-07 06:45:00 -04:00
}
. __h_instagram . card img {
2018-05-23 06:26:10 -04:00
width : 100 % ;
2021-06-07 06:45:00 -04:00
height : auto ;
}
< / style >
{ { end } }
2018-05-23 06:26:10 -04:00
{ { end } } ` } ,
2018-11-27 10:53:11 -05:00
{ ` shortcodes/param.html ` , ` { { - $ name := ( . Get 0 ) - } }
{ { - with $ name - } }
{ { - with ( $ . Page . Param . ) } } { { . } } { { else } } { { errorf "Param %q not found: %s" $ name $ . Position } } { { end - } }
{ { - else } } { { errorf "Missing param key: %s" $ . Position } } { { end - } } ` } ,
2018-11-01 06:28:30 -04:00
{ ` shortcodes/ref.html ` , ` {{ ref . .Params }} ` } ,
{ ` shortcodes/relref.html ` , ` {{ relref . .Params }} ` } ,
2018-05-24 05:24:38 -04:00
{ ` shortcodes/twitter.html ` , ` { { - $ pc := . Page . Site . Config . Privacy . Twitter - } }
2018-05-20 14:00:29 -04:00
{ { - if not $ pc . Disable - } }
2018-05-30 16:42:32 -04:00
{ { - if $ pc . Simple - } }
{ { template "_internal/shortcodes/twitter_simple.html" . } }
{ { - else - } }
2019-09-29 08:51:51 -04:00
{ { - $ url := printf "https://api.twitter.com/1/statuses/oembed.json?id=%v&dnt=%t" ( index . Params 0 ) $ pc . EnableDNT - } }
2018-05-24 07:03:23 -04:00
{ { - $ json := getJSON $ url - } }
2018-05-24 06:25:52 -04:00
{ { $ json . html | safeHTML } }
2018-05-30 16:42:32 -04:00
{ { - end - } }
2018-05-20 14:00:29 -04:00
{ { - end - } } ` } ,
2018-05-30 16:42:32 -04:00
{ ` shortcodes/twitter_simple.html ` , ` { { - $ pc := . Page . Site . Config . Privacy . Twitter - } }
{ { - $ sc := . Page . Site . Config . Services . Twitter - } }
{ { - if not $ pc . Disable - } }
{ { - $ id := . Get 0 - } }
{ { - $ json := getJSON "https://api.twitter.com/1/statuses/oembed.json?id=" $ id "&omit_script=true" - } }
{ { - if not $ sc . DisableInlineCSS - } }
{ { template "__h_simple_twitter_css" $ } }
{ { - end - } }
{ { $ json . html | safeHTML } }
{ { - end - } }
{ { define "__h_simple_twitter_css" } }
{ { if not ( . Page . Scratch . Get "__h_simple_twitter_css" ) } }
{ { /* Only include once */ } }
{ { . Page . Scratch . Set "__h_simple_twitter_css" true } }
< style type = "text/css" >
. twitter - tweet {
font : 14 px / 1.45 - apple - system , BlinkMacSystemFont , "Segoe UI" , Roboto , Oxygen - Sans , Ubuntu , Cantarell , "Helvetica Neue" , sans - serif ;
border - left : 4 px solid # 2 b7bb9 ;
padding - left : 1.5 em ;
color : # 555 ;
}
. twitter - tweet a {
color : # 2 b7bb9 ;
text - decoration : none ;
}
blockquote . twitter - tweet a : hover ,
blockquote . twitter - tweet a : focus {
text - decoration : underline ;
}
< / style >
{ { end } }
{ { end } } ` } ,
2018-05-22 08:00:36 -04:00
{ ` shortcodes/vimeo.html ` , ` { { - $ pc := . Page . Site . Config . Privacy . Vimeo - } }
2018-05-20 14:00:29 -04:00
{ { - if not $ pc . Disable - } }
2018-05-29 18:48:36 -04:00
{ { - if $ pc . Simple - } }
{ { template "_internal/shortcodes/vimeo_simple.html" . } }
{ { - else - } }
{ { if . IsNamedParams } } < div { { if . Get "class" } } class = "{{ .Get " class " }}" { { else } } style = "position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;" { { end } } >
2020-10-02 15:52:00 -04:00
< iframe src = "https://player.vimeo.com/video/{{ .Get " id " }}{{- if $pc.EnableDNT -}}?dnt=1{{- end -}}" { { if not ( . Get "class" ) } } style = "position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" { { end } } { { if . Get "title" } } title = "{{ .Get " title " }}" { { else } } title = "vimeo video" { { end } } webkitallowfullscreen mozallowfullscreen allowfullscreen > < / iframe >
< / div > { { else } }
2019-10-12 12:10:14 -04:00
< div { { if gt ( len . Params ) 1 } } class = "{{ .Get 1 }}" { { else } } style = "position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;" { { end } } >
2020-10-02 15:52:00 -04:00
< iframe src = "https://player.vimeo.com/video/{{ .Get 0 }}{{- if $pc.EnableDNT -}}?dnt=1{{- end -}}" { { if len . Params | eq 1 } } style = "position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" { { end } } { { if len . Params | eq 3 } } title = "{{ .Get 2 }}" { { else } } title = "vimeo video" { { end } } webkitallowfullscreen mozallowfullscreen allowfullscreen > < / iframe >
< / div >
2018-05-20 14:00:29 -04:00
{ { end } }
2018-05-29 18:48:36 -04:00
{ { - end - } }
2018-05-20 14:00:29 -04:00
{ { - end - } } ` } ,
2020-10-02 15:52:00 -04:00
{ ` shortcodes/vimeo_simple.html ` , ` { { - $ pc := . Page . Site . Config . Privacy . Vimeo - } }
{ { - if not $ pc . Disable - } }
{ { $ id := . Get "id" | default ( . Get 0 ) } }
{ { $ dnt := cond ( eq $ pc . EnableDNT true ) "?dnt=1" "" } }
{ { - $ item := getJSON ( print "https://vimeo.com/api/oembed.json?url=https://vimeo.com/" $ id $ dnt ) - } }
2018-05-29 18:48:36 -04:00
{ { $ class := . Get "class" | default ( . Get 1 ) } }
{ { $ hasClass := $ class } }
{ { $ class := $ class | default "__h_video" } }
{ { if not $ hasClass } }
{ { /* If class is set, assume the user wants to provide his own styles. */ } }
{ { template "__h_simple_css" $ } }
{ { end } }
{ { $ secondClass := "s_video_simple" } }
< div class = "{{ $secondClass }} {{ $class }}" >
{ { - with $ item } }
2019-09-21 04:08:47 -04:00
< a href = "{{ .provider_url }}{{ .video_id }}" rel = "noopener" target = "_blank" >
2018-05-29 18:48:36 -04:00
{ { $ thumb := . thumbnail_url } }
{ { $ original := $ thumb | replaceRE "(_.*\\.)" "." } }
< img src = "{{ $thumb }}" srcset = "{{ $thumb }} 1x, {{ $original }} 2x" alt = "{{ .title }}" >
< div class = "play" > { { template "__h_simple_icon_play" $ } } < / div > < / a > < / div >
{ { - end - } }
2020-10-02 15:52:00 -04:00
{ { - end - } } ` } ,
2018-05-22 08:00:36 -04:00
{ ` shortcodes/youtube.html ` , ` { { - $ pc := . Page . Site . Config . Privacy . YouTube - } }
2018-05-20 14:00:29 -04:00
{ { - if not $ pc . Disable - } }
2018-05-21 11:34:21 -04:00
{ { - $ ytHost := cond $ pc . PrivacyEnhanced "www.youtube-nocookie.com" "www.youtube.com" - } }
{ { - $ id := . Get "id" | default ( . Get 0 ) - } }
2020-12-02 06:53:53 -05:00
{ { - $ class := . Get "class" | default ( . Get 1 ) - } }
{ { - $ title := . Get "title" | default "YouTube Video" } }
2018-05-30 06:10:23 -04:00
< div { { with $ class } } class = "{{ . }}" { { else } } style = "position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;" { { end } } >
2020-12-02 06:53:53 -05:00
< iframe src = "https://{{ $ytHost }}/embed/{{ $id }}{{ with .Get " autoplay " }}{{ if eq . " true " }}?autoplay=1{{ end }}{{ end }}" { { if not $ class } } style = "position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" { { end } } allowfullscreen title = "{{ $title }}" > < / iframe >
2018-05-21 11:34:21 -04:00
< / div >
2020-12-16 06:20:02 -05:00
{ { end - } }
` } ,
2018-05-04 11:53:56 -04:00
{ ` twitter_cards.html ` , ` { { - with $ . Params . images - } }
2018-01-29 05:44:41 -05:00
< meta name = "twitter:card" content = "summary_large_image" / >
2018-02-08 16:32:49 -05:00
< meta name = "twitter:image" content = "{{ index . 0 | absURL }}" / >
2018-01-29 05:44:41 -05:00
{ { else - } }
{ { - $ images := $ . Resources . ByType "image" - } }
{ { - $ featured := $ images . GetMatch "*feature*" - } }
2019-11-26 14:11:53 -05:00
{ { - if not $ featured } } { { $ featured = $ images . GetMatch "{*cover*,*thumbnail*}" } } { { end - } }
2018-01-29 05:44:41 -05:00
{ { - with $ featured - } }
< meta name = "twitter:card" content = "summary_large_image" / >
2018-02-08 16:32:49 -05:00
< meta name = "twitter:image" content = "{{ $featured.Permalink }}" / >
2018-01-29 05:44:41 -05:00
{ { - else - } }
{ { - with $ . Site . Params . images - } }
2017-07-17 17:08:59 -04:00
< meta name = "twitter:card" content = "summary_large_image" / >
2018-02-08 16:32:49 -05:00
< meta name = "twitter:image" content = "{{ index . 0 | absURL }}" / >
2017-07-17 17:08:59 -04:00
{ { else - } }
< meta name = "twitter:card" content = "summary" / >
{ { - end - } }
2018-01-29 05:44:41 -05:00
{ { - end - } }
{ { - end } }
2014-12-09 13:33:55 -05:00
< meta name = "twitter:title" content = "{{ .Title }}" / >
2017-07-17 17:08:59 -04:00
< 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 - } }
2021-03-18 14:49:16 -04:00
` } ,
2014-04-09 17:45:34 -04:00
}