npm install gulp-phantomcss --save
gulpfile.js
var phantomcss = require('gulp-phantomcss');
// PhantomCSS| .foo{:style => "background-image: url('#{current_page.data.imageurl}');"} |
| require 'builder' | |
| require 'digest/md5' | |
| class Content < ActiveRecord::Base | |
| belongs_to :user | |
| end | |
| class Section < ActiveRecord::Base | |
| has_many :assigned_sections | |
| has_many :articles, :order => 'position', :through => :assigned_sections |
| var gulp = require('gulp'); | |
| var sass = require('gulp-sass'), | |
| autoprefix = require('gulp-autoprefixer'), | |
| bourbon = require('bourbon'), | |
| jshint = require('gulp-jshint'), | |
| stylish = require('jshint-stylish'), | |
| zip = require('gulp-zip'); | |
| // Stylesheets |
npm install gulp-phantomcss --save
gulpfile.js
var phantomcss = require('gulp-phantomcss');
// PhantomCSS| /* | |
| Read more here: | |
| https://developer.mozilla.org/en/CSS/@-moz-document | |
| For more browser-specific hacks: | |
| http://paulirish.com/2009/browser-specific-css-hacks | |
| */ | |
| @-moz-document url-prefix() { | |
| /* Put your Firefox specific code here. */ |
I tested this running Ghost 2.11.1 and the multilingual version of the Casper 2 theme.
My code is based on an older blog post by Aspire Themes on Medium: https://medium.com/aspirethemes/how-to-create-a-tags-list-page-in-your-ghost-theme-7a151413f5b0.
First, I recommend, you install Casper or the multilingual version linked above using git clone. That way, you can't easily mess things up.
| javascript:window.top.location.replace(document.querySelector('.full-screen-preview__frame').src); |
| authors: | |
| hanzou: | |
| name: Hanzou Hattori | |
| display_name: Hanzou | |
| gravatar: c66919cb194f96c696c1da0c47354a6a | |
| email: hanzou@company.com | |
| web: http://company.com | |
| twitter: company | |
| github: hhattori | |
| jorgen: |
| {% comment %} | |
| * | |
| * This loop loops through a collection called `collection_name` | |
| * and sorts it by the front matter variable `date` and than filters | |
| * the collection with `reverse` in reverse order | |
| * | |
| * To make it work you first have to assign the data to a new string | |
| * called `sorted`. | |
| * | |
| {% endcomment %} |