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
{parent.uri ?? section.handle}/{slug} |
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
MaterialApp( | |
// Disable the debug mode banner in emulation and simulation devices. | |
debugShowCheckedModeBanner: false | |
) |
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
'use strict'; | |
const { src, dest, watch, series, parallel } = require('gulp'), | |
autoprefix = require('gulp-autoprefixer'), | |
compress = require('gulp-clean-css'), | |
concat = require('gulp-concat'), | |
rev = require('gulp-rev'), | |
del = require('delete'); | |
const gulpCleanCss = require('gulp-clean-css'); |
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
{# | |
# Calculates the difference between an entry's post date and now and displays | |
# the difference in a readable date format. | |
#} | |
{% macro postdate(date) %} | |
{% set hourago = now.modify('- 1 hour') %} | |
{% set elapsed = '' %} | |
{% if not (date < hourago) %} | |
{% set elapsed = date.diff(now)|duration|split('and')|first ~ ' ago' %} | |
{% else %} |
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
/** | |
* Validates the passed argument against a regular expression according to | |
* RFC 2822 (https://tools.ietf.org/html/rfc2822#section-3.4.1). | |
* | |
* @param {String} email - The string to be tested. | |
* @return {Boolean} - Returns true or false. | |
*/ | |
function validate(arg) { | |
var pattern = regex; | |
return pattern.test(arg); |
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
/** | |
* A way to number sections and subsections on ordered lists | |
*/ | |
ol { | |
counter-reset: section; | |
} | |
/** | |
* Disable the default list style type behavior, |
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
<!-- Google CDN --> | |
<link rel="dns-prefetch" href="//ajax.googleapis.com"> | |
<!-- Google Analytics --> | |
<link rel="dns-prefetch" href="//www.google-analytics.com"> | |
<!-- Google Fonts --> | |
<link rel="dns-prefetch" href="//fonts.googleapis.com"> | |
<!-- Bootstrap CFN (FontAwesome) --> |