reorganized folder structure

This commit is contained in:
2026-03-25 12:28:35 -04:00
parent 0d4833f940
commit 1f0f0fd8fe
1426 changed files with 348 additions and 9678 deletions

View File

@@ -0,0 +1,29 @@
{{ if isset $.Site.Params "adsensepublisher" }}
{{ with .Params }}
{{ with .sticky }}<amp-sticky-ad layout="nodisplay">{{ end }}
<amp-ad type="adsense"
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
data-ad-client="{{ $.Site.Params.adsensePublisher }}"
{{ with .slot }}data-ad-slot="{{ . }}"{{ end }}>
</amp-ad>
{{ with .sticky }}</amp-sticky-ad>{{ end }}
{{ end }}
{{ else }}
{{ if isset . "context" }}
{{ $publisher := .context.Site.Params.adsensePublisher }}
{{ with .sticky }}<amp-sticky-ad layout="nodisplay">{{ end }}
<amp-ad type="adsense"
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
data-ad-client="{{ $publisher }}"
{{ with .slot }}data-ad-slot="{{ . }}"{{ end }}>
</amp-ad>
{{ with .sticky }}</amp-sticky-ad>{{ end }}
{{ end }}
{{ end }}

View File

@@ -0,0 +1,14 @@
<amp-anim src="{{ .src }}"
{{ if isset . "srcset" }}srcset="{{ range (split .srcset " ") }}{{ . }} {{ end }}"{{ end }}
{{ if isset . "alt" }}alt="{{ range (split .alt " ") }}{{ . }} {{ end }}"{{ end }}
{{ if isset . "attribution" }}attribution="{{ range (split .attribution " ") }}{{ . }} {{ end }}"{{ end }}
{{ if isset . "width" }}width="{{ .width }}"{{ end }}
{{ if isset . "height" }}height="{{ .height }}"{{ end }}
{{ if isset . "layout" }}layout="{{ .layout }}"{{ end }}>
{{ if isset . "placeholder" }}
<amp-img placeholder
{{ if isset . "width" }}width="{{ .width }}"{{ end }}
{{ if isset . "height" }}height="{{ .height }}"{{ end }}
{{ if isset . "placeholder" }}src="{{ .placeholder }}"{{ end }}></amp-img>
{{ end }}
</amp-anim>

View File

@@ -0,0 +1,6 @@
{{ if isset $.Site.Params "appleitunesapp" }}
<meta name="apple-itunes-app" content="{{ $.Site.Params.appleItunesApp }}">
{{ end }}
{{ if isset $.Site.Params "ampmanifest" }}
<link rel="amp-manifest" href="{{ $.Site.Params.ampManifest }}">
{{ end }}

View File

@@ -0,0 +1,10 @@
<amp-app-banner layout="nodisplay" id="{{ if isset . "id" }}{{ .id }}{{ else }}app-banner-id{{ end }}">
<amp-img src="{{ .src }}"
width="60" height="51">
</amp-img>
<h3>{{ .name }}</h3>
<p>{{ .description }}</p>
<div class="actions">
<button open-button>{{ if isset . "opentext" }}{{ .opentext }}{{ else }}Get the app{{ end }}</button>
</div>
</amp-app-banner>

View File

@@ -0,0 +1,14 @@
<amp-audio
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .src }}src="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .autoplay }}autoplay{{ end }}
{{ with .loop }}loop{{ end }}
{{ with .muted }}muted{{ end }}>
<div fallback>
<p>Your browser doesnt support HTML5 audio</p>
</div>
{{ with .mp3 }}<source type="audio/mpeg" src="{{ . }}">{{ end }}
{{ with .ogg }}<source type="audio/ogg" src="{{ . }}">{{ end }}
</amp-audio>

View File

@@ -0,0 +1,8 @@
<amp-brid-player
{{ with .partner }}data-partner="{{ . }}"{{ end }}
{{ with .player }}data-player="{{ . }}"{{ end }}
{{ with .video }}data-video="{{ . }}"{{ end }}
{{ with .playlist }}data-playlist="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}></amp-brid-player>

View File

@@ -0,0 +1,7 @@
<amp-brightcove
{{ with .account }}data-account="{{ . }}"{{ end }}
{{ with .video }}data-video-id="{{ . }}"{{ end }}
{{ with .player }}data-player-id="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}></amp-brightcove>

