Giter Site home page Giter Site logo

blog's Introduction

Č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.

Required fields

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

Images

Please try to avoid adding images directly to the repository. Česko.Digital has own data storage on data.cesko.digital. You can ask in #p-ceskodigital_mktg Slack channel about new image upload or you can just attach links from other storage and responsible person will finalize images in a pull request before the merge.

Featured posts

You can use featured: true if you want to highlight older article on the main page. Please don't forget to remove this field for older articles if you are inserting a new one.

Headings

Do not use heading level 1:

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

Volunteers section (WIP)

You can also add volunteers to the article by adding this HTML:

<div class="volunteers">
    <div class="volunteer">
        <img width="80px" height="80px" src="https://data.cesko.digital/picture.jpg" alt=""/>
        <div class="name">John Doe</div>
        <div class="note">Software Developer</div>
    </div>
</div>

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.