Updating site.

This commit is contained in:
Gilbert Pellegrom 2013-09-04 12:30:43 +01:00
parent 7ad9f49de5
commit 9f52a027bb
3 changed files with 198 additions and 4 deletions

125
composer.lock generated Normal file
View file

@ -0,0 +1,125 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
],
"hash": "658039ea843c9d957400408997842d2c",
"packages": [
{
"name": "michelf/php-markdown",
"version": "1.3",
"source": {
"type": "git",
"url": "https://github.com/michelf/php-markdown.git",
"reference": "fcdd3e0781ae40c2b9847874e0755ff4f5559688"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/michelf/php-markdown/zipball/fcdd3e0781ae40c2b9847874e0755ff4f5559688",
"reference": "fcdd3e0781ae40c2b9847874e0755ff4f5559688",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-lib": "1.3.x-dev"
}
},
"autoload": {
"psr-0": {
"Michelf": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Michel Fortin",
"email": "michel.fortin@michelf.ca",
"homepage": "http://michelf.ca/",
"role": "Developer"
},
{
"name": "John Gruber",
"homepage": "http://daringfireball.net/"
}
],
"description": "PHP Markdown",
"homepage": "http://michelf.ca/projects/php-markdown/",
"keywords": [
"markdown"
],
"time": "2013-04-11 18:53:11"
},
{
"name": "twig/twig",
"version": "v1.12.3",
"source": {
"type": "git",
"url": "https://github.com/fabpot/Twig.git",
"reference": "v1.12.3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/fabpot/Twig/zipball/v1.12.3",
"reference": "v1.12.3",
"shasum": ""
},
"require": {
"php": ">=5.2.4"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.12-dev"
}
},
"autoload": {
"psr-0": {
"Twig_": "lib/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Armin Ronacher",
"email": "armin.ronacher@active-4.com"
}
],
"description": "Twig, the flexible, fast, and secure template language for PHP",
"homepage": "http://twig.sensiolabs.org",
"keywords": [
"templating"
],
"time": "2013-04-08 12:40:11"
}
],
"packages-dev": [
],
"aliases": [
],
"minimum-stability": "stable",
"stability-flags": [
],
"platform": [
],
"platform-dev": [
]
}

View file

@ -89,7 +89,9 @@
<li><a href="#themeing">Themeing</a>
<ul><li><a href="#blogging">Blogging</a></li></ul>
</li>
<li><a href="#plugins">Plugins</a></li>
<li><a href="#plugins">Plugins</a>
<ul><li><a href="#adding-custom-meta">Adding Custom Meta</a></li></ul>
</li>
<li><a href="#contribute">Contribute</a></li>
</ul>
</div>
@ -264,8 +266,10 @@ Robots: noindex,nofollow
<li><code>before_404_load_content(&$file)</code></li>
<li><code>after_404_load_content(&$file, &$content)</code></li>
<li><code>config_loaded(&$settings)</code></li>
<li><code>before_read_file_meta(&$headers)</code></li>
<li><code>file_meta(&$meta)</code></li>
<li><code>content_parsed(&$content)</code></li>
<li><code>get_page_data(&$data, $page_meta)</code></li>
<li><code>get_pages(&$pages, &$current_page, &$prev_page, &$next_page)</code></li>
<li><code>before_twig_register()</code></li>
<li><code>before_render(&$twig_vars, &$twig)</code></li>
@ -273,6 +277,20 @@ Robots: noindex,nofollow
</ul>
<p>Note that parameter variables are <a href="http://php.net/manual/en/language.references.pass.php" target="_blank">passed by reference</a>
so that they can be modified.</p>
<h4 id="adding-custom-meta">Adding Custom Meta</h4>
<p>If you need to add custom meta variables you can do so using the <code>before_read_file_meta()</code> hook. For example:</p>
<pre><code>public function before_read_file_meta(&$headers)
{
$headers['layout'] = 'Layout';
}</code></pre>
<p>Then in your content meta you would add the relevant meta value:</p>
<pre><code>/*
Title: Example
Description: This is a description
Layout: 2col
*/
</code></pre>
<p>You will then be able to access this value via the <code>{{ meta.layout }}</code> template variable.</p>
<hr>
<h3 id="contribute">Contribute</h3>
<p>Help make Pico better by checking out <a href="https://github.com/gilbitron/Pico">the GitHub repoistory</a> and submitting pull requests. If you find a bug

