Hugo directory structure

When I started to dabble with Webmentions I first created a new type of content called likes. This basically entailed me making a directory in my content directory called likes anb putting my 'likes' in there. That also meant I had to create some new templates in my theme directory:

  • layouts/likes/single.html
  • layouts/likes/list/.html

The I made a new type of webmention response called replies.

That entailed another new directory in my content directory, and single and list templates.

Then I began to think about the future. I would want other types … and that would mean some proliferation of directories and template. But, the single and list templates for the likes and replies were pretty much the same. And so, wanting to be DRY I created and new type of response called webmentions and moved all my templating for likes and replies into:

  • layouts/webmentions/single.html
  • layouts/webmentions/list/.html

I moved all the likes and replies that I've done so far (not many) into the directory content/webmentions.

Of course that's going to break a few links for folk; but I still see my likes/replies as being rather experimental (still). So, I hope I'll be forgiven.

If you webmention this page, please let me know the URL of your page.

BTW: Your webmention won't show up until I next "build" my site.

Show all the shares aka