Skip to content

julindra/pico_categories_page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Pico Categories Page

About

Categories Page for PicoCMS. Provide Categories Page and Meta Category.

TODO

  • Upgrade compability to Pico 1.0

Instalation

  1. Download.
  2. Extract and copy folder pico_categories_page to your Pico plugins folder.
  3. Add a category to your post. Example:
     /*
     	Title: Third Day
     	Description: Third day. Let's be happy
     	Author: Renhard Julindra
     	Date: 2015/11/4 21:00
     	Category: My Story
     */
     
  4. Create a page named categories.md, and fill with:
     /*
     	Title: Categories
     	Purpose: pico_categories_page
     */
     
  5. Add the following code to your theme:
	<pre>
	{% if meta.purpose == "pico_categories_page" %}
		<ul style="list-style-type: none;">
			{% for cat, cated_pages in pico_categories_page %}
				<li>
					<h4><b>{{ cat }}</b></h4>
					<ul>
						{% for cated_page_title, cated_page_link in cated_pages %}
							<li><a href="{{ cated_page_link }}">{{ cated_page_title }}</a></li>
						{% endfor %}
					</ul>
				</li>
			{% endfor %}
		</ul>
	{% endif %}
	</pre>
  1. That's it. Open browser and go to Categories page (Ex: http://mywebsite.com/categories).
  2. Category can now be accessed with {{ meta.category }}.

Screenshot

Pico Categories Page

About Pico

Pico is a stupidly simple, blazing fast, flat file CMS. See http://pico.dev7studios.com for more info.

About

Categories Page for PicoCMS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages