All Blogophon articles are written in Github Flavored Markdown
. For creating a new article use the blogophon
command menu or see the instructions for manual operations.
At the beginning of each Markdown file you can add an optional YAML front matter section for meta information. A typical Blogophon-Markdown document may look like this:
---
{{YAML front matter}}
---
{{Your text, written in Markdown…}}
At the beginning of each post there is a YAML block for metadata. This block will not be shown in your article, but will contain extra data for your article.
Each YAML declaration starts with the declaration key, followed by :
, a whitespace, and a declaration value. Please note the uppercased first letter in each declaration key.
All of these declarations are optional.
Title: 'Title' # Title of document. If not set the first line of your Markdown
# will be used as title.
Description: 'Some nice text' # Teaser text. If not set will be generated from article text.
# For details see below.
Date: 2016-08-25T19:13:12+02:00 # Publishing date in ISO-8601.
# If not set this will be taken from the file date.
# If this date set into the future, the article will not be
# published until the date is reached.
DateModified: 2016-08-26 # Last modified date in ISO-8601.
# If not set this will be taken from the file's last modified date.
Tags: Tag, Tag # Comma-separated list of tags / keywords.
Category: My little category # Category the article belongs to.
Twitter: '#Hashtag and some text' # This text will be used on Twitter.
# If not set will default to title of document.
Classes: Images # Sets the article type. E.g. `Images`, `Link`. This will be used
# as `class` attribute on the article, allowing for special CSS.
Location: Lista Lighthouse, Norway # Plain address this post is supposed to be located at.
Marker: marker # Marker symbol on for this location. You may want to use symbol
# names supplied via https://www.mapbox.com/maki-icons/.
Latitude: 58.109285 # Geolocation decimal latitude in WGS84, ranging from -90 to 90.
# If not given will be inferred from `Location` if given.
Longitude: 6.5664576 # Geolocation decimal longitude in WGS84, ranging from -180 to 180.
# If not given will be inferred from `Location` if given.
Language: en # Language of current article, given in ISO 639-1 or RFC1766.
# If not set will default to blog's language.
Author: Name <[email protected]> # Author name and email.
# If not set will default to blog's main author.
AuthorTwitter: example # Author's Twitter acount name.
# If not set will default to blog's main Twitter account.
Image: /post/image/image.png # Image URL used for sharing. It is best to make this URL absolute.
# If not set the first image found in the article text will be used.
Link: http://www.example.com/ # If given clicking on links to this article redirects to this URL
# instead of the original post's link.
Rating: 1/5 # Rating given in a review, with `x` out of `y`, `1` being the lowest
# possible rating.
Draft: true # If set to `true` this will prevent the article from being published.
# Use this for drafts.
NoWebmention: true # If set to `true` no Webmentions will be sent.
Schema: https://schema.org/TechArticle # Change schema.org `itemtype` of this article, default is http://schema.org/BlogPosting
Because the teaser text uses Markdown (see below), you may also use multiline description field for YAML frontmatter like this:
Description: |
This multiline teaser text may contain [Markdown](https://www.example.com/). It is most important that the first line is a pipe symbol, `|`.
All your line breaks are belong to us.
There are also special post types, which are activated by choosing a special Classes
value. These may also alter Schema
if you have not chosen to do so manually (see above).
To get you started quickly, here is a small Markdown example. For more information check out the full documentation for "Github Flavored Markdown". There is also a small guide on how to use _
and <i>
for meaningful italics.
Title of your document
======================
Some paragraph with **bold** text, linking to [an example](https://www.example.com/).
Another paragraph with some _emphasized_ and <i>emphasized</i> text.
And there is also `typewriter-style code`.
* This is a unordered list.
* This [example](https://www.example.com/ "nomention") will not be mentioned by Webmentions.
* This [example](https://www.example.com/ "nofollow") will not followed by search engine robots.
The most simple way to provide a teaser text for index pages is to set it via the YAML front matter block.
Another way to generate a teaser text is to split your article text via a single line ***
(which normally would result in a horizontal line). The first part above the ***
will be used as description, and both parts for the full version of the text:
This part can be seen on index pages as well as article pages.
***
And this part will only be shown on article pages.
If you do not use one of the methods mentioned above, the Blogophon will build a teaser text from article text by using the first 160 characters.
Attachment files are files you want to use for your article. These files may be images, audio and video files, or any other type of document you can think of.
Put attachment files into the same directory as your article:
/user/posts/example/index.md # Markdown file
/user/posts/example/image.jpg # Attachment file folder with example image
/user/posts/example/example.pdf # Attachment file folder with example PDF document
If you are using the old method of creating Markdown files, put attachments into a folder having the same name as the corresponding Markdown file without the file suffix .md
:
/user/posts/example.md # Markdown file
/user/posts/example/image.jpg # Attachment file folder with example image
/user/posts/example/example.pdf # Attachment file folder with example PDF document
Attachments can be easily linked to from your article by putting linking the file name without any additional path names:
This is a [link to your file](example.pdf) in Markdown.
Remember to use safe file names. A safe file name must only consist of the following characters:
- Letters from A-Z, omitting special characters like
ü
,è
etc. - Numbers
- Dashes and dots (
-
,_
,.
)
Link images from your attachment directory into your Markdown file like this:
![Image description](image.jpg) _produces an unscaled image_
![Image description](image.jpg#default) _produces an image, which will be scaled to match the `default` style_
![Image description](image.jpg#quad) _produces an image, which will be scaled to match the `quad` style_
![Image description](image.jpg#320x240) _mark up this image as being 320 wide and 240 high_
![> Image description](image.jpg) _produces an unscaled image with visible image description_
It is always wise to use image styles for JPGs, GIFs, PNGs, WEBPs and SVGs. These styles scale your images to a sensible size. For bitmap images using styles will also produce responsive image variants. If you want to use WebP, be sure to check if the local version of ImageMagick is capable of handling WebP conversion.
If you do not use image styles, consider to at least state the size of the image. This will tell the browser what size of image to expect and speed up the rendering of the whole page while the image has not yet loaded.
See instructions for attachments on how to upload files.
To show video and audio files you just have to use the regular Markdown used for images:
![Audio description](audio.mp3) _produces an audio player_
![Video description](video.mp4) _produces an video player_
![Video description](video.webm) _produces an video player_
Supported file types for audio: .m4a
, .mp3
, .oga
, .ogg
.
Supported file types for video: .m4v
, .mp4
, .mpg
, .ogv
, .webm
.
If you want to use the Blogophon for podcasts or video casts, you will have to add an Enclosure
property to the YAML front matter section of your article, containing the attachment(s):
Enclosure: audio.mp3
See instructions for attachments on how to upload files.
For displaying a embedded video player for YouTube, Vimeo or Spotify, just put a link to the given video into a single line. This will be converted to a full blown video / audio player.
This will be rendered as Youtube player
https://www.youtube.com/watch?v=pTCROLZLhDM
As will this:
[Introduction To Markdown Using Visual Studio Code](https://www.youtube.com/watch?v=pTCROLZLhDM)
For displaying a Giphy image, just put a link to the Giphy page into a single line. This will be converted to the corresponding image.
For displaying code examples from CodePen, Github Gist or JSFiddle, just put a link to the page into a single line. This will be converted to the corresponding example script.
There are some Markdown codes in the Blogophon to add special characters like Emojis to your HTML output:
Markdown | Results in… | Description |
---|---|---|
­ |
Soft hyphen, to break words across lines by inserting visible hyphens | |
|
Non-breaking space, prevents an automatic line break at its position | |
-- |
— | Em dash |
(C) |
© | Copyright sign |
(R) |
® | Registered sign |
(TM) |
™ | Trade mark sign |
(+-) |
± | Plus-minus sign |
(1/2) |
½ | Fraction, works for most common fractions |
For more Emojis and special characters refer to the ASCII Emoji conversion table, or consult a Emoji UTF-8 table and convert a code like U+1F680
into 🚀
.
| \ | A | B | C |
| ----- | --- | --- | --- |
| **1** | X | X | X |
| **2** | O | X | |
| **3** | | O | O |
In this example the first line of the table will be treated as table header. The first column will be treated as row header, because its content is enclosed in **
.
To add a table caption simply put a headline level 5 in front of your table:
##### Tic Tac Toe
| \ | A | B | C |
| ----- | --- | --- | --- |
| **1** | X | X | X |
| **2** | O | X | |
| **3** | | O | O |
Colons can be used to align columns:
##### Tic Tac Toe
| \ | A | B | C |
|:--- | ---:|:---:|:--- |
| 1 | X | X | X |
| 2 | O | X | |
| 3 | | O | O |
- If the header separator is prepended by a
:
, the column content will be left-aligned. - If the header separator is appended by a
:
, the column content will be right-aligned. - If the header separator is enclosed by
:
, the column content will be centred. - If the first column is aligned to the left, the cells in this column will be used as row headers for their respective rows.
Fenced code blocks are used for longer listing and are started like this:
```
Your code here
```
You can add an optional language identifier to enable syntax highlighting in your fenced code block by prepending a language identifier just after the opening ticks:
```javascript
Your code here
```
The following identifiers are supported:
abc
to output abc music notation examplesapacheconf
axiom
for Exapunks' AXIOMcss
html
ini
markdown
to output Markdown examples.nginx
shell
,dos
,bash
for shell examples. Lines starting with$
are interpreted as shell input, all other lines as shell output.sql
xml
yaml
All other languages will be converted with a catch-all code highlighter, which works well enough for php
and javascript
, as well as most other programming languages.
Markdown offers ordered and unordered lists by default. The Blogophon adds some extra lists:
* [ ] _Produces an empty checkbox_
* [X] _Produces a checked checkbox_
* **Term**: Definition of this term
* **Another term**: Definition of _this_ term
For citing quotes there is a Markdown element called "blockquote". It will display as indented text:
> When shall we three meet again
> In thunder, lightning, or in rain?
-- <cite>Macbeth</cite>, William Shakespeare
…with the appended paragraph beginning with --
being the optional source of the quote. If the source is linked, some extra HTML will be generated to properly attribute your quote.
A special form of quote is a pull-quote. This is often used to show a witty sentence of your article for quick readers to grab their attention, without breaking the flow of text.
>! Get started with Markdown!
Conversations between multiple persons are like a collection of quotes, introduced by the person speaking / writing:
-- First Witch
> When shall we three meet again
> In thunder, lightning, or in rain?
-- Second Witch
> When the hurlyburly's done,
> When the battle's lost and won.
The Blogophon supports Web Components in your Markdown. Web Components enhance your article with additional presentational effects.
The Blogophon comes with no integrated Web Components, but you can read the development guide on how to add more Web Components.
* [This link will have a bubble help "Title goes here"](https://www.example.com "Title goes here").
* [This link leads to an alternative version of this article](https://www.example.com "alternate").
* [This link leads to an external URL](https://www.example.com "external").
* [This link should not be followed by search engines](https://www.example.com "nofollow").
* [This link should not be pinged by webmentions](https://www.example.com "nomention").
* [This link leads to a tag page](https://www.example.com "tag").
* [This link leads to a downloadable file](https://www.example.com "download").
See also rel
link types.
Return to table of contents.