-- Leo's gemini proxy

-- Connecting to gemini.bunburya.eu:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

A simple Git-based blogging platform and SSG that lets you dual-host on Gemini and the Web

https://www.reddit.com/r/geminiprotocol/comments/132hi80/a_simple_gitbased_blogging_platform_and_ssg_that/

created by SnooDingos2835 on 29/04/2023 at 02:59 UTC

9 upvotes, 2 top-level comments (showing 2)


I made a simple blogging platform based around Git and written in Bash that can easily dual-host a blog on Gemini and the Web. It automatically generates a static index page (in both Gemtext and HTML), and uses a simple template system to generate static HTML pages from the blog entries. The default Web theme does not use any JavaScript, and supports different screen sized as well as light and dark themes.


The Web version of the blog can be hosted on most static hosting providers. It can also be easily deployed to the edge via Cloudflare Pages.


Here is a public demo site[1] using the default theme, generated from Gemtext. Unfortunately it is not accessible via Gemini at this moment.


1: https://ssg-1cm.pages.dev/


Here's the code!



Comments


Comment by ErnstlAT at 11/06/2023 at 20:13 UTC

2 upvotes, 0 direct replies


Sourcehut (https://sr.ht/[1]) allows hosting Gemini pages and serving them via Gemini protocol and since it is Git, they are version-tracked.


1: https://sr.ht/


Comment by DarkChyper at 29/04/2023 at 08:38 UTC

1 upvotes, 1 direct replies


That's funny that most of people who create a gemlog create a script that make both Gemini capsules and static html page. I do the same with php, https://gitlab.com/DarkChyper/gemblog[1] ant it's directly inspired of another blog/gemlog made with Python. gemini://ploum.net


1: https://gitlab.com/DarkChyper/gemblog


I'm curious how you did it in bash ! I will read your repository :)


-- Response ended

-- Page fetched on Thu May 2 19:28:33 2024