site  contact  subhomenews

ShellCMS now supports hit counter

February 02, 2020 — BarryK

This has been a long time coming. I have sometimes wondered how many people visit my blog, and today finally decided to do something about it.

My website is created with ShellCMS, a static site generator:

There are lots of free visitor counters available for a static site, many of them require running code such as Javascript at their site!!!

However, there are a few that are just <img> tag links, just return an image file. Tried four of them, three didn't work. The fourth one is good. It requires visiting their site and generate the code:

...the HTML code has a "page" number that is unique, and you must use that.

Look at the bottom of my blog main page, and you will see the counter: only appears on the main 'index.html' page, not on any sub-pages.

Support for visitor counter has been incorporated into ShellCMS, look at files 'shellcms' (comment #200202), 'cms_config/cms_footer.txt' and 'cms_config/hit-counter'. Here is the latest tarball: 

Tags: shellcms

Tag links fixed in shellCMS

March 03, 2018 — BarryK

I noticed in some cases the link to category pages was wrong. For example link to '' when it should have been ''.

Fixed, and latest tarball uploaded here:

For anyone interested in shellCMS, the frontpage is here: 

Tags: shellcms

shellCMS page links fix

February 10, 2018 — BarryK

In this blog, some categories have many posts. When viewing a particular category, for example "quirky", they are split over up-to 9 pages, 8 posts per page. The 9th page has a link to an index page, to find older posts.

However, it wasn't building quite right. It only built up to 5 pages, and the "Older" link on each page was wrong.

I studied the code and found the cause of the problem. The fixed shellCMS is uploaded:

Here is the "quirky" category, you can follow the "Newer" and "Older" links at the bottom of the page:

Read all about shellCMS here:  

Tags: shellcms

shellCMS bug fixes

November 10, 2017 — BarryK

There were a couple of bugs.

Using SeaMonkey Composer to create a new post, the shellcms script is supposed to wait until SM exits, before continuing with executing the script, however, sometimes did not wait. This was due to pidof being executed too soon.

When save a new post as a draft, the name of the file in the drafts folder was wrong.

The latest shellCMS is here:

GUI for shellCMS

Quirky and Easy still have PPLOG personal blog, in the "Personal" category of the menu. However, it no longer works.

I kept it in the menu, in the hope that it would be fixed. However, shellCMS can perform the same function, and a lot more. But first, I need to write a GUI for shellCMS.

shellCMS can then be used as a notes manager and blog, on local machine as well as a remote site. It may also be a replacement for Notecase.

The intention is, this shellCMS GUI will be in the next release of Pyro64.

Tags: shellcms

shellCMS category front-pages

September 17, 2017 — BarryK

I have added a very nice enhancement to shellCMS, per-category front-pages, and have written a tutorial page to introduce it:

Here is a front-page for the "shellcms" category:

Notice too, it has its own top-banner. Now, all posts in that category have that banner.

Tags: shellcms

Local www folder hierarchy matches remote site

September 14, 2017 — BarryK

When I first created shellCMS (forked from BashBlog), I specified the local copy of the website in a folder named LOCAL. If there is a nested shellCMS, say "news", then it was in LOCAL/news/LOCAL, which is getting weird. And difficult to understand when looking at shellCMS for the first time.

I have modified the shellcms script so that the local website is now www, and everything inside is exactly as it will be on the remote host. This greatly simplifies everything, and is easy to understand.

I have rewritten these tutorials accordingly:

There is another improvement that I want to work on next, that users will like. Hope to implement that tomorrow morning.

Tags: shellcms

Sitemap created for

September 10, 2017 — BarryK

I have written another documentation page for shellCMS, explaining how to create a sitemap file and submit it to Google:

It turned out to be very easy, and I am updating the sitemap every time that I do an upload.

Tags: shellcms