Skip to content

Instantly share code, notes, and snippets.

@dry
dry / gist:943297
Created April 26, 2011 22:07
Page Subdirectory Layout
octopus:peanut.intranet greg$ ls -l pages/documentation/
total 40
-rw-r--r-- 1 dry staff 1920 26 Apr 22:55 configuration.txt
-rw-r--r-- 1 dry staff 983 26 Apr 22:55 index.txt
-rw-r--r-- 1 dry staff 1022 26 Apr 01:00 install.txt
-rw-r--r-- 1 dry staff 1499 26 Apr 22:55 layouts.txt
-rw-r--r-- 1 dry staff 834 26 Apr 22:55 pages.txt
@dry
dry / gist:942887
Created April 26, 2011 19:15
Pages Layout
octopus:peanut.intranet greg$ ls -l peanut/pages/
total 8
drwxr-xr-x 7 greg staff 238 26 Apr 20:09 documentation
-rw-r--r-- 1 greg staff 127 26 Apr 11:17 index.txt
@dry
dry / documentation.txt
Created April 26, 2011 17:18
Peanut CMS Documentation Page
layout:
documentation.html
--
title:
Layouts
--
summary:
h2. Layouts
@dry
dry / config.php
Created April 26, 2011 16:16
Peanut Config Example
$config = array(
'system_folder' => 'peanut',
'default_layout' => 'main.html',
'text_parser' => 'textile'
);
@dry
dry / documentation.html
Created April 26, 2011 14:58
Peanut CMS Documentation Layout
<!DOCTYPE html>
<html lang="en">
<head>
<title>Peanut Documentation | {title}</title>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" media="screen" href="/assets/css/documentation.css">
</head>
<body>
<div id="container">
<h1><a href="/" title="Peanut CMS">Peanut</a>: <a href="/documentation/">Documentation</a>: {title}</h1>