]> Sergey Matveev's repositories - stargrave-blog.git/log
stargrave-blog.git
5 years agoAre there any big blog and phlog examples?
Sergey Matveev [Sat, 9 May 2020 11:49:14 +0000 (14:49 +0300)]
Are there any big blog and phlog examples?

http://blog.stargrave.org/russian/
gopher://phlog.stargrave.org/
Currently my own blog is the best example with many posts in it. Well,
unfortunately it is solely on russian, but at least you can look how
many posts will look like.

5 years agoPhlog and gopher support
Sergey Matveev [Sat, 9 May 2020 11:49:03 +0000 (14:49 +0300)]
Phlog and gopher support

If you run sgblog -gopher, then it will act as inetd service and a
gopher server. Gopher mode has more limited features, mainly because of
gopher protocol itself. But looking for the index of posts, listing its
pages and showing the actual post works as expected.

Actually you are not forced to use HTTP service at all, leaving only
gopher part!

5 years agoAtom feeds support
Sergey Matveev [Sat, 9 May 2020 11:48:54 +0000 (14:48 +0300)]
Atom feeds support

Well, /feed.atom will contain desired Atom feed. It just automatically
works. Each entry carries the whole posts (whole log message), not only
their titles.

SGBlog fully supports gzip-compression and ETag checking for Atom feeds
too, likely heavily reducing feeds fetching traffic.

But there is no Atom support in -gopher mode.

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.