From 32fd5f398f76420aecfb6822f2dc3caddbe66469 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 28 Dec 2020 09:54:04 -0300 Subject: Add direct-video flag --- _layouts/default.html | 8 ++++---- _layouts/post.html | 6 ++++++ default.nix | 5 +++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index dafb042..a553db6 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -9,10 +9,10 @@ - {% if site.podcast %} + {% if site.flags.podcast %} {% endif %} - {% if site.screencast %} + {% if site.flags.screencast %} {% endif %} @@ -48,10 +48,10 @@ {{ site.t.tils.name[page.lang] }} {{ site.t.slides.name[page.lang] }} {{ site.t.pastebins.name[page.lang] }} - {% if site.podcast %} + {% if site.flags.podcast %} {{ site.t.podcasts.name[page.lang] }} {% endif %} - {% if site.screencast %} + {% if site.flags.screencast %} {{ site.t.screencasts.name[page.lang] }} {% endif %} {{ site.t.about.name[page.lang] }} diff --git a/_layouts/post.html b/_layouts/post.html index 02f5bcb..1ba6d6e 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -29,6 +29,12 @@ layout: default {% endif %} {% if page.video %} + {% if site.flags.direct-video %} + + {% endif %} +