Giter Site home page Giter Site logo

blog's Introduction

CircleCI

DVC Blog

Installation

Make sure you have the latest versions of Node.js and Yarn installed.

Run yarn command.

Commands

  • yarn develop - run dev server with hot reload.
  • yarn build - build static assets to public folder.
  • yarn serve - run static server over the public folder content to check build results.
  • yarn typecheck - check .ts and .tsx files for type errors.
  • yarn lint-ts - lint .ts and .tsx for compilance with code style.
  • yarn lint-css - lint .css files for compilance with code style.

ENV variables

  • GA_ID โ€“ id of the Google Analytics counter.

Contributing

Before commit staged files wil be checked and formatted using linters and prettier.

Writing posts

Create .md file in the content/blog folder. File name will be used as slug.

Write frontmatter in the following format:

---
title: Hello World
date: '2015-05-01T22:12:03.284Z'
description: 'Hello World'
descriptionLong: |
  Some long
  multiline
  text
picture: /uploads/image.jpeg
pictureComment: Some Comment
author: ../authors/author_name.md
tags:
  - Open Source
  - Machine Learning
  - Data Science
  - Version Control
  - AI
---
  • title - Required. Title of the post.
  • date - Required. Post date. Will be used to sort posts and in RSS.
  • description - Required. Short description to show in the feed.
  • descriptionLong - Optional long description to show before image on the post page. If not set, description will be used instead.
  • picture - Optional cover image.
  • pictureComment - Optional cover image comment.
  • author - Required Relative path to .md file with information about the author.
  • tags - Optional list of tags.

Adding authors

Create .md file in the content/authors folder.

Write frontmatter in the following format:

path: ../authors/relative_path_to_file.md
name: Author's Name
avatar: /uploads/avatar.jpeg
  • path - Required String that the CMS will insert to the author field in the blog post. Should be equal to the path from the blog post to the author's .md file.
  • name โ€“ Required Author's name.
  • avatar - Required relative path to the author's avatar.

blog's People

Contributors

abdullahtariq1171 avatar chrisburnette01 avatar cosmn avatar elleobrien avatar fabiosantoscode avatar iadramelk avatar jorgeorpinel avatar kurianbenoy avatar ltclmbdev avatar molinajes avatar restyled-commits avatar shcheklein avatar svetagr avatar

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.