This file contains hidden or 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
--- | |
title: Blog | |
slug: ./blog | |
tags: [ main-nav ] | |
layout: layouts/base.liquid | |
pagination: | |
data: collections.blogs | |
size: 5 | |
alias: posts | |
--- |
This file contains hidden or 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
<?php | |
namespace Bolt\Extension\cdowdy\html5video; | |
use Bolt\Asset\File\JavaScript; | |
use Bolt\Asset\Snippet\Snippet; | |
use Bolt\Asset\Target; | |
use Bolt\Controller\Zone; | |
use Bolt\Extension\cdowdy\html5video\Field\HTML5VideoField; | |
use Bolt\Extension\SimpleExtension; |
This file contains hidden or 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
{% set publishDate = record.datepublish|date("U") %} | |
{% set today = "now"|date("U") %} | |
{% set sixMonthsAgo = today|date_modify("-180 day")|date("U") %} {# for testing #} | |
{% set pubPlusSix = publishDate|date_modify("+180 day")|date("U") %} | |
{% if today > pubPlusSix %} | |
<p>six months old</p> | |
% else %} | |
<p>less than six months old</p> | |
{% endif %} |
This file contains hidden or 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
svg { | |
box-sizing: border-box; | |
width: 100%; | |
height: 100%; | |
display: block; | |
} |