Skip to content
/ blog Public
forked from cesko-digital/blog

Repository for Cesko.Digital blog

License

Notifications You must be signed in to change notification settings

JanPetr/blog

 
 

Repository files navigation

Česko.Digital Blog

Setup

yarn install
yarn develop

Deploy

Blog is automatically deployed using Netlify:

Netlify Status

You can use the following commands in case of a failing deploy:

yarn build

How to Insert Article

Articles need to be saved in content/posts directory. Article has these required fields:

  • cover (as an URL)
  • description
  • date in format YYYY-MM-DD-HH-mm
  • author (author's id)

You can also add a slug field which will override the generated part of slug from title. Article URL does not depend on file position in content folder. URL format is /year/month/slug

DO NOT USE HEADING LEVEL 1:

# Wrong
## Correct
### Correct
...

How to Insert News Items

News items are stored in the content/news.yaml file in the following format:

- type: news
  date: 2019-09-16-12-00
  text: Michal Bláha byl hostem podcastu Proti proudu. Poslechněte si jeho názory o e-govermentu.
  url: https://cesko.digital
- type: news
  date: 2019-09-25-12-00
  text: Dnes je setkání Česko.Digital
  url: https://cesko.digital

About

Repository for Cesko.Digital blog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.1%
  • CSS 8.9%