site  contact  subhomenews

Buttons for bashblog

August 25, 2017 — BarryK

See the buttons along the top!

They change, depending on whether the front-page, a post, archive-page, or tags-page is being viewed.

The contact form is a php script, that I got from here:

http://form.guide/contact-form/creating-a-contact-form.html

However, it does not work with php7. My host has php version 7.1.7. But, it was just a couple of functions that are no longer in php7, and I was able to substitute others.

I substituted the split() function with explode(), parameters unchanged.
Another script has the eregi() function, and I did this:

    /*BKreturn eregi("^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$", $email);*/
    return preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/",$email);

I don't know php at all, just found the alternative code for email checking using preg_match() in another script.

Tags: bashblog

Geany markdown plugin

August 23, 2017 — BarryK

This is the icing on the cake! This is a brand-new Bashblog blog, a static site, just plain html pages. Posts are created in an editor, using markdown punctuation. The bb.sh script builds the web pages.

What was missing is a markdown editor. I hunted online, found some that look nice, but are massive. These are some binary package sizes:

Abricotine 51MB
Haroopad 41MB

Finally, looking in the PPM, I discovered the Geany text editor has a markdown plugin. Here is the website:

https://plugins.geany.org/markdown.html

Photo:

photo

What is really great is that there is a preview pane. You absolutely need that while learning markdown. I am using it now to create this post, and I can see the photo.

The plugin is not tiny, as it requires webkitgtk, but that's ok, compared with the alternatives.

Tags: bashblog

Bells and whistles for this blog

August 23, 2017 — BarryK

I am getting this blog to look how I want it. Minimalist, but with enough features to be useful and nice for the user.

Undecided about Disqus. My previous blog had comments disabled for a very long time, and that turned out to be OK. There is the Puppy Forum for discussion, and if I have a contact form, or email, that should be enough.

Disqus also slows down page loading.

You will see one smallish icon at the top-left. I intend that there will be a row of them, quick links to various places.

Tags: bashblog

Bashblog local development

August 23, 2017 — BarryK

I posted this to github:

https://github.com/cfenollosa/bashblog/issues/138

Reproducing here (and gives me a chance to practice typing in markdown):

Read more...