Skip to content

Instantly share code, notes, and snippets.

View bissy's full-sized avatar
🏠
Working from home

bissy bissy

🏠
Working from home
View GitHub Profile
@cmaas
cmaas / 11ty-related-posts-filter.md
Last active August 16, 2022 13:56
11ty: show related articles in a sorted way
mixin picture(path, name, type)
picture
each val in type
source(srcset=path + "/" + name + "." + val type="image/" + val)
img(src=path + "/" + name + ".jpg" alt=name)
+picture('path/to', 'image', ['jpg','webp'])
// Compiles to
//------------------------
jQuery( document ).ready( function(){
var myListController = Marionette.Object.extend({
initialize: function() {
// Listen to the value change for Checkbox List fields.
this.listenTo( Backbone.Radio.channel( 'listcheckbox' ), 'change:modelValue', this.onChangeModelValue );
},
onChangeModelValue: function( fieldModel ) {
anonymous
anonymous / config.json
Created March 11, 2015 08:35
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",