Skip to content

Instantly share code, notes, and snippets.

View dancingmonkey's full-sized avatar

Timothy dancingmonkey

  • Earth
View GitHub Profile
@dancingmonkey
dancingmonkey / gulpfile.js
Created April 13, 2022 08:05 — forked from hildissent/gulpfile.js
gulpfile - gulp 4, jekyll, tailwindcss, purged (css), minified (css, js, and html), and cache-busting.
"use strict";
//
// PLUGINS
//
const autoprefixer = require("autoprefixer");
const browsersync = require("browser-sync").create();
const clean = require("gulp-clean");
const concat = require("gulp-concat");
@dancingmonkey
dancingmonkey / Gulpfile.js
Created March 11, 2022 13:15 — forked from tterb/Gulpfile.js
An updated gulpfile for tterb.github.io
// Gulpfile.js
const autoprefixer = require('autoprefixer');
const browserSync = require('browser-sync').create();
const concat = require('gulp-concat');
const cssnano = require('cssnano');
const del = require('del');
const gulp = require('gulp');
const gutil = require('gulp-util');
const imagemin = require('gulp-imagemin');
@dancingmonkey
dancingmonkey / for-loop-collections.html
Created July 24, 2020 12:58
for loop collections sorted by dat
{% comment %}
*
* This loop loops through a collection called `collection_name`
* and sorts it by the front matter variable `date` and than filters
* the collection with `reverse` in reverse order
*
* To make it work you first have to assign the data to a new string
* called `sorted`.
*
{% endcomment %}