Giter VIP home page Giter VIP logo

dev-blog's Introduction

Nordnet Dev Blog

Usage

Create post

Run the followin command and fill out the prompted meta data.

yarn post

Meta fields

Field Type Note
title string Title of the blogpost (you should not put the title as a header in the blogpost). Maxlength: 60.
description string Description of the blogpost, this is used for og:description and meta=description in <head> for SEO. Maxlength: 200.
author string The author of the post, pick from a list of previous found authors, or choose other to manually create a new author. Maxlength: 32.
date "yyyy-MM-dd" The publish date of the post, take note for format. The date will be validated, also remember to put quotes to explicit make it a string for parseability. Defaults to current date.
category string Pick a category that is already available or create a new one. Maxlength: 32.
tags string[] Pick tags that is already available and/or create new ones but typing a comma separated list when prompted. Maxlength: 10 items and 32 chars/item.
image relative file path Select an image from /public/images (None/null is allowed in creation but not when validating). This is used by og:image and as a thumbnail/hero image. TODO: Recommend/enforce aspect ratio(s).
readTime number Indicator in minutes how long the post takes to read. Calculated by counting words in post and dividing by 265 words/minute. (Only generated when running yarn update:meta). Range: 0-60.
(slug) string (Not actually in the metadata) Filename of where to save the file relative to /posts. This will also be the url of the post. Must be kebab-case (lower case with dashes) with '/' as directory separator (subdirectories are allowed). Defaults to kebabCase(title). Total maxlength: 64.

Modify meta data

yarn update:meta
Option Default Note
files null Multi select (with autocompletion) to choose which files to update.
bulk false If true the cli will prompt for meta data once per field and write it to all selected files. If false the cli will prompt for input for each relevant field for every selected file.
forceUpdate false If false the cli will only prompt/update missing fields. If true it will prompt for updates even for fields already set (with current state as default).

Development

yarn install
yarn dev

TODOs and Inspiration

dev-blog's People

Contributors

dhq avatar johnlindahltech avatar renovate-bot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dev-blog's Issues

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

Rate Limited

These updates are currently rate limited. Click on a checkbox below to force their creation now.

  • fix(deps): update dependency next-mdx-remote to v3.0.8
  • fix(deps): update dependency prism-react-renderer to v1.3.1
  • chore(deps): update dependency chalk to v5
  • fix(deps): update dependency @nordnet/ui to v10
  • fix(deps): update dependency babel-plugin-styled-components to v2
  • fix(deps): update dependency next to v12
  • fix(deps): update dependency next-mdx-remote to v4
  • fix(deps): update dependency next-seo to v5

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.


  • Check this box to trigger a request for Renovate to run again on this repository

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.