DAVBlog, but with a cleaner redesign and SEO optimization.
I recommend installing this alongside rendertron-boilerplate to ensure your side remains embeddable and searchable.
Originally written for my own blog, check it out here.
Clone this repo and then:
yarn install
yarn run build
Adjust the site name and the side navigation panel to your needs. (src/App.vue
and src/vendor/side-nav.vue
respectively).
Now copy the build folder to the root folder of whatever site you are hosting. In production, DAVBlog by default expects a WebDAV-capable share on the dav
subdomain of the domain it's being hosted on.
What that means is, if you are hosting DAVBlog on example.com
, then dav.example.com
must be DAV-capable (and ensure CORS is set up).
While DAVBlog V1 relied on the WebDAV server to list files, and then used that to build the directory listing, DAVBlog V2 and V3 does not rely on PROPFIND-based directory listing for privacy reasons. I specifically implemented this to be able to have non-indexable directories or directories with hidden files.
The index must be stored in the index.json
file in the directory. Format as follows below:
[
{
// Full path
"filename": "/blog/2020-01-01-haha.md",
}
]
In the future this may be simplified to just being an array of paths.
yarn install
yarn serve
yarn build
yarn lint