Skip to content

Commit aa69b33

Browse files
authored
Added video support (#19)
Added ability to add Youtube videos to the beginning of an entry. Improved spacing between tags. Fixed text in landing page.
1 parent 018f654 commit aa69b33

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/_includes/blog.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h3 class="text-4xl lg:text-6xl font-bold blog-title">{{ title }}</h3>
99
<div class="my-4">
1010
{% for tag in tags %}
1111
{% if tag !== 'posts' %}
12-
<a class="transition ease-in-out delay-50 tag bg-base-300 hover:bg-primary hover:text-primary-content rounded-xl py-1 px-3"
12+
<a class="transition ease-in-out delay-50 tag bg-base-300 hover:bg-primary hover:text-primary-content rounded-xl py-1 px-3 mr-2"
1313
href="/tags/{{ tag }}">
1414
#{{ tag }}
1515
</a>
@@ -18,6 +18,12 @@ <h3 class="text-4xl lg:text-6xl font-bold blog-title">{{ title }}</h3>
1818
</div>
1919

2020
<div class="blog-content">
21+
{% if video %}
22+
<iframe width="560" height="315" src="{{ video }}" title="YouTube video player" frameborder="0"
23+
allow="autoplay; clipboard-write; encrypted-media; picture-in-picture"
24+
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
25+
{% endif %}
26+
2127
{{ content | safe }}
2228
</div>
2329
</div>

src/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ Want to learn some niche coding tricks? Are you just looking to improve your dai
1010

1111
Then you are in the right place!
1212

13-
## New videos are being added to our Youtube channel daily.
13+
## New videos are being added to our Youtube channel weekly.
1414

1515
You can also subscribe to our newsletter to receive the latest news.

0 commit comments

Comments
 (0)