Use go-html-template code type

master
Will Faught 2 years ago
parent 03604fd3ad
commit d3628e7c14

@ -14,7 +14,7 @@ Paige provides a `paige/code` shortcode for displaying code.
Code:
```go-text-template
```go-html-template
{{</* paige/code */>}}
q = 'q = %r; print(q %% q)'; print(q % q)
{{</* /paige/code */>}}
@ -30,7 +30,7 @@ q = 'q = %r; print(q %% q)'; print(q % q)
Code:
```go-text-template
```go-html-template
{{</* paige/code */>}}
---
- --
@ -82,7 +82,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/code lang="c" */>}}
float Q_rsqrt( float number )
{
@ -127,7 +127,7 @@ float Q_rsqrt( float number )
Code:
```go-text-template
```go-html-template
{{</* paige/code options="linenos=true,hl_lines=10" */>}}
float Q_rsqrt( float number )
{
@ -171,7 +171,7 @@ float Q_rsqrt( float number )
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="Quine" */>}}
{{</* paige/code options="linenos=true,hl_lines=10" */>}}
q = 'q = %r; print(q %% q)'; print(q % q)

@ -14,7 +14,7 @@ Paige provides a `paige/email` shortcode that hides e-mail addresses from robots
Code:
```go-text-template
```go-html-template
{{</* paige/email address="example@example.com" text="E-mail me" */>}}
```

@ -14,7 +14,7 @@ Paige provides a `paige/figure` shortcode for displaying content.
Code:
```go-text-template
```go-html-template
{{</* paige/figure */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.
{{</* /paige/figure */>}}
@ -30,7 +30,7 @@ Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="Hickory Dickory Dock" */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.
{{</* /paige/figure */>}}
@ -46,7 +46,7 @@ Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br
Code:
```go-text-template
```go-html-template
{{</* paige/figure float="start" */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.
{{</* /paige/figure */>}}
@ -68,7 +68,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
Code:
```go-text-template
```go-html-template
{{</* paige/figure float="end" */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.
{{</* /paige/figure */>}}
@ -90,7 +90,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
Code:
```go-text-template
```go-html-template
{{</* paige/figure float="start" */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.
{{</* /paige/figure */>}}
@ -120,7 +120,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
Code:
```go-text-template
```go-html-template
{{</* paige/figure float="start" */>}}
{{</* paige/image src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" width="20rem" */>}}
{{</* /paige/figure */>}}
@ -142,7 +142,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
Code:
```go-text-template
```go-html-template
{{</* paige/figure float="end" */>}}
{{</* paige/image src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" width="20rem" */>}}
{{</* /paige/figure */>}}
@ -164,7 +164,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
Code:
```go-text-template
```go-html-template
{{</* paige/figure float="start" */>}}
{{</* paige/image src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" width="20rem" */>}}
{{</* /paige/figure */>}}
@ -194,7 +194,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="Hickory Dickory Dock" horizontal="start" */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.
{{</* /paige/figure */>}}
@ -226,7 +226,7 @@ Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="Hickory Dickory Dock" maxwidth="5rem" */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.
{{</* /paige/figure */>}}
@ -242,7 +242,7 @@ Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="Hickory Dickory Dock" maxwidth="20rem" */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.
{{</* /paige/figure */>}}
@ -258,7 +258,7 @@ Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="Hickory Dickory Dock" number=7 */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.
{{</* /paige/figure */>}}
@ -274,7 +274,7 @@ Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="Hickory Dickory Dock" number="G" */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.
{{</* /paige/figure */>}}
@ -290,7 +290,7 @@ Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="Hickory Dickory Dock" numbered=true */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.
{{</* /paige/figure */>}}
@ -322,7 +322,7 @@ Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br
Code:
```go-text-template
```go-html-template
<div class="column-gap-3 d-flex justify-content-between" style="height: 20rem">
{{</* paige/figure caption="Hickory Dickory Dock" vertical="start" */>}}
@ -362,7 +362,7 @@ Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="Hickory Dickory Dock" width="5rem" */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.
{{</* /paige/figure */>}}
@ -378,7 +378,7 @@ Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="Hickory Dickory Dock" width="20rem" */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.
{{</* /paige/figure */>}}

@ -14,7 +14,7 @@ Paige provides a `paige/gallery` shortcode for displaying a list of images.
Code:
```go-text-template
```go-html-template
{{</* paige/gallery align="start" */>}}
{{</* paige/image height="20rem" src="1-2.jpg" */>}}
{{</* paige/image height="10rem" src="2-2.jpg" */>}}
@ -32,7 +32,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery align="center" */>}}
{{</* paige/image height="20rem" src="1-2.jpg" */>}}
{{</* paige/image height="10rem" src="2-2.jpg" */>}}
@ -50,7 +50,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery align="end" */>}}
{{</* paige/image height="20rem" src="1-2.jpg" */>}}
{{</* paige/image height="10rem" src="2-2.jpg" */>}}
@ -68,7 +68,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery fetchpriority="high" images="*-2.jpg" /*/>}}
```
@ -80,7 +80,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery fetchpriority="low" images="*-2.jpg" /*/>}}
```
@ -92,7 +92,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery height="10rem" images="*-2.jpg" /*/>}}
```
@ -104,7 +104,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery height="20rem" images="*-2.jpg" /*/>}}
```
@ -116,7 +116,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="1-2.jpg" /*/>}}
```
@ -128,7 +128,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" /*/>}}
```
@ -140,7 +140,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" justify="start" /*/>}}
```
@ -152,7 +152,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" justify="center" /*/>}}
```
@ -164,7 +164,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" justify="end" /*/>}}
```
@ -176,7 +176,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" linked="unprocessed" /*/>}}
```
@ -188,7 +188,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" linked="default" /*/>}}
```
@ -200,7 +200,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" linked="r180" /*/>}}
```
@ -212,7 +212,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" loading="eager" /*/>}}
```
@ -224,7 +224,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" loading="lazy" /*/>}}
```
@ -236,7 +236,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" maxheight="10rem" /*/>}}
```
@ -248,7 +248,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" maxheight="20rem" /*/>}}
```
@ -260,7 +260,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" maxwidth="10rem" /*/>}}
```
@ -272,7 +272,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" maxwidth="20rem" /*/>}}
```
@ -284,7 +284,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" process="default" /*/>}}
```
@ -296,7 +296,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" process="300x300 center crop lanczos picture r180 webp" /*/>}}
```
@ -308,7 +308,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*.jpg" type="grid" /*/>}}
```
@ -320,7 +320,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*.jpg" maxheight="10rem" type="rows" /*/>}}
```
@ -332,7 +332,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" width="10rem" /*/>}}
```
@ -344,7 +344,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/gallery images="*-2.jpg" width="20rem" /*/>}}
```
@ -356,7 +356,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="Gallery" */>}}
{{</* paige/gallery */>}}
{{</* paige/figure caption="Image 1" */>}}

