https://github.com/oskariorg/oskariorg.github.io
Developer blog/OSGeo PSC notes for Oskari
https://github.com/oskariorg/oskariorg.github.io
documentation oskari
Last synced: 4 months ago
JSON representation
Developer blog/OSGeo PSC notes for Oskari
- Host: GitHub
- URL: https://github.com/oskariorg/oskariorg.github.io
- Owner: oskariorg
- Created: 2017-02-27T14:11:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T09:05:30.000Z (almost 2 years ago)
- Last Synced: 2024-09-17T11:29:15.708Z (almost 2 years ago)
- Topics: documentation, oskari
- Language: HTML
- Homepage: https://oskariorg.github.io
- Size: 20.3 MB
- Stars: 2
- Watchers: 13
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Writing blogpost:
Create a new markdown file in `_posts` folder and name it following this format:
`YEAR-MONTH-DAY-title.markdown`
Before you start writing you need to add:
```
---
layout: post
title: "Tested"
date: 2016-11-23
categories: test
---
```
in the beginning of your markdown file.
Where
`layout` is the html file you want to use in the `_layouts` folder.
`title` is the title of your post.
`date` is current date.
`categories` is to which categories this post belongs to.
# Adding category:
If you want to create a new category which doesn't exist yet, you need to create a html-file in the `blog/categories` folder, ie `categoryname.html`
example file `test.html` for category test:
```
---
group: blog
layout: category
title: test
description: All blogposts published under test
permalink: /blog/test/
category: test
---
{'%' include categories.html '%'}
```
`layout` is the html file you want to use in the `_layouts` folder.
`title` is the title of your category.
`description` is the description of your category.
`permalink` is the link to the category in the browser.
`category` is the current category when fetching posts.
`{'%' include categories.html '%'}` includes the file which will show all posts in this category. Remove the `''` from the `%` signs.