Skip to content

Add article on Blog

Kemal Erdem edited this page Jun 21, 2021 · 1 revision

Blog articles are stored in ./content/**. Each article should have its folder (name doesn't matter). You can nest directories, it doesn't have to be on the top level. Inside the article folder, there has to be only one .md file. This file is defined as follow:

---
title: 'TITLE'
date: 'YYYY-MM-DD'
template: 'post'
draft: false | true
featuredImage: 'PATH_TO_IMAGE'
featuredImageDark: 'PATH_TO_IMAGE'
author: 'AUTHOR_NAME'
tags:
- 'Vision'
- 'MachineLearning'
description: 'Some description'
---

--==Markdown Content==--

Attributes

  • title - any string
  • date - publication date (can be past or future one)
  • template - stick with post for blog articles
  • draft - true or false, if true then article won't be visible on the page
  • featuredImage - path to main image visible on default theme
  • featuredImageDark - path to main image visible on dark theme
  • author - name of the author
  • tags - list of strings
  • description - any string

Content can be any valid markdown. You can include images and they will be automatically compiled and attached to the article. Images should also be in the same file and you can add them like ![Alt text](./image_name.jpg).

Clone this wiki locally