Lots of people have asked, so here are a few common tasks you might do in your templates, as they would be written in ExpressionEngine vs. Craft.
-
Comments{{ cycle(['odd','even'], loop.index0 }}
// ---- | |
// libsass (v3.3.6) | |
// ---- | |
// ========================================================================= | |
// | |
// PRECISE CONTROL OVER RESPONSIVE TYPOGRAPHY FOR SASS | |
// --------------------------------------------------- | |
// Indrek Paas @indrekpaas | |
// |
module.exports = function (app) { | |
var _ = require('lodash'); | |
var User = app.models.User; | |
var Role = app.models.Role; | |
var RoleMapping = app.models.RoleMapping; | |
var ACL = app.models.ACL; | |
/* | |
* Configure ACL's | |
*/ |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# Ask for the administrator password upfront | |
sudo -v | |
# mkdir -p ~/Sites/Work/Clients | |
# mkdir -p ~/Sites/Work/Internal | |
# mkdir -p ~/Sites/Personal | |
# mkdir -p ~/Downloads/Torrents | |
mkdir -p /Volumes/Sites/Work/Clients | |
mkdir -p /Volumes/Sites/Work/Internal |
Lots of people have asked, so here are a few common tasks you might do in your templates, as they would be written in ExpressionEngine vs. Craft.
Comments{{ cycle(['odd','even'], loop.index0 }}
Lots of people have asked, so here are a few common tasks you might do in your templates, as they would be written in ExpressionEngine vs. Craft.
//Simple comment up here to explain that accordion is a accordion with 3 parts blah blah blah | |
.accordion { | |
.js & { | |
display: none; | |
} | |
.js .open + & { | |
display: block; | |
} | |
//dont use & unless it changes the order here. | |
li { |
<?php /* making sure we 'orderby' correctly */ | |
query_posts( $query_string . '&orderby=date&order=DEC' ); ?> | |
<?php if ( have_posts() ) : ?> | |
<?php | |
/* Setup */ | |
$display_year = ''; | |
$format = 'd/m/Y'; | |
$year_position = 2; |
//Please note this does not currently work. | |
@each $section in council, household, business { | |
.#{$section} h2 { | |
//Step 1: I want this below varible to dynamically change to $council-light, $household-light, $business-light | |
color: $#{$section}-light; //this seems to be the problem of trying to append '-light' onto a varible name | |
//please note council-light, household-light, business-light are all predefined varibles with hex colours assigned. |