-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ (podcasts): enhance podcast content with YouTube integration and mo…
…dularize layout Update podcast content to include YouTube video integration by adding `youtube_video_id` to the parameters and using it in iframes. This enhances the user experience by allowing video playback directly on the site. Modularize the podcast layout by creating a new partial `podcastB.html` to improve code maintainability and reusability. Refactor the podcast list layout to use the new partial, reducing repetition and simplifying the HTML structure. These changes aim to improve the site's functionality and maintainability.
- Loading branch information
Showing
6 changed files
with
43 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<div class="d-flex flex-column gap-3 h-100"> | ||
<div class="position-relative h-100"> | ||
<a href="{{ .Permalink }}" class="stretched-link" style="z-index: 100;"></a> | ||
<!-- Stretched link --> | ||
<div class="overlay rounded-3"></div> | ||
{{ if .Params.preview }} | ||
<img src="{{ .Params.preview | relURL }}" alt="image" class="img-fluid rounded-3" /> | ||
{{ else }} | ||
<img src="{{ "/image/dummy-img-600x500.jpg" | relURL }}" alt="image" class="img-fluid rounded-3" /> | ||
{{ end }} | ||
<div class="position-absolute bottom-0 start-0 w-100 d-flex flex-column px-4 py-3"> | ||
<h5 class="font-1 fw-bold lh-1">{{ .Title }}</h5> | ||
<div class="d-flex flex-row justify-content-center gap-5"> | ||
<div class="d-flex flex-row align-items-center gap-2"> | ||
<i class="fa-regular fa-clock accent-color"></i>{{- partial "duration-in-hours.html" .Params.duration }} | ||
</div> | ||
<div class="d-flex flex-row align-items-center gap-2"> | ||
<i class="fa-solid fa-calendar-days accent-color"></i> | ||
{{ .Date | time.Format "2 January 2006" }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="modal fade bg-overlay" id="e119" tabindex="-1" aria-hidden="true"> | ||
<div class="modal-dialog modal-dialog-centered modal-lg"> | ||
<div class="modal-content bg-dark-color"> | ||
<iframe class="ifr-video" src="https://www.youtube.com/embed/{{ .Params.youtube_video_id }}?autoplay=0"></iframe> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters