GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • python-substack
  • View the Project on GitHub ma2za/python-substack

This view

  • Original page
  • New address

GeezerVison is showing ma2za.github.io — YAML drafts

YAML drafts

The compatibility command substack-publish-yaml accepts Markdown-oriented YAML:

title: "My Post Title"
subtitle: "My Post Subtitle"
audience: "everyone"
write_comment_permissions: "everyone"
search_engine_title: "SEO title"
search_engine_description: "SEO description"
slug: "my-post-title"
tags:
  - python
  - substack
markdown: |
  # Introduction

  This post body is Markdown.

The Markdown can also live in a separate file:

title: "My Post Title"
markdown_file: "post.md"

Relative Markdown paths resolve from the YAML file’s directory.

The lower-level node form remains supported:

title: "My Post Title"
subtitle: "My Post Subtitle"
body:
  0:
    type: "heading"
    level: 1
    content: "Introduction"
  1:
    type: "paragraph"
    content: "This is a paragraph."
  2:
    type: "captionedImage"
    src: "local_image.jpg"

Create a draft:

substack-publish-yaml draft.yaml

Publish only when explicitly requested:

substack-publish-yaml draft.yaml --publish --no-send
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.