@ -14,7 +14,7 @@ Paige provides a `paige/icon` shortcode for displaying a web font icon.
Code:
```go-text-template
```go-html-template
<p class="display-1">Icon: {{</* paige/icon class="bi bi-github" */>}}</p>
```
@ -26,7 +26,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p class="display-1">Icon: {{</* paige/icon class="bi bi-github" name="GitHub" */>}}</p>
```
@ -38,7 +38,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p class="display-1">Icon: {{</* paige/icon class="bi bi-github" url="https://github.com/willfaught/paige" */>}}</p>
```

@ -14,7 +14,7 @@ Paige provides a `paige/image` shortcode for displaying an image.
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image alt="Landscape" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" */>}}
</p>
@ -30,7 +30,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image class="rounded-5" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" */>}}
</p>
@ -46,7 +46,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image fetchpriority="high" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" */>}}
</p>
@ -62,7 +62,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image height="10rem" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" */>}}
</p>
@ -78,7 +78,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image link="https://github.com/willfaught/paige" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" */>}}
</p>
@ -94,7 +94,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image linked="unprocessed" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" */>}}
</p>
@ -110,7 +110,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image linked="default" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" */>}}
</p>
@ -126,7 +126,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image linked="r180" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" */>}}
</p>
@ -142,7 +142,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image loading="eager" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" */>}}
</p>
@ -158,7 +158,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image maxheight="10rem" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" */>}}
</p>
@ -174,7 +174,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image maxwidth="10rem" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" */>}}
</p>
@ -190,7 +190,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image process="default" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" */>}}
</p>
@ -206,7 +206,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image process="550x lanczos picture resize webp" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" */>}}
</p>
@ -222,7 +222,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" */>}}
</p>
@ -238,7 +238,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" title="Landscape" */>}}
</p>
@ -254,7 +254,7 @@ Result:
Code:
```go-text-template
```go-html-template
<p>
{{</* paige/image src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" width="50%" */>}}
</p>
@ -270,7 +270,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="Landscape" */>}}
{{</* paige/image src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" */>}}
{{</* /paige/figure */>}}

@ -14,7 +14,7 @@ Paige provides a `paige/quote` shortcode for displaying a quotation.
Code:
```go-text-template
```go-html-template
{{</* paige/quote */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.
{{</* /paige/quote */>}}
@ -30,7 +30,7 @@ Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br
Code:
```go-text-template
```go-html-template
{{</* paige/quote cite="Hickory Dickory Dock" */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.
{{</* /paige/quote */>}}
@ -46,7 +46,7 @@ Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="Hickory Dickory Dock" */>}}
{{</* paige/quote */>}}
Hickory dickory dock.<br>The mouse ran up the clock.<br>The clock struck one,<br>The mouse ran down,<br>Hickory dickory dock.

@ -14,7 +14,7 @@ Paige provides a `paige/vimeo` shortcode for playing Vimeo videos.
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo "644036051" */>}}
```
@ -26,7 +26,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo autopause=false video="644036051" */>}}
```
@ -38,7 +38,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo autoplay=true video="644036051" */>}}
```
@ -50,7 +50,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo background=true video="644036051" */>}}
```
@ -62,7 +62,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo byline=false video="644036051" */>}}
```
@ -74,7 +74,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo color="ff0000" video="644036051" */>}}
```
@ -86,7 +86,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo controls=false video="644036051" */>}}
```
@ -98,7 +98,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo description="My description" video="644036051" */>}}
```
@ -110,7 +110,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo dnt=true video="644036051" */>}}
```
@ -122,7 +122,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo fullscreen=false video="644036051" */>}}
```
@ -134,7 +134,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo height="10rem" video="644036051" */>}}
```
@ -146,7 +146,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo keyboard=false video="644036051" */>}}
```
@ -158,7 +158,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo loop=true video="644036051" */>}}
```
@ -170,7 +170,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo maxheight="10rem" video="644036051" */>}}
```
@ -182,7 +182,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo maxwidth="50%" video="644036051" */>}}
```
@ -194,7 +194,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo muted=true video="644036051" */>}}
```
@ -206,7 +206,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo pip=true video="644036051" */>}}
```
@ -218,7 +218,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo playsinline=false video="644036051" */>}}
```
@ -230,7 +230,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo portrait=false video="644036051" */>}}
```
@ -242,7 +242,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo quality="720p" video="644036051" */>}}
```
@ -254,7 +254,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo speed=true video="644036051" */>}}
```
@ -266,7 +266,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo texttrack=true video="644036051" */>}}
```
@ -278,7 +278,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo time="1m2s" video="644036051" */>}}
```
@ -290,7 +290,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo title=false video="644036051" */>}}
```
@ -302,7 +302,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo transparent=false video="644036051" */>}}
```
@ -314,7 +314,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo video="644036051" */>}}
```
@ -326,7 +326,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/vimeo video="644036051" width="50%" */>}}
```
@ -338,7 +338,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="Vimeo" */>}}
{{</* paige/vimeo video="644036051" */>}}
{{</* /paige/figure */>}}

