On Github opdavies / phpsw-sculpin
$ curl -O https://download.sculpin.io/sculpin.phar $ chmod +x sculpin.phar $ mv sculpin.phar /usr/local/bin/sculpin
Or use the Sculpin Ansible role. :)
Download sculpin.phar from sculpin.io (phar is PHP archive file containing the library or application) Give it executable permissions Move it to somewhere within your $PATH if you want it to be available globally.$ sculpin generate builds the things
--- layout: default title: Hello! --- Hi, [PHPSW](https://phpsw.uk)!
---
title: My PHPSW talk
foo: bar
main_menu_links:
- { title: About, href: / }
- { title: Talks, href: /talks/ }
--- layout: post title: New Blog Post draft: yes --- # My New Blog PostIf a files doesn't have the front matter included, it will be copied as-is into the source directory.
---
layout: post
title: New Blog Post
draft: yes
tags:
- drupal
- sculpin
- phpsw
---
# My New Blog Post
---
layout: post
title: New Blog Post
draft: yes
tags:
- drupal
- sculpin
- phpsw
tweets: yes
foo: bar
---
# My New Blog Post
You can keep adding more things, including arbitrary things.
Used in my talks for URLs to slide decks, event name, location etc.
---
...
testimonials:
- { name: ..., role: ..., text: ..., url: ... }
- { name: ..., role: ..., text: ..., url: ... }
- { name: ..., role: ..., text: ..., url: ... }
---
{% for testimonial in page.testimonials %}
{{ testimonial.text }}
{% endfor %}Sculpin does custom content types!
# app/config/sculpin_kernel.yml
sculpin_content_types:
projects:
permalink: projects/:slug_title/
---
title: My Projects
layout: default
use:
- projects
---
{% for project in data.projects %}
Integrating @getsculpin and some @symfony components for new @supportyard website is very powerful and productive. Should blog about it!
— Pera Jovic (@_korso_) October 8, 2015