Skip to content

Commit 1d2c57a

Browse files
committed
Add content representation screencast
1 parent 088601d commit 1d2c57a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

content/docs/1_guide/6_templates/8_content-representations/guide.txt

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Intro: Content representations allow you to output the content in different form
66

77
----
88

9+
Screencast:
10+
11+
(screencast: https://www.youtube.com/watch?v=LoN2n1jjCuc title: Your content in different formats text: Be it JSON for your frontend, to use Kirby as an API or an automatic RSS feed.)
12+
13+
----
14+
915
Text:
1016

1117
## Creating a representation

site/snippets/kirbytext/screencast.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<article class="screencast mb-6 bg-black color-white grid">
22
<header class="p-6">
33
<a href="https://videos.getkirby.com" class="h6 block mb-3">Screencast</a>
4-
<h2 class="h2 color-white"><?= $title ?></h2>
4+
<h2 class="h2 color-white mb-1"><?= $title ?></h2>
55
<?php if ($text ?? null): ?>
66
<p class="text-base color-gray-400"><?= widont($text) ?></p>
77
<?php endif ?>

0 commit comments

Comments
 (0)