]> Sergey Matveev's repositories - stargrave-blog.git/log
stargrave-blog.git
3 years agoTopics example
Sergey Matveev [Thu, 15 Oct 2020 16:25:23 +0000 (19:25 +0300)]
Topics

0.8.x released added topics support: each page can have any number of
single-word topics (tag, mark, category). Per-post topic is kept in
separate notes branch. You can browse posts by topic, and receive
related Atom feed. For performance reasons you can optionally use
on-disk topic's cache.

3 years agorecfiles comments format
Sergey Matveev [Thu, 15 Oct 2020 16:23:11 +0000 (19:23 +0300)]
recfiles comments format

Latest 0.9.x release changes its format of comments storage. Instead of
concatenated text only netstrings, it uses GNU recutils'es recfile
format, that is record and field based out of box and can be easily
processed with external utilities.

3 years agoComments Atom feeds generation
Sergey Matveev [Thu, 21 May 2020 16:49:17 +0000 (19:49 +0300)]
Comments Atom feeds generation

Newest v0.6.0 release brings separate Atom feed for (all) comments and
comments per separate post.

4 years agoNotes and commentable page
Sergey Matveev [Sat, 9 May 2020 11:49:30 +0000 (14:49 +0300)]
Notes and commentable page

Actually every page (if globally enabled) could be commented. I will add
several comments to that one, just to show how they look like. Also I
will add an ordinary git note and it will be displayed separately.

4 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.

4 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!

4 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.

4 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.

4 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.

4 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.