@ -14,7 +14,7 @@ Paige provides a `paige/youtube` shortcode for playing YouTube videos.
Code:
```go-text-template
```go-html-template
{{</* paige/youtube "dQw4w9WgXcQ" */>}}
```
@ -26,7 +26,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/youtube autoplay=true video="dQw4w9WgXcQ" */>}}
```
@ -38,7 +38,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/youtube controls=true video="dQw4w9WgXcQ" */>}}
```
@ -50,7 +50,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/youtube description="My title" video="dQw4w9WgXcQ" */>}}
```
@ -62,7 +62,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/youtube end=20 video="dQw4w9WgXcQ" */>}}
```
@ -74,7 +74,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/youtube fullscreen=false video="dQw4w9WgXcQ" */>}}
```
@ -86,7 +86,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/youtube height="10rem" video="dQw4w9WgXcQ" */>}}
```
@ -98,7 +98,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/youtube list="PLOstxpSiJGlClyRnCiubdXJcUvwgHcrVH" video="dQw4w9WgXcQ" */>}}
```
@ -110,7 +110,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/youtube loop=true video="dQw4w9WgXcQ" */>}}
```
@ -122,7 +122,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/youtube maxheight="10rem" video="dQw4w9WgXcQ" */>}}
```
@ -134,7 +134,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/youtube maxwidth="50%" video="dQw4w9WgXcQ" */>}}
```
@ -146,7 +146,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/youtube mute=true video="dQw4w9WgXcQ" */>}}
```
@ -158,7 +158,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/youtube start=10 video="dQw4w9WgXcQ" */>}}
```
@ -170,7 +170,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/youtube video="dQw4w9WgXcQ" */>}}
```
@ -182,7 +182,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/youtube video="dQw4w9WgXcQ" width="50%" */>}}
```
@ -194,7 +194,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="YouTube" */>}}
{{</* paige/youtube video="dQw4w9WgXcQ" */>}}
{{</* /paige/figure */>}}

Loading…
Cancel
Save