View File

@@ -0,0 +1 @@
<button {{ with .onTap }}on="tap:{{ . }}"{{ end }}>{{ with .text }}{{ . }}{{ end }}</button>

View File

@@ -0,0 +1,12 @@
<amp-dailymotion
{{ with .video }}data-videoid="{{ . }}"{{ end }}
{{ with .logo }}data-ui-logo="{{ . }}"{{ end }}
{{ with .info }}data-info="{{ . }}"{{ end }}
{{ with .highlight }}data-highlight="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .mute }}data-mute="{{ . }}"{{ end }}
{{ with .endscreen }}data-endscreen-enable="{{ . }}"{{ end }}
{{ with .sharing }}data-sharing="{{ . }}"{{ end }}
{{ with .start }}data-start="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}></amp-dailymotion>

View File

@@ -0,0 +1,31 @@
<amp-accordion>
<section>
<h2>Section 1</h2>
<p>Bunch of awesome content</p>
</section>
<section>
<h2>Section 2</h2>
<div>Bunch of awesome content</div>
</section>
<section>
<h2>Section 3</h2>
<amp-img src="https://placehold.it/400x600" width="300" height="300"></amp-img>
</section>
<section>
<h4>Section 3</h4>
<p>Bunch of content.</p>
</section>
<section>
<h4>Section 4</h4>
<amp-accordion class="nested-accordion">
<section>
<h4>Nested Section 2.1</h4>
<p>Bunch of content.</p>
</section>
<section>
<h4>Nested Section 2.2</h4>
<p>Bunch of more content.</p>
</section>
</amp-accordion>
</section>
</amp-accordion>

View File

@@ -0,0 +1,32 @@
<amp-carousel class="carousel2"
layout="responsive"
height="400"
width="500"
type="slides">
<div class="slide">
<amp-img src="https://placehold.it/400x600/ff0066/ffffff/Border_Collie.jpg"
layout="fill"></amp-img>
<div class="caption">
The Border Collie is a working and herding dog breed developed in the Anglo-Scottish border region for herding livestock, especially sheep. It was specifically bred for intelligence and obedience.
</div>
</div>
<div class="slide">
<amp-img src="https://placehold.it/400x600/ff0066/ffffff/Shetland_Sheepdog.jpg"
layout="fill"></amp-img>
<div class="caption">
The Shetland Sheepdog, often known as the Sheltie, is a breed of herding dog. Less favored nicknames are the Toy Collie and the Miniature Collie. They are small dogs, and come in a variety of colors, such as sable, tri-color, and blue merle. They are
very intelligent, vocal, excitable, energetic dogs who are always willing to please and work hard.
</div>
</div>
<div class="slide">
<amp-img src="https://placehold.it/400x600/ff0066/ffffff/Hovawart.jpg"
layout="fill"></amp-img>
<div class="caption">
The Hovawart is a medium to large size German dog breed. The name of the breed means "an estate guard dog", which is the original use for the breed. The breed originated in the Black Forest region and was first described in text and paintings in medieval
times.
</div>
</div>
</amp-carousel>

View File

@@ -0,0 +1,26 @@
<button class="hamburger" on='tap:sidebar1.toggle'>Toggle</button>
<button on="tap:sidebar1.open">Open</button>
<button on="tap:sidebar1.close">x</button>
<amp-sidebar id="sidebar1"
layout="nodisplay"
side="right">
<ul>
<li tabindex="0">
<a href="/">Home</a>
</li>
<li tabindex="0">
<a href="/">Nav 2</a>
</li>
<li tabindex="0">
<a href="/">Nav 7</a>
</li>
<li tabindex="0">
<a href="/">Nav 2</a>
</li>
<li tabindex="0" role="close" on="tap:sidebar1.close"> Close</li>
</ul>
</amp-sidebar>

View File

@@ -0,0 +1,6 @@
<amp-facebook
{{ with .href }}data-href="{{ . }}"{{ end }}
data-embed-as="video"
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}></amp-facebook>

View File

@@ -0,0 +1,5 @@
<amp-facebook
{{ with .href }}data-href="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}></amp-facebook>

View File

