You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Niko Abeler 98e9a3b9d2 less rows for image 11 months ago
.vscode refactoring 1 year ago
assets removed reference 1 year ago
cmd/owl photo post type 11 months ago
embed less rows for image 11 months ago
fixtures photo post type 11 months ago
test tests for editor 1 year ago
.gitignore renamed old file 1 year ago
Dockerfile adjust Dockerfile 1 year ago warning 1 year ago
auth_test.go redirect uri verification 1 year ago
directories.go resolved warnings 1 year ago
embed.go refactoring rendering 1 year ago
files.go refactoring yaml save/load into functions 1 year ago
go.mod setting user password 1 year ago
go.sum setting user password 1 year ago
html.go split webmention into html and http 1 year ago
http.go split webmention into html and http 1 year ago
owl_test.go WIP redirect_uri verification 1 year ago
post.go photo post type 11 months ago
post_test.go clean up interface 1 year ago release 1 year ago
renderer.go clean up interface 1 year ago
renderer_test.go recipe post 11 months ago
repository.go clean up interface 1 year ago
repository_test.go clean up interface 1 year ago
rss.go Refactoring Posts to allow multiple types 1 year ago
rss_test.go remove old new post function 1 year ago
user.go discard post types. Need a new approach for this 1 year ago
user_test.go clean up interface 1 year ago
utils.go CSRF 1 year ago
webmention.go split webmention into html and http 1 year ago
webmention_test.go WIP redirect_uri verification 1 year ago


Owl Blogs

A simple web server for blogs generated from Markdown files.

This project is not yet stable. Expect frequent breaking changes! Only use this if you are willing to regularly adjust your project accordingly.


A repository holds all data for a web server. It contains multiple users.


A user has a collection of posts. Each directory in the /users/ directory of a repository is considered a user.

User Directory structure

  \- public/
       \- <post-name>
                -- This will be rendered as the blog post.
                -- Must be present for the blog post to be valid.
                -- All other folders will be ignored
            \- incoming_webmentions.yml
                -- Used to track incoming webmentions
            \- outgoing_webmentions.yml
                -- Used to track outgoing webmentions
            \- media/
                -- Contains all media files used in the blog post.
                -- All files in this folder will be publicly available
            \- webmention/
               \- <hash>.yml
                    -- Contains data for a received webmention
  \- meta/
       \- base.html
            -- The template used to render all sites
       \- config.yml
            -- Holds information about the user
       \- VERSION
            -- Contains the version string.
            -- Used to determine compatibility in the future
  \- media/
       -- All this files will be publicly available. To be used for general files
       \- avatar.{png|jpg|jpeg|gif}
            -- Optional: Avatar to be used in various places
       \- favicon.{png|jpg|jpeg|gif|ico}
            -- Optional: Favicon for the site

User Config

Stored in meta/config.yml

title: "Title of the Blog"
subtitle: "Subtitle of the Blog"
header_color: "#ff0000"
author_name: "Your Name"
  - name: "Connect on Mastodon"
    url: ""
  - name: "I'm on Twitter"
    url: ""


Posts are Markdown files with a mandatory metadata head.

  • The title will be added to the web page and does not have to be reapeated in the body. It will be used in any lists of posts.
  • description is optional. At the moment this is only used for the HTML head meta data.
  • aliases are optional. They are used as permanent redirects to the actual blog page.
  • draft is false by default. If set to true the post will not be accessible.
  • reply optional. Will add the link to the top of the post with rel="in-reply-to". For more infos see:
title: My new Post
Description: Short text used in meta data (and lists in the future)
date: 13 Aug 2022 17:07 UTC
     - /my/new/post
     - /old_blog_path/
draft: false
     text: Text used for link

Actual post


This feature is not yet full supported and needs a lot of manual work. Expect this to change quiet frequently and breaking existing usages.

To send webmentions use the command owl webmention

Retrieved webmentions have to be approved manually by changing the approval_status in the incoming_webmentions.yml file.


- source:
  title: Example Post
  approval_status: ["", "approved", "rejected"]
  retrieved_at: 2021-08-13T17:07:00Z


- target:
  supported: true
  scanned_at: 2021-08-13T17:07:00Z
  last_sent_at: 2021-08-13T17:07:00Z