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
/*********************************************** | |
HULPJE | |
***********************************************/ | |
footer { | |
:after { | |
content: "content"; |
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
$(function() { | |
$('.body img[longdesc]').each(function() { | |
var caption = $(this).attr('longdesc'); | |
var style = $(this).attr('style'); | |
var replacement = "<figure style='" + style + "' >" + $(this).prop('outerHTML') + "<figcaption>" + caption + "</figcaption>" + "</figure>"; | |
replacement = $(replacement).css('height', 'auto').css('width', 'auto'); | |
$(this).parent().replaceWith(replacement); | |
}); |
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
{# | |
MADE FOR A SPECIFIC SITE, BUT THE ICS IDEA IS PROBABLY CLEAR HERE - AW 2017 | |
#} | |
{% if (item.start_event is not empty) and (item.end_event is not empty) %} | |
{# when no times, we make no add to calendar blokkie #} | |
{% set icslink = | |
'data:text/calendar; | |
charset=utf8, |
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
<section class="download-module"> | |
<ul> | |
{% for item in record.attachments %} | |
<li> <a href="{{ asset(item.filename, 'files') }}"> | |
<svg class="icon icon-download"> | |
<use xlink:href="#icon-download"></use> | |
</svg> | |
{{ item.title }} | |
<div class="meta"> | |
{% set fileinfo = imageinfo(item.filename) %} |
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
In contenttype.yml | |
imagelicense: | |
label: "Image License" | |
type: select | |
values: | |
'Public-Domain' : 'Public Domain' | |
'CC0' : 'CC0' | |
'CC-BY' : 'CC BY' | |
'CC-BY-SA' : 'CC BY-SA' |
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
# show git branch in prompt | |
# https://coderwall.com/p/pn8f0g/show-your-git-status-and-branch-in-color-at-the-command-prompt | |
# add to .profile of your user directory ( nano ~/.profile ) | |
# reload with: source ~/.profile | |
COLOR_RED="\033[0;31m" | |
COLOR_YELLOW="\033[0;33m" | |
COLOR_GREEN="\033[0;32m" | |
COLOR_OCHRE="\033[38;5;95m" | |
COLOR_BLUE="\033[0;34m" |
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
wysiwyg: | |
images: false # Allow users to insert images in the content. | |
anchor: false # Adds a button to create internal anchors to link to. | |
tables: true # Adds a button to insert and modify tables in the content. | |
fontcolor: false # Allow users to mess around with font coloring. | |
align: false # Adds buttons for 'align left', 'align right', etc. | |
subsuper: false # Adds buttons for subscript and superscript, using `<sub>` and `<sup>`. | |
embed: false # Allows the user to insert embedded video's from Youtube, Vimeo, etc. | |
underline: false # Adds a button to underline text, using the `<u>`-tag. | |
ruler: false # Adds a button to add a horizontal ruler, using the `<hr>`-tag. |
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
/* sauce: https://www.paulirish.com/2009/random-hex-color-code-snippets/ */ | |
<script> | |
bgcolor = ''; | |
bgcolor = '#'+Math.floor(Math.random()*16777215).toString(16); | |
coverimg += 'background-color:' + bgcolor; | |
$('.background').removeAttr('style').attr('style', coverimg); | |
</script> |
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
{# extra supernested lookup table #} | |
{% set personinfo = { | |
'1198' : { | |
'color' : '#ff0099', | |
'number' : '9', | |
'title' : 'My fingers are cold', | |
'portraitsrc' : 'portrait_piet.png', | |
'imgsrc' : 'image_piet.png' | |
}, |
OlderNewer