@@ -0,0 +1,8 @@
<amp-fx-flying-carpet {{ with .height }}height="{{ . }}"{{ end }}>
<amp-img {{ with .imgSrc }}src="{{ . }}"{{ end }}
{{ with .imgWidth }}width="{{ . }}"{{ end }}
{{ with .imgHeight }}height="{{ . }}"{{ end }}
{{ with .imgAlt }}alt="{{ range (split . " ") }}{{ . }} {{ end }}"{{ end }}
{{ with .imgSrcSet }}alt="{{ range (split . " ") }}{{ . }} {{ end }}"{{ end }}
{{ with .imgAttribution }}attribution="{{ . }}"{{ end }}></amp-img>
</amp-fx-flying-carpet>

View File

@@ -0,0 +1,6 @@
<amp-gfycat
{{ with .id }}data-gfyid="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}>
</amp-gfycat>

View File

@@ -0,0 +1,14 @@
{{ if isset $.Site.Params "googleanalytics" }}
<amp-analytics type="googleanalytics">
<script type="application/json">
{
"vars": {
"account": "{{ $.Site.Params.googleAnalytics }}"
},
"triggers": {{ .Site.Data.analytics.triggers }}
}
</script>
</amp-analytics>
{{ else }}
You must set a googleAnalytics UA-Code within the global config.toml Params.
{{ end }}

View File

