A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
#!/bin/bash | |
#function syncsk27 { | |
# pwd=`pwd`; | |
# cd /q; | |
# ./sync-starter-kit.2.7.sh $@; | |
# cd $pwd; | |
#} | |
VERSION=2.3.0 |
// After making the required edits below, use something like http://daringfireball.net/2007/03/javascript_bookmarklet_builder to create the bookmarklet. | |
(function(){ | |
var form=document.createElement("form"); | |
// Edit the action value to match your domain and section names. | |
form.setAttribute("action","http://example.com/symphony/publish/entries/new/"); | |
form.setAttribute("method","post"); | |
// Edit the params to match your auth-token | |
// (found on the author page) and section fields. |
server { | |
listen 80; | |
root /var/www/craft.dev/public; | |
index index.php index.html index.htm; | |
server_name craft.dev; | |
location / { | |
try_files $uri $uri/ @rewrites; |
/* | |
_______ | |
These simple SCSS/SASS mixins for Foundation 4 are made by me to deal with media-queries and have a clean code at the same time! ;) | |
****IMPORTANT**** | |
Due to Foundation 4 uses mobile-first methodology, every $phone-"X" variable in these mixins defines the value for every screen size. | |
$desktop-"X" values overrides $phone-"X" values when the width of the window is 768px and above. |
<?php | |
/** | |
* Array2XML: A class to convert array in PHP to XML | |
* It also takes into account attributes names unlike SimpleXML in PHP | |
* It returns the XML in form of DOMDocument class for further manipulation. | |
* It throws exception if the tag name or attribute name has illegal chars. | |
* | |
* Author : Lalit Patel | |
* Website: http://www.lalit.org/lab/convert-php-array-to-xml-with-attributes | |
* License: Apache License 2.0 |
<?php | |
# | |
# INSPIRATION FROM Nick Dunn (in the Symphony CMS forum) | |
# "Convert a Directory of Markdown Text Files for Dynamic XML Datasource Use" | |
# http://getsymphony.com/discuss/thread/60701/#position-2 | |
# | |
# AND FROM Stack Overflow | |
# http://stackoverflow.com/questions/8545010/php-reading-first-2-lines-of-file-into-variable-and-cylce-through-subfolders/8545451#8545451 | |
# |
<data> | |
<datasource> | |
<section handle="test-section">Test Section</section> | |
<entry> | |
<page-path handle="about">/about</page-path> | |
<page-title handle="about">About</page-title> | |
<title handle="about-this-company">About This Company</title> | |
<template> | |
<item id="2" handle="content" section-handle="page-templates" section-name="Page Templates">Content</item> | |
</template> |