reorganized folder structure
This commit is contained in:
@@ -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 }}
|
||||
@@ -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>
|
||||
@@ -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 }}
|
||||
@@ -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>
|
||||
@@ -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 doesn’t support HTML5 audio</p>
|
||||
</div>
|
||||
{{ with .mp3 }}<source type="audio/mpeg" src="{{ . }}">{{ end }}
|
||||
{{ with .ogg }}<source type="audio/ogg" src="{{ . }}">{{ end }}
|
||||
</amp-audio>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -0,0 +1 @@
|
||||
<button {{ with .onTap }}on="tap:{{ . }}"{{ end }}>{{ with .text }}{{ . }}{{ end }}</button>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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 }}
|
||||
@@ -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>
|
||||
@@ -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 }}
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -0,0 +1 @@
|
||||
<amp-image-lightbox id="{{ with .id }}{{ . }}{{ else }}lightbox-example-please-set-id{{ end }}" layout="nodisplay"></amp-image-lightbox>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -0,0 +1 @@
|
||||
{{ if isset . "src" }}<amp-pixel src="{{ .src }}"></amp-pixel>{{ end }}
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>— Optimistic Developer (@optdev) <a href="https://gohugohq.com">November 12, 2016</a>
|
||||
</blockquote>
|
||||
</amp-twitter>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user