@@ -0,0 +1,10 @@
<amp-google-vrview-image
{{ with .stereo }}stereo {{ end }}
{{ with .mono }}mono {{ end }}
{{ with .src }}src="{{ . }}"{{ end }}
{{ with .yaw }}yaw="{{ . }}"{{ end }}
{{ with .yawOnly }} yaw-only {{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}>
</amp-google-vrview-image>

View File

@@ -0,0 +1,27 @@
{{ if isset $.Site.Params "amp" }}
{{- range $.Site.Params.ampElements -}}
{{- if (index (index $.Site.Data "amp-modules") .) -}}
<script async custom-element="{{ . }}" src="{{ (index (index $.Site.Data "amp-modules") .) }}"></script>
{{- end }}
{{- end }}
{{ with .Params.amp.elements }}
{{ range . }}
{{ if in $.Site.Params.ampElements . }}
{{ else }}
{{- if (index (index $.Site.Data "amp-modules") .) -}}
<script async custom-element="{{ . }}" src="{{ (index (index $.Site.Data "amp-modules") .) }}"></script>
{{- end }}
{{ end }}
{{ end }}
{{ end }}
{{- $ampCorePath := index (index $.Site.Data "amp-modules") "amp-core" -}}
<script async src="{{ $ampCorePath }}"></script>
{{ if isset $.Site.Params "ampmanifest" }}
{{ partial "amp/app-banner-header" . }}
{{ end }}
{{ end }}

View File

@@ -0,0 +1,5 @@
<amp-hulu {{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .id }}data-eid="{{ . }}"{{ end }}>
</amp-hulu>

View File

@@ -0,0 +1,9 @@
<amp-iframe {{ with .src }}src="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .frameborder }}frameborder="{{ . }}"{{ end }}
{{ with .resizable }} resizable {{ end }}
{{ with .sandbox }}sandbox="{{ range (split . " ") }}{{ . }} {{ end }}"{{ end }}>
{{ with .overflow }}<div overflow tabindex=0 role=button aria-label="Read more">{{ . }}</div>{{ end }}
</amp-iframe>

View File

@@ -0,0 +1 @@
<amp-image-lightbox id="{{ with .id }}{{ . }}{{ else }}lightbox-example-please-set-id{{ end }}" layout="nodisplay"></amp-image-lightbox>

View File

@@ -0,0 +1,12 @@
<amp-img
{{ with .src }}src="{{ . }}"{{ end }}
{{ with .alt }}alt="{{ range (split . " ") }}{{ . }} {{ end }}"{{ end }}
{{ with .attribution }}attribution="{{ range (split . " ") }}{{ . }} {{ end }}"{{ end }}
{{ with .srcset }}srcset="{{ range (split . " ") }}{{ . }} {{ end }}"{{ end }}
{{ with .tabindex }}tabindex="{{ . }}"{{ end }}
{{ with .onTap }}on="tap:{{- . -}}"{{ end }}
{{ with .role }}role="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}>
</amp-img>

View File

@@ -0,0 +1,6 @@
<amp-instagram
{{ with .shortcode }}data-shortcode="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}>
</amp-instagram>

View File

@@ -0,0 +1,8 @@
<amp-jwplayer
{{ with .player }}data-player-id="{{ . }}"{{ end }}
{{ with .media }}data-media-id="{{ . }}"{{ end }}
{{ with .playlist }}data-playlist-id="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}>
</amp-jwplayer>

View File

@@ -0,0 +1,9 @@
<amp-kaltura-player
{{ with .uiconf }}data-uiconf="{{ . }}"{{ end }}
{{ with .partner }}data-partner="{{ . }}"{{ end }}
{{ with .entry }}data-entryid="{{ . }}"{{ end }}
{{ with .streamerType }}data-param-streamerType="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}>
</amp-kaltura-player>

View File

@@ -0,0 +1,9 @@
<amp-o2-player {{ with .pid }}data-pid="{{ . }}"{{ end }}
{{ with .bcid }}data-bcid="{{ . }}"{{ end }}
{{ with .vid }}data-vid="{{ . }}"{{ end }}
{{ with .bid }}data-bid="{{ . }}"{{ end }}
{{ with .macros }}data-macros="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}>
</amp-o2-player>

View File

@@ -0,0 +1,10 @@
<amp-pinterest {{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .profile }}data-href="{{ . }}"{{ end }}
{{ with .label }}data-label="{{ . }}"{{ end }}
{{ with .count }}data-count="{{ . }}"{{ end }}
{{ with .tall }}data-tall="{{ . }}"{{ end }}
{{ with .tall }}data-height="tall"{{ end }}
{{ with .round }}data-round="{{ . }}"{{ end }}
data-do="buttonFollow">
</amp-pinterest>

View File

@@ -0,0 +1,11 @@
<amp-pinterest {{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .url }}data-url="{{ . }}"{{ end }}
{{ with .media }}data-media="{{ . }}"{{ end }}
{{ with .description }}data-description="{{ . }}"{{ end }}
{{ with .count }}data-count="{{ . }}"{{ end }}
{{ with .tall }}data-tall="{{ . }}"{{ end }}
{{ with .tall }}data-height="tall"{{ end }}
{{ with .round }}data-round="{{ . }}"{{ end }}
data-do="buttonPin">
</amp-pinterest>

View File

@@ -0,0 +1,6 @@
<amp-pinterest {{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .url }}data-url="{{ . }}"{{ end }}
data-do="embedPin">
</amp-pinterest>

View File

@@ -0,0 +1 @@
{{ if isset . "src" }}<amp-pixel src="{{ .src }}"></amp-pixel>{{ end }}

View File

@@ -0,0 +1,10 @@
<amp-reddit
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
data-embedtype="comment"
{{ with .src }}data-src="{{ . }}"{{ end }}
{{ with .uuid }}data-uuid="{{ . }}"{{ end }}
{{ with .created }}data-embedcreated="{{ . }}"{{ end }}
{{ with .parent }}data-embedparent="{{ . }}"{{ end }}
{{ with .live }}data-embedlive="{{ . }}"{{ end }}></amp-reddit>

View File

@@ -0,0 +1,6 @@
<amp-reddit
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
data-embedtype="post"
{{ with .src }}data-src="{{ . }}"{{ end }}></amp-reddit>

View File

@@ -0,0 +1,32 @@
<div class="social">
{{ with .twitter }}
<amp-social-share type="twitter"
width="60"
height="44"> </amp-social-share>
{{ end }}
{{ with .gplus }}
<amp-social-share type="gplus"
width="60"
height="44"></amp-social-share>
{{ end }}
{{ with .email }}
<amp-social-share type="email"
width="60"
height="44"></amp-social-share>
{{ end }}
{{ with .pinterest }}
<amp-social-share type="pinterest"
width="60"
height="44"></amp-social-share>
{{ end }}
{{ with .linkedin }}
<amp-social-share type="linkedin"
width="60"
height="44"></amp-social-share>
{{ end }}
{{ with .facebook }}
<amp-social-share type="facebook"
width="60"
height="44"></amp-social-share>
{{ end }}
</div>

View File

@@ -0,0 +1,7 @@
<amp-soundcloud {{ with .height }}height="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
layout="fixed-height"
{{ with .track }}data-trackid="{{ . }}"{{ end }}
{{ with .secret }}data-secret-token="{{ . }}"{{ end }}
{{ with .visual }}data-visual="{{ . }}"{{ end }}
{{ with .color }}data-color="{{ . }}"{{ end }}></amp-soundcloud>

View File

@@ -0,0 +1,11 @@
<amp-springboard-player
{{ with .site }}data-site-id="{{ . }}"{{ end }}
{{ with .mode }}data-mode="{{ . }}"{{ end }}
{{ with .content }}data-content-id="{{ . }}"{{ end }}
{{ with .player }}data-player-id="{{ . }}"{{ end }}
{{ with .domain }}data-domain="{{ . }}"{{ end }}
{{ with .items }}data-items="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}>
</amp-springboard-player>

View File

@@ -0,0 +1,9 @@
<amp-twitter {{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .tweet }}data-tweetid="{{ . }}"{{ end }}
{{ with .cards }}data-cards="{{ . }}"{{ end }}>
<blockquote placeholder class="twitter-tweet" data-lang="en">
<p lang="en" dir="ltr">Twitter placeholder. Tweet is loading very soon...</p>&mdash; Optimistic Developer (@optdev) <a href="https://gohugohq.com">November 12, 2016</a>
</blockquote>
</amp-twitter>

View File

@@ -0,0 +1,5 @@
<amp-user-notification layout=nodisplay
id="{{ with .id }}{{ . }}{{ else }}amp-user-notification-id-please-set-id{{ end }}">
{{ with .message }}{{ . }}{{ end }}
<button on="tap:{{ with .id }}{{ . }}{{ else }}amp-user-notification-id-please-set-id{{ end }}.dismiss">{{ with .dismiss }}{{ . }}{{ end }}</button>
</amp-user-notification>

View File

@@ -0,0 +1,17 @@
<amp-video
{{ if isset . "src" }}src="{{ .src }}"{{ end }}
{{ if isset . "poster" }}poster="{{ .poster }}"{{ end }}
{{ if isset . "width" }}width="{{ .width }}"{{ end }}
{{ if isset . "height" }}height="{{ .height }}"{{ end }}
{{ if isset . "layout" }}layout="{{ .layout }}"{{ end }}
{{ if isset . "controls" }} controls {{ end }}
{{ if isset . "autoplay" }} autoplay {{ end }}
{{ if isset . "muted" }} muted {{ end }}
{{ if isset . "loop" }} loop {{ end }}>
<div fallback>
<p>Your browser doesn't support HTML5 video.</p>
</div>
{{ if isset . "source" }}
{{ .source | safeHTML }}
{{ end }}
</amp-video>

View File

@@ -0,0 +1,5 @@
<amp-vimeo
{{ with .video }}data-videoid="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}></amp-vimeo>

View File

@@ -0,0 +1,5 @@
<amp-vimeo
{{ with .vine }}data-vineid="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}></amp-vimeo>

View File

@@ -0,0 +1,21 @@
<amp-youtube
{{ with .video }}data-videoid="{{ . }}"{{ end }}
{{ with .autoplay }}autoplay{{ end }}
{{ with .controls }}data-param-controls="1"{{ end }}
{{ with .color }}data-param-color="{{ . }}"{{ end }}
{{ with .disablekb }}data-param-disablekb="{{ . }}"{{ end }}
{{ with .end }}data-param-end="{{ . }}"{{ end }}
{{ with .fs }}data-param-fs="{{ . }}"{{ end }}
{{ with .hl }}data-param-hl="{{ . }}"{{ end }}
{{ with .list }}data-param-list="{{ . }}"{{ end }}
{{ with .listType }}data-param-listType="{{ . }}"{{ end }}
{{ with .loop }}data-param-loop="{{ . }}"{{ end }}
{{ with .modestbranding }}data-param-modestbranding="{{ . }}"{{ end }}
{{ with .playlist }}data-param-playlist="{{ . }}"{{ end }}
{{ with .playsinline }}data-param-playsinline="{{ . }}"{{ end }}
{{ with .rel }}data-param-rel="{{ . }}"{{ end }}
{{ with .showinfo }}data-param-showinfo="{{ . }}"{{ end }}
{{ with .start }}data-param-start="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}></amp-youtube>

View File

@@ -0,0 +1,19 @@
{{ $siteUrl := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ $.Scratch.Add "sitePath" .Site.BaseURL }}
{{ $.Scratch.Add "siteBreadcrumbs" (slice (dict "url" .Site.BaseURL "name" "home" "position" 1 )) }}
{{ range $index, $element := split $siteUrl "/" }}
{{ $.Scratch.Add "sitePath" $element }}
{{ $.Scratch.Add "sitePath" "/" }}
{{ if ne $element "" }}
{{ $.Scratch.Add "siteBreadcrumbs" (slice (dict "url" ($.Scratch.Get "sitePath") "name" . "position" (add $index 2))) }}
{{ end }}
{{ end }}
<nav class="breadcrumbs">
<ul>
{{ range $.Scratch.Get "siteBreadcrumbs" }}
<li><a href="{{ .url }}">{{ .name }}</a></li>
{{ end }}
</ul>
</nav>

View File

@@ -0,0 +1,20 @@
{{ $pag := $.Paginator }}
{{ if gt $pag.TotalPages 1 }}
<nav class="pagination">
<ul>
{{ if $pag.HasPrev }}
<li><a href="{{ if $pag.HasPrev }}{{ $pag.Prev.URL }}{{ end }}" aria-label="Previous">prev</a></li>
{{ end }}
{{ range $pag.Pagers }}
<li {{ if eq . $pag }}class="active"{{ end }}><a href="{{ .URL }}">{{ .PageNumber }}</a></li>
{{ end }}
{{ if $pag.HasNext }}
<li><a href="{{ if $pag.HasNext }}{{ $pag.Next.URL }}{{ end }}" aria-label="Next">next</a></li>
{{ end }}
</ul>
</nav>
{{ end }}

View File

@@ -0,0 +1,8 @@
{{ if ne .Params.amp.enable false }}
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
<style amp-custom>
{{ partial "stylesheet" | safeCSS }}
</style>
{{ else }}
{{ partial "stylesheet.regular" . }}
{{ end }}

View File

@@ -0,0 +1,3 @@
{{ partial "seo/opengraph" . }}
{{ partial "seo/schema" . }}
{{ partial "seo/above-the-fold" . }}

View File

@@ -0,0 +1 @@
<!-- TODO: opengraph !-->

View File

@@ -0,0 +1,7 @@
{{ partial "seo/structured/website" . }}
{{ partial "seo/structured/organization" . }}
{{ partial "seo/structured/breadcrumb" . }}
{{ if eq .Params.structured.type "Article" }}{{ partial "seo/structured/article" . }}{{ end }}
{{ if eq .Params.structured.type "Course" }}{{ partial "seo/structured/course" . }}{{ end }}
{{ if eq .Params.structured.type "Recipe" }}{{ partial "seo/structured/recipe" . }}{{ end }}

View File

@@ -0,0 +1,37 @@
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Article",
"author": {
"name" : "{{ .Params.author.name }}"
},
"headline": "{{ .Title }}",
"description": "{{ .Params.description }}",
"wordCount": {{ .WordCount }},
"datePublished" : "{{ .PublishDate.Format "2006-01-02T15:04:05" }}",
"dateModified" : "{{ .Date.Format "2006-01-02T15:04:05" }}",
"image" : {
"@context": "http://schema.org",
"@type": "ImageObject",
"author": "{{ .Params.image.author }}",
"url": "{{ .Params.image.src }}",
"datePublished": "{{ .PublishDate.Format "2006-01-02T15:04:05" }}",
"name": "{{ .Params.image.title }}",
"height" : {{ .Params.image.height }},
"width" : {{ .Params.image.width }},
"license" : "{{ .Params.image.license_link }}",
"isBasedOn" : "{{ .Params.image.link }}"
},
"mainEntityOfPage" : "{{ .Permalink }}",
"publisher" : {
"@type": "Organization",
"name" : "{{ $.Site.Params.publisherName }}",
"logo" : {
"@type" : "ImageObject",
"url" : "{{ $.Site.Params.publisherLogo }}",
"height" : {{ $.Site.Params.publisherLogoHeight }},
"width" : {{ $.Site.Params.publisherLogoWidth }}
}
}
}
</script>

