]> Sergey Matveev's repositories - stargrave-blog.git/log
stargrave-blog.git
5 years agoURLs support
Sergey Matveev [Sat, 9 May 2020 11:48:27 +0000 (14:48 +0300)]
URLs support

SGBlog has simple regexp that can automatically create <a href>-s for
something that looks like URL. But it has hard coded possible schemes:

    ftp://
    gopher://
    http://
    https://
    telnet://

Also if it sees something like 9a8e5797c8b2335a67868912900b742962083b6b
then it will recognize it as a commit's hash and create link to it.

5 years agoPost formatting
Sergey Matveev [Thu, 7 May 2020 22:02:03 +0000 (01:02 +0300)]
Post formatting

https://en.wikipedia.org/wiki/Example.com
https://en.wikipedia.org/wiki/URL
Each post is just an ordinary Git commit, but consisting only of log
message. You can easily create that kind of commits with:

    $ git commit --allow-empty

Each post has the title: it is just its first line, separated with the
blank line from the remaining body. Well, again, just like with ordinary
commits.

If first lines of a body are URLs, then their domains will be displayed
on the index page. It is convenient to see that some post relates to
YouTube video, some kind of news website and so on.

5 years agoExample SGBlog's blog creation
Sergey Matveev [Sun, 17 Jan 2016 12:26:39 +0000 (15:26 +0300)]
Example SGBlog's blog creation

This is the first post in it. I will describe some of its features.