Commit 5fb27d5b authored by ak's avatar ak
Browse files

Merge branch 'master' into dev

parents b8ea0f61 c45711bf
......@@ -5,4 +5,4 @@
.config.yml
ak/*
my_lipsum/*
*.orig
\ No newline at end of file
*.orig
# Pictures and More
## How-to with Pykyll
- [Pictures and Embedds](#pictures-and-embedds)
- [Pictures and Links](#pictures-and-links)
- [Embedds](#embedds)
- [HTML5 Video](#html5-video)
- [Audio](#audio)
# Pictures and Embedds
---
## Pictures and Links
Regular picture is transformed into a `<figure>` HTML tag with `<figcaption>`
![Walk Way](walkway.jpg)
---
This may be a link, e.g. to the copyright holders page if not public domain
![[Link](https://wikipedia.org)](link-symbol.svg)
---
An Icon with `class="icon"`
[<img alt="Link Symbol" class="icon" src="link-symbol.svg">](https://wikipedia.org)
<<<<<<< HEAD
=======
---
>>>>>>> dev
Full width picture
<img alt="Full width picture" width=100% src="black-arrow.svg">
<<<<<<< HEAD
=======
---
>>>>>>> dev
Local pictures should just be dropped into the post folder. In this case: `.examples/picture_test`. The same goes for any other local content.
## Embedds
Basically all HTML Tags are simply passed through to index.html just like <em>this emphasized text</em>. To make a **bold** point, in a markdown document you can simply emphasize *like this*.
---
#### Youtube Embedded Video
This is an iframe pointing to youtube and thus breaking the no-js paradigm of this example web site.
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/-FBzpxJh5Ck" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Just look into `./examples/picture_test/index.md` to get the picture, e.g. [here](https://git.c3pb.de/ak/pykyll/-/blob/master/examples/picture_test/index.md).
<<<<<<< HEAD
As Pykyll comes as a no-JS website, i.e. without any client side scripting, using the HTML5 Video Tag seems the better option for a low traffic web site.
### HTML5 Video
This is a html `video` tag pointing to a file.
<video width="50%" controls src="https://cloud.harmlos.info/index.php/s/MZFPQf8Pk7g3xZp/download" type="video/ogg"></video>
=======
---
As Pykyll comes as a no-JS website, i.e. without any client side scripting, using the HTML5 Video Tag seems the better option for a low traffic web site.
### HTML5 Video
This is a html `video` tag pointing to a file.
<video width="50%" controls src="https://cloud.harmlos.info/index.php/s/MZFPQf8Pk7g3xZp/download" type="video/ogg"></video>
---
>>>>>>> dev
Here, the video is stored in a NextCloud instance. How to:
- Upload video
- Share public
- Append `/download` to the public share link
- In this document:
```html
<video width="50%" controls src="https://cloud.harmlos.info/index.php/s/MZFPQf8Pk7g3xZp/download" type="video/ogg"></video>
<<<<<<< HEAD
```
**Tip** Pykyll features screen recording. Just [i] [r] from the main menu. A `.webm` and a `.gif` are created and placed in the root folder.
### Audio
<audio controls src="audio.mp3" type="audio/mpeg"></audio>
```html
<audio controls src="audio.mp3" type="audio/mpeg"></audio>
```
=======
```
**Tip** Pykyll features screen recording. Just [i] [r] from the main menu. A `.webm` and a `.gif` are created and placed in the root folder.
---
### Audio
<audio controls src="audio.mp3" type="audio/mpeg"></audio>
```html
<audio controls src="audio.mp3" type="audio/mpeg"></audio>
```
>>>>>>> dev
A better way to embedd audio files may be implemented in a future version. Contributions welcome.
---
#### Pictures and More
How-to with Pykyll
How to work with pictures, audio, iframe and video embedds
\ No newline at end of file
......@@ -96,4 +96,18 @@ Here, the video is stored in a NextCloud instance. How to:
A better way to embedd audio files may be implemented in a future version. Contributions welcome.
---
### Audio
<audio controls src="audio.mp3" type="audio/mpeg"></audio>
```html
<audio controls src="audio.mp3" type="audio/mpeg"></audio>
```
A better way to embedd audio files may be implemented in a future version. Contributions welcome.
---
\ No newline at end of file
---
author: ak
check: true
description: How to work with pictures, audio, iframe and video embedds
<<<<<<< HEAD
edit: 2021-Mar-16 10:14
html: true
subtitle: How-to with Pykyll
title: Pictures and More
type: post
=======
edit: 2021-Mar-17 00:02
html: true
subtitle: How-to with Pykyll
title: Pictures and More
type: slides
>>>>>>> dev
---
# Pictures and Embedds
---
## Pictures and Links
Regular picture is transformed into a `<figure>` HTML tag with `<figcaption>`
![Walk Way](walkway.jpg)
---
This may be a link, e.g. to the copyright holders page if not public domain
![[Link](https://wikipedia.org)](link-symbol.svg)
---
An Icon with `class="icon"`
[<img alt="Link Symbol" class="icon" src="link-symbol.svg">](https://wikipedia.org)
<<<<<<< HEAD
=======
---
>>>>>>> dev
Full width picture
<img alt="Full width picture" width=100% src="black-arrow.svg">
<<<<<<< HEAD
=======
---
>>>>>>> dev
Local pictures should just be dropped into the post folder. In this case: `.examples/picture_test`. The same goes for any other local content.
## Embedds
Basically all HTML Tags are simply passed through to index.html just like <em>this emphasized text</em>. To make a **bold** point, in a markdown document you can simply emphasize *like this*.
---
#### Youtube Embedded Video
This is an iframe pointing to youtube and thus breaking the no-js paradigm of this example web site.
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/-FBzpxJh5Ck" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Just look into `./examples/picture_test/index.md` to get the picture, e.g. [here](https://git.c3pb.de/ak/pykyll/-/blob/master/examples/picture_test/index.md).
<<<<<<< HEAD
As Pykyll comes as a no-JS website, i.e. without any client side scripting, using the HTML5 Video Tag seems the better option for a low traffic web site.
### HTML5 Video
This is a html `video` tag pointing to a file.
<video width="50%" controls src="https://cloud.harmlos.info/index.php/s/MZFPQf8Pk7g3xZp/download" type="video/ogg"></video>
=======
---
As Pykyll comes as a no-JS website, i.e. without any client side scripting, using the HTML5 Video Tag seems the better option for a low traffic web site.
### HTML5 Video
This is a html `video` tag pointing to a file.
<video width="50%" controls src="https://cloud.harmlos.info/index.php/s/MZFPQf8Pk7g3xZp/download" type="video/ogg"></video>
---
>>>>>>> dev
Here, the video is stored in a NextCloud instance. How to:
- Upload video
- Share public
- Append `/download` to the public share link
- In this document:
```html
<video width="50%" controls src="https://cloud.harmlos.info/index.php/s/MZFPQf8Pk7g3xZp/download" type="video/ogg"></video>
```
**Tip** Pykyll features screen recording. Just [i] [r] from the main menu. A `.webm` and a `.gif` are created and placed in the root folder.
<<<<<<< HEAD
=======
---
>>>>>>> dev
### Audio
<audio controls src="audio.mp3" type="audio/mpeg"></audio>
```html
<audio controls src="audio.mp3" type="audio/mpeg"></audio>
```
A better way to embedd audio files may be implemented in a future version. Contributions welcome.
---
\ No newline at end of file
......@@ -92,22 +92,22 @@
<!-- HERECredits -->
<section>
<section id="credits" data-background="https://cloud.c3pb.de/s/wPGaWp4SPGCA86i/preview">
<h1 class="fragment fade-down" data-autoslide="2500" data-fragment-index="1">
<a href="https://git.c3pb.de/ak/epiphaneia" data-preview-link="false"><img src="https://ak.pages.c3pb.de/epiphaneia/cyber/documentation/fork.svg" width="33%"></a>
</h1>
<p class="fragment fade-down" data-autoslide="2500" data-fragment-index="1">
<a href="https://git.c3pb.de/ak/epiphaneia" data-preview-link="false"><img src="https://ak.pages.c3pb.de/epiphaneia/cyber/documentation/fork.svg" width="25%"></a>
</p>
<p class="fragment fade-in-then-out" data-autoslide="5000" data-fragment-index="2">&uarr; your own &darr;</p>
<h2>επιφανεια</h2>
<p>επιφανεια</p>
<div class="fragment fade-up" data-autoslide="2500">
<p class="fragment fade-out" data-autoslide="2500">this one hacked together by</p>
<p class="small fragment fade-out" data-autoslide="2500">this one hacked together by</p>
<img class="plain" src="https://cloud.c3pb.de/s/Zn47cKspfMiA3Gj/preview" alt="Default">
</div>
</section>
<section data-background="https://cloud.c3pb.de/s/wPGaWp4SPGCA86i/preview" data-autoslide="2500">
<section data-background="https://cloud.c3pb.de/s/4bbe5MpM7Wx8qk9/preview" data-autoslide="2500">
<p class="fragment fade-in-then-semi-out">a word by no sponsor</p>
<div class="fragment fade-up" data-autoslide="30000">
<a href="#lobby"><h1>Live long</h1>
<a href="#lobby"><h1>basically</h1>
<p>επιφανεια</p>
<h1>& prop her</h1>
<h1>your space</h1>
</a>
</div>
</section>
......
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta name="author" content="ak" />
<title>Pictures and More</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
color: #aaaaaa;
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
div.sourceCode
{ }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { } /* Import */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
</style>
<link rel="stylesheet" href="../../css/post.css" />
</head>
<body>
<header id="title-block-header">
<h1 class="title">Pictures and More</h1>
<p class="subtitle">How-to with Pykyll</p>
<p class="author">ak</p>
<<<<<<< HEAD
<p class="date">2021-Mar-16 10:14</p>
=======
<p class="date">2021-Mar-17 00:02</p>
>>>>>>> dev
</header>
<nav id="TOC" role="doc-toc">
<ul>
<li><a href="#pictures-and-embedds">Pictures and Embedds</a>
<ul>
<li><a href="#pictures-and-links">Pictures and Links</a></li>
<li><a href="#embedds">Embedds</a>
<ul>
<li><a href="#html5-video">HTML5 Video</a></li>
<li><a href="#audio">Audio</a></li>
</ul></li>
</ul></li>
</ul>
</nav>
<div id="BEFORE">
<a href="../../">Pykyll</a><a href="../">Docs</a> – Pictures and More
</div>
<p>
How to work with pictures, audio, iframe and video embedds
<<<<<<< HEAD
=======
</p>
<table>
<tr>
<td>
<a href="slides.html?changethis"><img class="icon" src="../../images/slides.svg"></a>
</td>
<td>
<h2>
<a href="slides.html?changethis">Pictures and More</a> 👀
</h2>
<p>
View, have others <a href="slides.html">view along</a> or read right here:
>>>>>>> dev
</p>
</td>
</tr>
</table>
<h1 id="pictures-and-embedds">Pictures and Embedds</h1>
<hr />
<h2 id="pictures-and-links">Pictures and Links</h2>
<p>Regular picture is transformed into a <code>&lt;figure&gt;</code> HTML tag with <code>&lt;figcaption&gt;</code></p>
<figure>
<img src="walkway.jpg" alt="" /><figcaption>Walk Way</figcaption>
</figure>
<hr />
<p>This may be a link, e.g. to the copyright holders page if not public domain</p>
<figure>
<img src="link-symbol.svg" alt="" /><figcaption><a href="https://wikipedia.org">Link</a></figcaption>
</figure>
<hr />
<p>An Icon with <code>class="icon"</code></p>
<p><a href="https://wikipedia.org"><img alt="Link Symbol" class="icon" src="link-symbol.svg"></a></p>
<<<<<<< HEAD
<p>Full width picture</p>
<p><img alt="Full width picture" width=100% src="black-arrow.svg"></p>
=======
<hr />
<p>Full width picture</p>
<p><img alt="Full width picture" width=100% src="black-arrow.svg"></p>
<hr />
>>>>>>> dev
<p>Local pictures should just be dropped into the post folder. In this case: <code>.examples/picture_test</code>. The same goes for any other local content.</p>
<h2 id="embedds">Embedds</h2>
<p>Basically all HTML Tags are simply passed through to index.html just like <em>this emphasized text</em>. To make a <strong>bold</strong> point, in a markdown document you can simply emphasize <em>like this</em>.</p>
<hr />
<h4 id="youtube-embedded-video">Youtube Embedded Video</h4>
<p>This is an iframe pointing to youtube and thus breaking the no-js paradigm of this example web site.</p>
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/-FBzpxJh5Ck" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>
<p>Just look into <code>./examples/picture_test/index.md</code> to get the picture, e.g. <a href="https://git.c3pb.de/ak/pykyll/-/blob/master/examples/picture_test/index.md">here</a>.</p>
<<<<<<< HEAD
=======
<hr />
>>>>>>> dev
<p>As Pykyll comes as a no-JS website, i.e. without any client side scripting, using the HTML5 Video Tag seems the better option for a low traffic web site.</p>
<h3 id="html5-video">HTML5 Video</h3>
<p>This is a html <code>video</code> tag pointing to a file.</p>
<video width="50%" controls src="https://cloud.harmlos.info/index.php/s/MZFPQf8Pk7g3xZp/download" type="video/ogg">
</video>
<<<<<<< HEAD
=======
<hr />
>>>>>>> dev
<p>Here, the video is stored in a NextCloud instance. How to:</p>
<ul>
<li>Upload video</li>
<li>Share public</li>
<li>Append <code>/download</code> to the public share link</li>
<li>In this document:</li>
</ul>
<div class="sourceCode" id="cb1"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true"></a></span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true"></a><span class="kw">&lt;video</span><span class="ot"> width=</span><span class="st">&quot;50%&quot;</span><span class="ot"> controls src=</span><span class="st">&quot;https://cloud.harmlos.info/index.php/s/MZFPQf8Pk7g3xZp/download&quot;</span><span class="ot"> type=</span><span class="st">&quot;video/ogg&quot;</span><span class="kw">&gt;&lt;/video&gt;</span></span></code></pre></div>
<p><strong>Tip</strong> Pykyll features screen recording. Just [i] [r] from the main menu. A <code>.webm</code> and a <code>.gif</code> are created and placed in the root folder.</p>
<<<<<<< HEAD
=======
<hr />
>>>>>>> dev
<h3 id="audio">Audio</h3>
<audio controls src="audio.mp3" type="audio/mpeg">
</audio>
<div class="sourceCode" id="cb2"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true"></a></span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true"></a><span class="kw">&lt;audio</span><span class="ot"> controls src=</span><span class="st">&quot;audio.mp3&quot;</span><span class="ot"> type=</span><span class="st">&quot;audio/mpeg&quot;</span><span class="kw">&gt;&lt;/audio&gt;</span></span></code></pre></div>
<p>A better way to embedd audio files may be implemented in a future version. Contributions welcome.</p>
<hr />
</body>
</html>
......@@ -92,22 +92,22 @@
<!-- HERECredits -->
<section>
<section id="credits" data-background="https://cloud.c3pb.de/s/wPGaWp4SPGCA86i/preview">
<h1 class="fragment fade-down" data-autoslide="2500" data-fragment-index="1">
<a href="https://git.c3pb.de/ak/epiphaneia" data-preview-link="false"><img src="https://ak.pages.c3pb.de/epiphaneia/../../epiphaneia/cyber/documentation/fork.svg" width="33%"></a>
</h1>
<p class="fragment fade-down" data-autoslide="2500" data-fragment-index="1">
<a href="https://git.c3pb.de/ak/epiphaneia" data-preview-link="false"><img src="https://ak.pages.c3pb.de/epiphaneia/../../epiphaneia/cyber/documentation/fork.svg" width="25%"></a>
</p>
<p class="fragment fade-in-then-out" data-autoslide="5000" data-fragment-index="2">&uarr; your own &darr;</p>
<h2>επιφανεια</h2>
<p>επιφανεια</p>
<div class="fragment fade-up" data-autoslide="2500">
<p class="fragment fade-out" data-autoslide="2500">this one hacked together by</p>
<p class="small fragment fade-out" data-autoslide="2500">this one hacked together by</p>
<img class="plain" src="https://cloud.c3pb.de/s/Zn47cKspfMiA3Gj/preview" alt="Default">
</div>
</section>
<section data-background="https://cloud.c3pb.de/s/wPGaWp4SPGCA86i/preview" data-autoslide="2500">
<section data-background="https://cloud.c3pb.de/s/4bbe5MpM7Wx8qk9/preview" data-autoslide="2500">
<p class="fragment fade-in-then-semi-out">a word by no sponsor</p>
<div class="fragment fade-up" data-autoslide="30000">
<a href="#lobby"><h1>Live long</h1>
<a href="#lobby"><h1>basically</h1>
<p>επιφανεια</p>
<h1>& prop her</h1>
<h1>your space</h1>
</a>
</div>
</section>
......
......@@ -92,22 +92,22 @@
<!-- HERECredits -->
<section>
<section id="credits" data-background="https://cloud.c3pb.de/s/wPGaWp4SPGCA86i/preview">
<h1 class="fragment fade-down" data-autoslide="2500" data-fragment-index="1">
<a href="https://git.c3pb.de/ak/epiphaneia" data-preview-link="false"><img src="https://ak.pages.c3pb.de/epiphaneia/../../epiphaneia/cyber/documentation/fork.svg" width="33%"></a>
</h1>
<p class="fragment fade-down" data-autoslide="2500" data-fragment-index="1">
<a href="https://git.c3pb.de/ak/epiphaneia" data-preview-link="false"><img src="https://ak.pages.c3pb.de/epiphaneia/../../epiphaneia/cyber/documentation/fork.svg" width="25%"></a>
</p>
<p class="fragment fade-in-then-out" data-autoslide="5000" data-fragment-index="2">&uarr; your own &darr;</p>
<h2>επιφανεια</h2>
<p>επιφανεια</p>
<div class="fragment fade-up" data-autoslide="2500">
<p class="fragment fade-out" data-autoslide="2500">this one hacked together by</p>
<p class="small fragment fade-out" data-autoslide="2500">this one hacked together by</p>
<img class="plain" src="https://cloud.c3pb.de/s/Zn47cKspfMiA3Gj/preview" alt="Default">
</div>
</section>
<section data-background="https://cloud.c3pb.de/s/wPGaWp4SPGCA86i/preview" data-autoslide="2500">
<section data-background="https://cloud.c3pb.de/s/4bbe5MpM7Wx8qk9/preview" data-autoslide="2500">
<p class="fragment fade-in-then-semi-out">a word by no sponsor</p>
<div class="fragment fade-up" data-autoslide="30000">
<a href="#lobby"><h1>Live long</h1>
<a href="#lobby"><h1>basically</h1>
<p>επιφανεια</p>
<h1>& prop her</h1>
<h1>your space</h1>
</a>
</div>
</section>
......
......@@ -92,22 +92,22 @@
<!-- HERECredits -->
<section>
<section id="credits" data-background="https://cloud.c3pb.de/s/wPGaWp4SPGCA86i/preview">
<h1 class="fragment fade-down" data-autoslide="2500" data-fragment-index="1">
<a href="https://git.c3pb.de/ak/epiphaneia" data-preview-link="false"><img src="https://ak.pages.c3pb.de/epiphaneia/../../epiphaneia/cyber/documentation/fork.svg" width="33%"></a>
</h1>
<p class="fragment fade-down" data-autoslide="2500" data-fragment-index="1">
<a href="https://git.c3pb.de/ak/epiphaneia" data-preview-link="false"><img src="https://ak.pages.c3pb.de/epiphaneia/../../epiphaneia/cyber/documentation/fork.svg" width="25%"></a>
</p>
<p class="fragment fade-in-then-out" data-autoslide="5000" data-fragment-index="2">&uarr; your own &darr;</p>
<h2>επιφανεια</h2>
<p>επιφανεια</p>
<div class="fragment fade-up" data-autoslide="2500">