2022-02-16 14:11:41 +01:00
|
|
|
# How to Write a Post
|
2022-02-27 19:16:16 +01:00
|
|
|
------------------------------------------------------------------------
|
2022-02-16 14:11:41 +01:00
|
|
|
|
2022-02-27 19:16:16 +01:00
|
|
|
Post has 2 sections : Before and After #1. #1 is the FIRST Title of your
|
2022-02-16 14:11:41 +01:00
|
|
|
post. #(1-6) are HTML titles (<h1> to <h6>).
|
|
|
|
- Before #1 is used to set METAs HEADERS to configure your Post.
|
2022-02-27 19:16:16 +01:00
|
|
|
- From #1 is the CONTENT of your Post
|
2022-02-16 14:11:41 +01:00
|
|
|
|
|
|
|
## 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)
|
2022-02-27 19:16:16 +01:00
|
|
|
author: NAME (must be registred ($ gsl author add)
|
2022-02-16 14:11:41 +01:00
|
|
|
date: YYYY-MM-DD
|
|
|
|
tags: TAG1,OTHER TAG2,TAG3 (comma separated)
|
|
|
|
```
|
|
|
|
|
2022-02-17 11:03:25 +01:00
|
|
|
### 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
|
|
|
|
|
2022-02-16 14:11:41 +01:00
|
|
|
## Optional HEADERS (before #1)
|
|
|
|
Register METAs for CONTENT. " : " field separator
|
|
|
|
|
|
|
|
```
|
|
|
|
abbr: SHORT : LONG
|
2022-02-27 19:16:16 +01:00
|
|
|
file: NAME : FILENAME : Alt Text
|
|
|
|
link: NAME : URL : Alt Text
|
|
|
|
code: NBR : FILENAME : Alt Text
|
2022-02-16 14:11:41 +01:00
|
|
|
image: NBR : FILENAME : ALT-TEXT
|
|
|
|
```
|
|
|
|
|
|
|
|
## CONTENT Post:
|
2022-02-27 19:16:16 +01:00
|
|
|
In Content Post, markers (i.e. __My Great file) must be on the SAME line.
|
2022-02-16 14:11:41 +01:00
|
|
|
For ABBRs, just write SHORT in your content
|
|
|
|
|
|
|
|
```
|
|
|
|
# Paragraphs
|
|
|
|
At begining of new line, open with ( and close with )
|
2022-03-01 12:39:16 +01:00
|
|
|
Set till 3 different classes with ( 1 ( 2 ( 3
|
|
|
|
( 2
|
|
|
|
This is a paragraph with class 2
|
2022-02-16 14:11:41 +01:00
|
|
|
)
|
|
|
|
|
2022-03-01 12:39:16 +01:00
|
|
|
# Register in Header. link: My Great Link : URL : Alt text
|
2022-02-27 19:16:16 +01:00
|
|
|
_My Great Link
|
2022-03-01 12:39:16 +01:00
|
|
|
_My Great Link+ # Open in new tab
|
2022-02-27 19:16:16 +01:00
|
|
|
|
|
|
|
# Register in Header. file: My Great file : FILENAME : ALT-TEXT
|
|
|
|
__My Great file
|
|
|
|
|
|
|
|
# Register in Header. image: 1 : FILENAME : ALT-TEXT
|
2022-03-02 14:27:50 +01:00
|
|
|
_image:1:[OPT l|r|c (left, right, center, alignment)]
|
|
|
|
_image:1:r
|
2022-02-27 19:16:16 +01:00
|
|
|
|
|
|
|
# Block-Code File: Register in Header. code: 1 : FILENAME : Alt Text
|
2022-03-02 14:27:50 +01:00
|
|
|
_code:1
|
2022-02-16 14:11:41 +01:00
|
|
|
|
|
|
|
# Write in STRONG
|
2022-03-01 12:39:16 +01:00
|
|
|
**this strong content**
|
|
|
|
this un**believe**able content
|
|
|
|
this border**line** content
|
2022-02-16 14:11:41 +01:00
|
|
|
|
|
|
|
# BOLD
|
2022-03-01 12:39:16 +01:00
|
|
|
*this bold content*
|
|
|
|
...
|
|
|
|
|
|
|
|
# Write in ITALIC
|
|
|
|
/this em text/
|
2022-02-16 14:11:41 +01:00
|
|
|
|
|
|
|
# Inline-code (¤ = alt-gr + $ on FR keyboard)
|
2022-03-01 12:39:16 +01:00
|
|
|
¤push()¤
|
2022-02-16 14:11:41 +01:00
|
|
|
|
2022-03-08 17:53:40 +01:00
|
|
|
# Simple Blockquote: Use 3 "-"
|
2022-02-16 14:11:41 +01:00
|
|
|
---
|
|
|
|
(
|
|
|
|
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
|
|
|
|
)
|
|
|
|
---
|
|
|
|
|
2022-02-27 19:16:16 +01:00
|
|
|
# For advanced blockquotes, you can also add, if known:
|
|
|
|
_year: 2021
|
|
|
|
_book: Esperanza 64
|
2022-03-08 17:53:40 +01:00
|
|
|
|
|
|
|
# Create Lists
|
|
|
|
Use = to create an item. You can use infinite sub-items, but each Item
|
|
|
|
of a list MUST be on the same Line
|
|
|
|
(
|
|
|
|
Let's start a list
|
|
|
|
= Item 1 is *great*
|
|
|
|
== sub-item 1
|
|
|
|
== sub-item 2
|
|
|
|
=== sub-sub-item 1 of sub-item 2
|
|
|
|
== sub-item 3
|
|
|
|
= Item 2
|
|
|
|
** sub-item 1 of Item 2
|
|
|
|
This list is ended
|
|
|
|
)
|
2022-02-16 14:11:41 +01:00
|
|
|
```
|