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 c0151dbc15 refactored webmentions to use a single file for in and out going mentions 5 months ago
.vscode refactoring 7 months ago
assets removed reference 6 months ago
cmd/owl refactored webmentions to use a single file for in and out going mentions 5 months ago
embed title include blog title 5 months ago
.gitignore renamed old file 6 months ago
Dockerfile adjust Dockerfile 5 months ago
README.md WIP outgoing webmentions 5 months ago
directories.go limit posts to single depth directory 6 months ago
embed.go refactoring rendering 6 months ago
go.mod start to use a proper cli library 5 months ago
go.sum start to use a proper cli library 5 months ago
owl_test.go refactoring to have full http response in parser 5 months ago
post.go refactored webmentions to use a single file for in and out going mentions 5 months ago
post_test.go refactored webmentions to use a single file for in and out going mentions 5 months ago
release.sh release 5 months ago
renderer.go twitter handle + refactor user config in renderer 5 months ago
renderer_test.go refactored webmentions to use a single file for in and out going mentions 5 months ago
repository.go refactoring to have full http response in parser 5 months ago
repository_test.go refactoring to have web config (single user, unsafe) in config of repo 5 months ago
rss.go refactoring reading Meta and RenderedContent 6 months ago
rss_test.go items in rss feed. #3 6 months ago
user.go refactored webmentions to use a single file for in and out going mentions 5 months ago
user_test.go refactoring to have web config (single user, unsafe) in config of repo 5 months ago
webmention.go improved header parsing 5 months ago
webmention_test.go improved header parsing 5 months ago

README.md

Mascot

Owl Blogs

A simple web server for blogs generated from Markdown files

Repository

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

User

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

User Directory structure

<user-name>/
  \- public/
       \- <post-name>
            \- index.md
                -- This will be rendered as the blog post.
                -- Must be present for the blog post to be valid.
                -- All other folders will be ignored
            \- status.yml
                -- Used to track various process status related to the post, 
                -- such as if a webmention was sent.
            \- 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
       \- VERSION
            -- Contains the version string.
            -- Used to determine compatibility in the future
  \- config.yml
        -- Contains settings global to the user.
        -- For example: page title and style options

Post

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.
  • aliases are optional. They are used as permanent redirects to the actual blog page.
---
title: My new Post
date: 13 Aug 2022 17:07 UTC
aliases:
     - /my/new/post
     - /old_blog_path/
---

Actual post

status.yml

webmentions:
     - target: https://example.com/post
       supported: true
       scanned_at: 2021-08-13T17:07:00Z
       last_sent_at: 2021-08-13T17:07:00Z