View File

@@ -0,0 +1,26 @@
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ $.Scratch.Add "path" .Site.BaseURL }}
{{ $.Scratch.Add "breadcrumb" (slice (dict "url" .Site.BaseURL "name" "home" "position" 1 )) }}
{{ range $index, $element := split $url "/" }}
{{ $.Scratch.Add "path" $element }}
{{ $.Scratch.Add "path" "/" }}
{{ if ne $element "" }}
{{ $.Scratch.Add "breadcrumb" (slice (dict "url" ($.Scratch.Get "path") "name" . "position" (add $index 2))) }}
{{ end }}
{{ end }}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{{ range $.Scratch.Get "breadcrumb" }}{{ if ne .position 1 }},{{ end }}{
"@type": "ListItem",
"position": {{ .position }},
"item": {
"@id": "{{ .url }}",
"name": "{{ .name }}"
}
}{{ end }}]
}
</script>

View File

@@ -0,0 +1,13 @@
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Course",
"name" : "{{ .Title }}",
"description": "{{ .Params.description }}",
"provider" : {
"@type": "Organization",
"name" : "{{ .Params.provider.name }}",
"sameAs" : "{{ .Params.provider.url }}"
}
}
</script>

View File

@@ -0,0 +1,12 @@
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"name": "{{ .Site.Params.organizationName }}",
"url": "{{ .Site.BaseURL }}"
{{ with .Site.Params.socialProfiles }}, "sameAs": {{ . }}{{ end }}
{{ with .Site.Params.organizationLogo }}, "logo": "{{ . }}"{{ end }}
{{ with .Site.Params.organizationAddress }}, "address": "{{ . }}"{{ end }}
{{ with .Site.Data.organization.contacts.contactPoint }}, "contactPoint": {{ . }}{{ end }}
}
</script>

