Skip to content

Commit

Permalink
Added video support (#19)
Browse files Browse the repository at this point in the history
Added ability to add Youtube videos to the beginning of an entry.

Improved spacing between tags.

Fixed text in landing page.
  • Loading branch information
Bullrich authored May 16, 2024
1 parent 018f654 commit aa69b33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/_includes/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h3 class="text-4xl lg:text-6xl font-bold blog-title">{{ title }}</h3>
<div class="my-4">
{% for tag in tags %}
{% if tag !== 'posts' %}
<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"
<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"
href="/tags/{{ tag }}">
#{{ tag }}
</a>
Expand All @@ -18,6 +18,12 @@ <h3 class="text-4xl lg:text-6xl font-bold blog-title">{{ title }}</h3>
</div>

<div class="blog-content">
{% if video %}
<iframe width="560" height="315" src="{{ video }}" title="YouTube video player" frameborder="0"
allow="autoplay; clipboard-write; encrypted-media; picture-in-picture"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
{% endif %}

{{ content | safe }}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ Want to learn some niche coding tricks? Are you just looking to improve your dai

Then you are in the right place!

## New videos are being added to our Youtube channel daily.
## New videos are being added to our Youtube channel weekly.

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

0 comments on commit aa69b33

Please sign in to comment.