Home About

Blogo Showcase

#showcase #blogo
~4 min read
by Blogo, 2023-09-02

Blogo focuses on simplicity and reading. As the writer you you just need to write Markdown and put it in a folder. As the reader, Blogo takes care of making it very easy and pleasant to read.

Overview

Philosophy

Blogo is intended to be as easy-to-read and easy-to-use as is feasible:

Elements

Paragraphs and Line Breaks

A paragraph is simply one or more consecutive lines of text, separated
by one or more blank lines. (A blank line is any line that looks like a
blank line -- a line containing nothing but spaces or tabs is considered
blank.) Normal paragraphs should not be indented with spaces or tabs.

The implication of the "one or more consecutive lines of text" rule is
that Markdown supports "hard-wrapped" text paragraphs. This differs
significantly from most other text-to-HTML formatters (including Movable
Type's "Convert Line Breaks" option) which translate every line break
character in a paragraph into a <br /> tag.

Syntax Highlighting

1// Golang
2func HandleRssFeed(w http.ResponseWriter, r *http.Request) {
3	w.Header().Set("Content-Type", "application/rss+xml")
4	w.Write([]byte(RssFeed()))
5}
1// Javascript
2function fancyAlert(arg) {
3  if(arg) {
4    $.facebox({div:'#foo'})
5  }
6}
1# Python
2def foo():
3    if not bar:
4        return True

Images

Tables

Name Age Addr Phone Occupation website
Alice 23 def 456 Designer def.com
Bob 27 abc 123 Engineer abc.com
Charlie 28 ghi 789 Woodworker ghi.com

Blockquotes

This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.

This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

Blockquotes can be nested:

This is the first level of quoting.

This is nested blockquote.

Back to the first level.

Blockquotes can contain other Markdown elements, including headers, lists,
and code blocks:

This is a header.

  1. This is the first list item.
  2. This is the second list item.

Here's some example code:

1return shell_exec("echo $input | $markdown_script");

Lists

Unordered (bulleted) lists:

Ordered lists use numbers followed by periods:

  1. Bird
  2. McHale
  3. Parish

To put a blockquote within a list item, the blockquote's >
delimiters need to be indented:

Code Blocks

You can use inline code in your Markdown text as well, which will be displayed in a monospaced font.

To produce a code block in Markdown, simply indent every line of the
block by at least 4 spaces or 1 tab.

This is a non syntax-highlighted code block.

Or you can add the code fence with three backticks before and after the code block. If you want to specify the language of the code block, you can add the language name after the backticks. For example, this:

```python
def foo():
    if not bar:
        return True
```

is rendered as:

1def foo():
2    if not bar:
3        return True

This is an example inline link.

Emphasis

single asterisks

single underscores

double asterisks

double underscores

Horizontal Rules

Three or more dashes or asterisks:


Will produce a horizontal rule.