109 lines
2.5 KiB
Plaintext
109 lines
2.5 KiB
Plaintext
# How to Write a Post
|
|
------------------------------------------------------------------------
|
|
|
|
Post has 2 sections : Before and After #1. #1 is the FIRST Title of your
|
|
post. #(1-6) are HTML titles (<h1> to <h6>).
|
|
- Before #1 is used to set METAs HEADERS to configure your Post.
|
|
- From #1 is the CONTENT of your Post
|
|
|
|
## NEEDED HEADERS (before #1)
|
|
Register METAs for HTML Page content
|
|
|
|
```
|
|
title: POST TITLE
|
|
slug: POST-TITLE (if space in slug GSL will convert them)
|
|
info: DESCRIPTION (about the Post)
|
|
author: NAME (must be registred ($ gsl author add)
|
|
date: YYYY-MM-DD
|
|
tags: TAG1,OTHER TAG2,TAG3 (comma separated)
|
|
```
|
|
|
|
### Admin Header
|
|
Admin can define specific type of content. If no type defined, GSL will
|
|
add at first line the default value: "type: post".
|
|
|
|
TYPE:
|
|
- post < classic content
|
|
- page < used to define main index, 404, about...
|
|
|
|
```
|
|
type: TYPE
|
|
```
|
|
|
|
GSL will create html file according to slug. Do not add .html to slug.
|
|
- post < /slug/index.html
|
|
- page < /slug.html
|
|
|
|
## Optional HEADERS (before #1)
|
|
Register METAs for CONTENT. " : " field separator
|
|
|
|
```
|
|
abbr: SHORT : LONG
|
|
file: NAME : FILENAME : Alt Text
|
|
link: NAME : URL : Alt Text
|
|
code: NBR : FILENAME : Alt Text
|
|
image: NBR : FILENAME : ALT-TEXT
|
|
```
|
|
|
|
## CONTENT Post:
|
|
In Content Post, markers (i.e. __My Great file) must be on the SAME line.
|
|
For ABBRs, just write SHORT in your content
|
|
|
|
```
|
|
# Paragraphs
|
|
At begining of new line, open with ( and close with )
|
|
(
|
|
This is a paragraph
|
|
)
|
|
|
|
# Register in Header. link: My Great link : URL : Alt text
|
|
_My Great Link
|
|
|
|
# Register in Header. file: My Great file : FILENAME : ALT-TEXT
|
|
__My Great file
|
|
|
|
# Register in Header. image: 1 : FILENAME : ALT-TEXT
|
|
__image:1
|
|
|
|
# Block-Code File: Register in Header. code: 1 : FILENAME : Alt Text
|
|
__code:1
|
|
|
|
# Write in ITALIC
|
|
/_this em text_/
|
|
|
|
# Write in STRONG
|
|
**_this strong content_**
|
|
|
|
# BOLD
|
|
*_this bold content_*
|
|
|
|
# Inline-code (¤ = alt-gr + $ on FR keyboard)
|
|
¤_push()_¤
|
|
|
|
# Simple Blockquote
|
|
---
|
|
(
|
|
A simple great quote
|
|
)
|
|
---
|
|
|
|
# Advanced Blockquote
|
|
---
|
|
_cite : Richard Matthew Stallman
|
|
_link : https://stallman.org/
|
|
_lang : en
|
|
(
|
|
In the free/libre software movement, we develop software that respects
|
|
users' freedom, so we and you can escape from software that doesn't. I
|
|
could have made money this way, and perhaps amused myself writing code.
|
|
But I knew that at the end of my career, I would look back on years of
|
|
building walls to divide people, and feel I had spent my life making the
|
|
world a worse place
|
|
)
|
|
---
|
|
|
|
# For advanced blockquotes, you can also add, if known:
|
|
_year: 2021
|
|
_book: Esperanza 64
|
|
```
|