View File

@@ -0,0 +1,54 @@
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Recipe",
"name": "{{ .Title }}",
"description": "{{ .Params.description }}",
"recipeCategory": "{{ .Params.recipe.category }}",
"author": {
"name" : "{{ .Params.author.name }}"
},
"description": "{{ .Params.description }}",
"datePublished" : "{{ .PublishDate.Format "2006-01-02T15:04:05" }}",
"dateModified" : "{{ .Date.Format "2006-01-02T15:04:05" }}",
"prepTime": "{{ .Params.recipe.prepTime }}",
"totalTime": "{{ .Params.recipe.totalTime }}",
"recipeYield": "{{ .Params.recipe.recipeYield }}",
"recipeIngredient": {{ .Params.recipe.ingredients }},
"recipeInstructions": {{ .Params.recipe.instructions }},
"aggregateRating" : {
"@context": "http://schema.org",
"@type": "AggregateRating",
"ratingValue": "{{ .Params.rating.value }}",
"reviewCount": "{{ .Params.rating.reviewCount }}",
"bestRating": "{{ .Params.rating.best }}",
"worstRating": "{{ .Params.rating.worst }}"
},
"image" : {
"@context": "http://schema.org",
"@type": "ImageObject",
"author": "{{ .Params.image.author }}",
"url": "{{ .Params.image.src }}",
"datePublished": "{{ .PublishDate.Format "2006-01-02T15:04:05" }}",
"name": "{{ .Params.image.title }}",
"height" : {{ .Params.image.height }},
"width" : {{ .Params.image.width }},
"license" : "{{ .Params.image.license_link }}",
"isBasedOn" : "{{ .Params.image.link }}"
},
"nutrition": {
"@type": "NutritionInformation",
"servingSize": "{{ .Params.nutrition.servingSize }}",
"calories": "{{ .Params.nutrition.calories }}",
"fatContent": "{{ .Params.nutrition.fatContent }}",
"carbohydrateContent": "{{ .Params.nutrition.carbohydrateContent }}",
"cholesterolContent": "{{ .Params.nutrition.cholesterolContent }}",
"fiberContent": "{{ .Params.nutrition.fiberContent }}",
"proteinContent": "{{ .Params.nutrition.proteinContent }}",
"saturatedFatContent": "{{ .Params.nutrition.saturatedFatContent }}",
"sodiumContent": "{{ .Params.nutrition.sodiumContent }}",
"sugarContent": "{{ .Params.nutrition.sugarContent }}",
"transFatContent": "{{ .Params.nutrition.transFatContent }}"
}
}
</script>

