pirati-web / jekyll-theme-pirati

Web desing of Czech Pirate Party
6 stars 17 forks source link

Articles with video content should have their listing images with 'video' icon watermark #10

Closed xaralis closed 6 years ago

xaralis commented 6 years ago

This allows people visiting the site to see what articles contain video right away.

It would also be nice if the video could take place of main image for this type of content.

xaralis commented 6 years ago

Now possible, when post gets youtubeVideoId property within it's front matter, such as:

---
date: 2018-06-11
category: blog
tags: tag1 tag2
layout: post
title: Článek s videem místo obrázku
author: Jmeno Prijmeni
authorId: jakub.pirat    # uid nekoho z _people (nepoviné)
image: posts/obrazek.u.tohoto.postu.jpg
youtubeVideoId: 5f0-nQLHHM4 # if youtubeVideoId is provided, it will replace the image as the main content
---

Implemented in 2d4b8a4

xaralis commented 6 years ago

image image