Skip to content

mskian/create-markdown-post

Repository files navigation

Create Markdown Post

build-test

Create Markdown Post for blog and website using Mustache Template System.

Don't use this Directly - Fork this repo and Modify according to your Needs also not Recommended for Production use.

Features

Development and usage

  • Clone or Download the repo
git clone https://github.com/mskian/create-markdown-post.git
cd create-markdown-post
yarn
  • Start the Dev server
yarn dev
  • Start the Production Server
yarn start
  • Post New Content
http://localhost:3005/api
  • Post via API - it Require Basic HTTP Auth - Update password in config.js file
http://localhost:3005/api?title=This%20is%20Example%20Post%20title&description=This%20is%20Example%20Post%20Meta%20Description%20-%20post%20via%20HTTP%20Client%20via%20API.&postcontent=This%20is%20Example%20Post%20Meta%20Description%20-%20post%20via%20HTTP%20Client%20via%20API.&tag=Test
  • if you want to update HTTP auth username find this line users: { 'admin':sitedata.password }, in index.js - Default username admin and password 123456789

  • Post via Javascript Markdown Editor - refer: https://github.com/mskian/svelte-markdown-editor - Example: /views/editor.hbs

http://localhost:3005/markdown

Modification

  • Modify the Post template Content data on index.js
  • Add storage path, Markdown Extension, Password and Manual URL Slug Generation Name in config.json
  • if you want add custom slug in Markdown File - template.md
---
title: "{{title}}"
date: {{date}}
description: "{{description}}"
tags:
  - "{{tag}}"
slug: "{{seo_url}}"
---

{{postcontent}}

Others

LICENSE

MIT