View file

@ -81,23 +81,74 @@
</p>
<br />
<div class="one-third">
<h3>Pico RSS</h3>
<h3>RSS Feed</h3>
<p>Provides an RSS Feed for Pico. It will only include content with a "Date" field.</p>
<p><a href="https://github.com/gilbitron/Pico-RSS-Plugin" class="button red">Download</a></p>
</div>
<div class="one-third">
<h3>Pico Draft</h3>
<h3>Draftin</h3>
<p>This is a Pico plugin that integrates <a href="http://draftin.com" target="_blank">Draft</a> into Pico.
You can see a tutorial on how to use it on <a href="http://www.codeforest.net/pico-cms-and-draft" target="_blank">Codeforest</a>.</p>
<p><a href="https://github.com/codeforest/pico_draft" class="button red">Download</a></p>
</div>
<div class="one-third last">
<h3>Pico Editor</h3>
<h3>Editor</h3>
<p>Provides an online Markdown editor and file manager for Pico.</p>
<p><a href="https://github.com/gilbitron/Pico-Editor-Plugin" class="button red">Download</a></p>
</div>
<div class="clear"></div>
<br />
<div class="one-third">
<h3>Pagination</h3>
<p>Provides basic pagination for Pico.</p>
<p><a href="https://github.com/rewdy/Pico-Pagination" class="button red">Download</a></p>
</div>
<div class="one-third">
<h3>Slider</h3>
<p>Create sliders (image lists) inside Pico.</p>
<p><a href="https://github.com/james2doyle/pico_slider" class="button red">Download</a></p>
</div>
<div class="one-third last">
<h3>Sitemap</h3>
<p>Pico plugin to generate an XML sitemap.</p>
<p><a href="https://github.com/Techn0tic/Pico_Sitemap" class="button red">Download</a></p>
</div>
<div class="clear"></div>
<br />
<div class="one-third">
<h3>Get Files By Name</h3>
<p>A Pico plugin to grab content by the filename.</p>
<p><a href="https://github.com/james2doyle/pico_get_by_filename" class="button red">Download</a></p>
</div>
<div class="one-third">
<h3>Advanced Meta</h3>
<p>A simple plugin to customize page meta.</p>
<p><a href="https://github.com/shawnsandy/adv-meta" class="button red">Download</a></p>
</div>
<div class="one-third last">
<h3>Private</h3>
<p>Provide authentication to keep your site private.</p>
<p><a href="https://github.com/jbleuzen/Pico-Private" class="button red">Download</a></p>
</div>
<div class="clear"></div>
<br />
<div class="one-third">
<h3>OpenGraph</h3>
<p>Adds OpenGraph to your Pico site.</p>
<p><a href="https://github.com/ahmet2106/pico-opengraph" class="button red">Download</a></p>
</div>
<div class="one-third">
<h3>Navigation</h3>
<p>Generates a better navigation for Pico.</p>
<p><a href="https://github.com/ahmet2106/pico-navigation" class="button red">Download</a></p>
</div>
<div class="one-third last">
<h3>Tags</h3>
<p>Provides tags functionality for Pico.</p>
<p><a href="https://github.com/szymonkaliski/Pico-Tags-Plugin" class="button red">Download</a></p>
</div>
<div class="clear"></div>
<br />
<p class="aligncenter">Have you created a plugin for Pico?
<a href="https://github.com/gilbitron/Pico/wiki/Pico-Plugins">Add it to the wiki</a> and we'll put it up here.</p>
</div>