|
|
|
|
@@ -7,7 +7,7 @@ tags: [writing]
|
|
|
|
|
render_with_liquid: false
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
This tutorial will guide you how to write a post in the _Chirpy_ template, and it's worth reading even if you've used Jekyll before, as many features require specific variables to be set.
|
|
|
|
|
This tutorial will guide you on how to write a post in the _Chirpy_ template, and it's worth reading even if you've used Jekyll before, as many features require specific variables to be set.
|
|
|
|
|
|
|
|
|
|
## Naming and Path
|
|
|
|
|
|
|
|
|
|
@@ -173,7 +173,7 @@ By default, the image is centered, but you can specify the position by using one
|
|
|
|
|
|
|
|
|
|
- **Normal position**
|
|
|
|
|
|
|
|
|
|
Image will be left aligned in below sample:
|
|
|
|
|
The image will be left aligned in the below sample:
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
|
{: .normal }
|
|
|
|
|
@@ -277,7 +277,7 @@ The following table shows how to get the two parameters we need in a given video
|
|
|
|
|
|
|
|
|
|
Spotify supports some additional parameters:
|
|
|
|
|
|
|
|
|
|
- `compact` - to display compact player instead (ex. `{% include embed/spotify.html id='3OuMIIFP5TxM8tLXMWYPGV' compact=1 %}`);
|
|
|
|
|
- `compact` - to display a compact player instead (ex. `{% include embed/spotify.html id='3OuMIIFP5TxM8tLXMWYPGV' compact=1 %}`);
|
|
|
|
|
- `dark` - to force dark theme (ex. `{% include embed/spotify.html id='3OuMIIFP5TxM8tLXMWYPGV' dark=1 %}`).
|
|
|
|
|
|
|
|
|
|
### Video Files
|
|
|
|
|
@@ -293,7 +293,7 @@ Where `URL` is a URL to a video file e.g. `/path/to/sample/video.mp4`.
|
|
|
|
|
You can also specify additional attributes for the embedded video file. Here is a full list of attributes allowed.
|
|
|
|
|
|
|
|
|
|
- `poster='/path/to/poster.png'` — poster image for a video that is shown while video is downloading
|
|
|
|
|
- `title='Text'` — title for a video that appears below the video and looks same as for images
|
|
|
|
|
- `title='Text'` — title for a video that appears below the video and looks the same as for images
|
|
|
|
|
- `autoplay=true` — video automatically begins to play back as soon as it can
|
|
|
|
|
- `loop=true` — automatically seek back to the start upon reaching the end of the video
|
|
|
|
|
- `muted=true` — audio will be initially silenced
|
|
|
|
|
@@ -326,7 +326,7 @@ Where `URL` is a URL to an audio file e.g. `/path/to/audio.mp3`.
|
|
|
|
|
|
|
|
|
|
You can also specify additional attributes for the embedded audio file. Here is a full list of attributes allowed.
|
|
|
|
|
|
|
|
|
|
- `title='Text'` — title for an audio that appears below the audio and looks same as for images
|
|
|
|
|
- `title='Text'` — title for an audio that appears below the audio and looks the same as for images
|
|
|
|
|
- `types` — specify the extensions of additional audio formats separated by `|`. Ensure these files exist in the same directory as your primary audio file.
|
|
|
|
|
|
|
|
|
|
Consider an example using all of the above:
|
|
|
|
|
|