View File

@@ -0,0 +1,9 @@
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"name": "{{ .Site.Title }}",
{{ with .Site.Params.alternatePageName }}"alternateName": "{{ . }}",{{ end }}
"url": "{{ .Site.BaseURL }}"
}
</script>

View File

@@ -0,0 +1,7 @@
{{ if ne .Params.amp.enable false }}
{{ partial "amp/google-analytics" . }}
</body>
</html>
{{ else }}
{{ partial "structure/foot.no-amp" . }}
{{ end }}

View File

@@ -0,0 +1,37 @@
{{ with $.Site.Params.stylesheetRegular }}
<script>
(function() {
var styles = [{{ range . }}"{{- . -}}",{{ end }}];
window.setTimeout(function() {
styles.forEach(function(style) {
var styleNode = document.createElement('link');
styleNode.setAttribute('href', style);
styleNode.setAttribute('media', 'screen');
styleNode.setAttribute('rel', 'stylesheet');
styleNode.setAttribute('async', 'true');
styleNode.setAttribute('type', 'text/css');
document.head.appendChild(styleNode);
});
});
})();
</script>
{{ end }}
{{ with $.Site.Params.javascriptRegular }}
<script>
(function() {
var scripts = [{{ range . }}"{{- . -}}",{{ end }}];
window.setTimeout(function() {
scripts.forEach(function(script) {
var scriptNode = document.createElement('script');
scriptNode.setAttribute('src', script);
scriptNode.setAttribute('async', 'true');
document.body.appendChild(scriptNode);
});
});
})();
</script>
{{ end }}
</body>
</html>

