2017 © Pedro Peláez
 

sculpin-bundle sculpin-calendarian-bundle

This is a Bundle that generates the index page to blog date directory for Sculpin.

image

sharkpp/sculpin-calendarian-bundle

This is a Bundle that generates the index page to blog date directory for Sculpin.

  • Saturday, September 3, 2016
  • by sharkpp
  • Repository
  • 1 Watchers
  • 1 Stars
  • 76 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 15 % Grown

The README.md

Sculpin Calendarian Bundle

日本語 ENGLISH

What is this?

This is a Bundle that generates the index page to blog date directory for Sculpin., (*1)

Setup

Add this bundle in your sculpin.json file:, (*2)

{
    // ...
    "require": {
        // ...
        "sharkpp/sculpin-calendarian-bundle": "dev-master"
    }
}

and install this bundle running sculpin update., (*3)

Now you can register the bundle in SculpinKernel class available on app/SculpinKernel.php file:, (*4)

<?php

class SculpinKernel extends \Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel
{
    protected function getAdditionalSculpinBundles()
    {
        return array(
           'Sharkpp\Sculpin\Bundle\CalendarianBundle\SculpinCalendarianBundle'
        );
    }
}

How to use

For example, create a source/blog/date.html file:, (*5)

---
generator: calendarian
---



{% if page.calendarian.year %}{{ page.calendarian.year }}-{% endif %} {% if page.calendarian.month %}{{ page.calendarian.month }}-{% endif %} {% if page.calendarian.day %}{{ page.calendarian.day }}-{% endif %}

By creating in such content, and http://your.site.url/blog/2015/08/09/hoge.html, when there is such a page, the page is created based on the content that was created to http://your.site.url/blog/2015/ and http://your.site.url/blog/2015/08/ and http://your.site.url/blog/2015/08/09/, it can be accessed., (*6)

License

© 2015 sharkpp, (*7)

This software is released under the MIT License, see LICENSE., (*8)

The Versions

03/09 2016

dev-master

9999999-dev http://github.com/sharkpp/sculpin-calendarian-bundle

This is a Bundle that generates the index page to blog date directory for Sculpin.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

blog calender sculpin