cryogen-project / cryogen

A simple static site generator written in Clojure
http://cryogenweb.org/
Eclipse Public License 1.0
1.09k stars 96 forks source link

Added Camouflage theme; updated other themes to provide richer OpenGraph tags. #260

Closed simon-brooke closed 1 year ago

simon-brooke commented 1 year ago

Hi all

This is the pull request I promised earlier today.

The Camouflage scheme is essentially the theme from my own blog, recoloured. Note particularly the 404 page, which uses embedded Google search and which consequently you may not like.

All themes are ammended to allow post config to contain meta-data like this:

{:author "Simon Brooke",
 :title "Please sir, we want more...",
 :date "2023-05-22",
 :tags ["Climate" "Politics" "UK Constitution"]
 :draft? false
 :description "Scotland needs immigrants and welcomes refugees. Why shouldn't we be able to admit them?"
 :image {:path  "/img/uploads/refugeeswelcome.png"
        :alt "White text, 'Can you imagine a land where refugees are welcome? Yes!' over a blue toned monochrome image showing Roza Salih, Kurdish refugee, being elected as a Glasgow City councillor."
        :width 600
        :height 424
        :type "image/jpeg"}}

(real example, page is here). If the value of the :image key is just a path string, that will be handled correctly, but if it's a map as shown, that too will be handled correctly. This format of post config is generated by the infer-meta pull request I submitted to cryogen-core this morning, but it can equally be manually edited into the markdown (or other markup) source files.