View File

@@ -0,0 +1,38 @@
{{ if ne .Params.amp.enable false }}
<!DOCTYPE html>
<!--[if lt IE 8 ]><html {{ if isset $.Site.Params "amp" }}amp{{ end }} lang="en" class="no-js oldie"><![endif]-->
<!--[if IE 8 ]><html {{ if isset $.Site.Params "amp" }}amp{{ end }} lang="en" class="no-js ie8"><![endif]-->
<!--[if IE 9 ]><html {{ if isset $.Site.Params "amp" }}amp{{ end }} lang="en" class="no-js ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html {{ if isset $.Site.Params "amp" }}amp{{ end }} lang="{{ with $.Site.LanguageCode }}{{ . }}{{ else }}en{{ end }}" class="no-js"><!--<![endif]-->
<head>
<title>{{ .Title }}</title>
<meta charset="utf-8">
{{ partial "amp/header" . }}
<link rel="canonical" href="{{ .Permalink }}">
<link rel="icon" href="/favicon.png" type="image/png" sizes="144x144">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
{{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
<meta name="theme-color" content="{{ $.Site.Params.themeColor }}" />
{{ partial "seo/main" . }}
</head>
<body>
{{ if isset $.Site.Params "ampmanifest" }}
{{ with $.Site.Data.app.banner }}{{ partial "amp/app-banner" . }}{{ end }}
{{ end }}
{{ else }}
{{ partial "structure/head.no-amp" . }}
{{ end }}

View File

@@ -0,0 +1,27 @@
<!DOCTYPE html>
<!--[if lt IE 8 ]><html lang="en" class="no-js oldie"><![endif]-->
<!--[if IE 8 ]><html lang="en" class="no-js ie8"><![endif]-->
<!--[if IE 9 ]><html lang="en" class="no-js ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html lang="en" class="no-js"><!--<![endif]-->
<head>
<title>{{ .Title }}</title>
<meta charset="utf-8">
<link rel="canonical" href="{{ .Permalink }}">
<link rel="icon" href="/favicon.png" type="image/png" sizes="144x144">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
{{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
<meta name="theme-color" content="{{ $.Site.Params.themeColor }}" />
{{ partial "seo/main" . }}
</head>
<body>

View File

@@ -0,0 +1,12 @@
/**
* stylesheet.html
* ---------------
* This is the stylesheet that gets injected as a fallback if no layouts/partials/stylesheet.html file is available
* in your project file.
*
* For further details, please have a look at:
* https://gohugo-amp.gohugohq.com/install/
*
**/
body { background-color: #ffffff; }

View File

@@ -0,0 +1 @@
<!-- inject your link rel stylesheet here !-->

View File

@@ -0,0 +1 @@
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam cum ducimus eum ex explicabo iste itaque, laudantium nihil possimus, praesentium provident quidem, saepe tenetur! Autem distinctio non omnis ut voluptate?