🚀
ShipClojure
  • README
  • Development
    • Getting Started
    • REPL Workflow
    • AI Development with ShipClojure
    • Getting Updates
    • Formatting code
    • ShipClojure Guiding Principles
  • Backend
    • Migrations
    • Secrets
    • Routing
    • ShipClojure Blog
    • Email
  • Frontend
    • UIx + re-frame
    • HTTP Requests with Re-frame
    • Frontend Navigation with Re-frame
    • Toast Notifications
    • Icons
  • Server Side Rendering
    • Static/Landing pages
  • Auth
    • How Auth works
    • Oauth2 providers
  • Deployment
    • Deployment
  • Decisions
    • 001 - Cookie Sessions
    • 002 - Single Page Application Architecture
    • 003 - Re-frame instead of Refx
    • 003 - Move from cookie sessions to JWT Access + refresh tokens
Powered by GitBook
On this page
  1. Backend

ShipClojure Blog

PreviousRoutingNextEmail

Last updated 1 month ago

ShipClojure supports blog posts for SEO through . Please read the docs for Quickblog if you want to configure it further.

You can see the configuration in on :quickblog/config key

:quickblog/config {:blog-title "ShipClojure Blog"
                    :blog-description  "A blog about shipping products FAST with Clojure"
                    :posts-dir "resources/blog/posts" ;; where we store posts
                    :templates-dir "resources/blog/templates" ;; where the templates are stored
                    :assets-dir "resources/blog/assets"
                    :out-dir "resources/public/blog"
                    :blog-root "/blog"
                    :relative-path "/blog/"
                    :twitter-handle "@ovstoica"
                    :favicon true
                    :favicon-dir "resources/public/favicons"}

Important: The blog config is read into babashka which does not support reader tags, so the :quickblog/config key needs to remail last in system.md

Adding a new blog post

$ bb quickblog new --file "test.md" --title "Test"

This will create the file resources/blog/posts/test.md.

To preview the post as you type it, run

bb quickblog watch

And then you can visit http://localhost:8080/blog/my-cool-post and you can see it there

Quickblog
system.edn