orion

command module
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

README

Orion Buy me a tree

A static site generator written in Go to create a simple blog from Markdown files.

This is not intended to create complex websites, the excellent Hugo does that extremely well already!

CLI Actions
  • orion version : displays the current version of Orion
  • orion init : creates a new Orion directory to start a new blog (with 2 or 3 fake articles)
  • orion article article-file-name : creates a new markdown article (may be a draft, hence not published)
  • orion build : exports the markdown to html
  • orion serve : builds and starts a small server to show your blog

You can use the --help or -h flag for each action to know more

Directory structure
.
├── articles
├── config.yaml
├── public
├── static
└── themes

/articles Contains all the markdown files for your articles

config.yaml The configuration of your site

/public The build directory (the files that will be deployed into production)

/static All the assets you want to use (images for articles, for exemple)

/themes It contains the different themes you can use, each folder representing a them with it's own assets: html layout, css, images, ...

Front matter

We can use the following values in articles, which will be located at the top of the file in between ---.

Some of those values can be set globally in the config.yaml file

---
title: My great title
description: This is a small summary of my article
slug: my-super-slug
canonical:
robots:
published_at:
template:

opengraph:
    type:
    image:
    site_name:

twitter:
    card:
    site:
    creator
---

The actual markdown content
How to build and package the assets
chmod +X ./scripts/build.sh
./scripts/build.sh
Credits

The favicon was made by Denis Moskowitz from the Noun Project.

Documentation

Overview

Copyright © 2020 Adrian Tombu <adrian@otso.fr>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Directories

Path Synopsis
cmd
Package cmd regroups all the accessible commands of Orion Package cmd regroups all the accessible commands of Orion Package cmd regroups all the accessible commands of Orion Package cmd regroups all the accessible commands of Orion Package cmd regroups all the accessible commands of Orion Package cmd regroups all the accessible commands of Orion
Package cmd regroups all the accessible commands of Orion Package cmd regroups all the accessible commands of Orion Package cmd regroups all the accessible commands of Orion Package cmd regroups all the accessible commands of Orion Package cmd regroups all the accessible commands of Orion Package cmd regroups all the accessible commands of Orion
build
Package build handles the compilation of the files
Package build handles the compilation of the files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL