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
/** | |
* PubFilter | |
* | |
* Author: Bas Cornelissen, based on a script by Floris Roelofsen | |
* Copyright: Bas Cornelissen | |
* Date: 7 august 2021 | |
* Version 0.1 | |
*/ | |
/** |
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
{%- assign start = include.start %} | |
{%- assign end = include.end %} | |
{%- assign startMonth = start | date: '%b' %} | |
{%- assign endMonth = end | date: '%b' %} | |
{%- assign sameMonthStartFmt = include.same_month_start_fmt | default: '%d' -%} | |
{%- assign sameMonthEndFmt = include.same_month_end_fmt | default: "%d %b '%y" -%} | |
{%- if startMonth == endMonth -%} | |
<time datetime="{{ start | date: '%Y-%m-%d' }}"> | |
{{- start | date: sameMonthStartFmt -}} |
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
{%- comment -%} | |
_includes/get.liquid | |
{%- endcomment %} | |
{%- comment -%} | |
This file defines a Liquid function that outputs the value of a field | |
in an object if it exists, and otherwise tries to retrieve a default value | |
from a datafile. To put it differently, it retrieves a default value from | |
a datafile, but allows you to override the defaults. |