There are two types of markup in Liquid: Output and Tag.
- Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}
- Tag markup (which cannot resolve to text) is surrounded by
<?php | |
function sg_get_translated_posts_urls() { | |
$default_lang = apply_filters( 'wpml_default_language', NULL ); | |
$ids = get_posts( array( | |
'fields' => 'ids', | |
'post_type' => array( 'post', 'page' ), | |
'numberposts' => -1, | |
'suppress_filters' => true, // Get posts in all languages | |
) ); |
There are two types of markup in Liquid: Output and Tag.
{{ matched pairs of curly brackets (ie, braces) }}
As configured in my dotfiles.
start new:
tmux
start new with session name:
server { | |
listen 80; | |
server_name www.example.com; | |
rewrite ^ $scheme://example.com$request_uri?; | |
} | |
server { | |
listen 80; | |
server_name example.com; | |
#!/usr/bin/env python | |
import itertools | |
import json | |
import logging | |
import sys | |
import time | |
import traceback | |
# oauth2 is available at https://github.com/simplegeo/python-oauth2 | |
import oauth2 |
# Patches Jekyll's built-in pagination to work with files *other* than the base index.html. | |
# Expects the following to be specified in your _config.yml: | |
# | |
# paginate_base: "blog" # Puts all pagination folders in the "blog" dir, e.g. "/blog/page2" | |
# paginate_index: "blog/index.html" # Paginates using the specified file | |
module Jekyll | |
class Page | |
/*http://i-skool.co.uk/mobile-development/web-design-for-mobiles-and-tablets-viewport-sizes/*/ | |
/*At least requires the meta viewport tag with content 'width=device-width'*/ | |
@media only screen and (max-width: 1080px) and (orientation : portrait) { | |
/* PORTRAIT: | |
Windows Surface Pro*/ | |
} | |
@media only screen and (max-width: 800px) and (orientation : portrait) { | |
/* PORTRAIT: | |
Acer Iconia Tab A100 |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
0. You just DO WHAT THE FUCK YOU WANT TO. |