Blot

Question about how Blot works?

In the developer docs it says Check if there is a template whose route matches the request’s path. Render the template if it matches. Check if there is a file which matches the request’s path in your blog’s folder. Send the file as a response if it matches. First I didn't really understand this (me being locked into another model of thinking) but if I've understood things correctly it means that when I link to a page, for example 'archive', it will use the archive template file to see what needs to be done. Questions: What are the "standard" templates that blot expects to see? archives, entries, entry, error, feed, search, tagged?? If a template use partials then it becomes possible to call that partial and it will be rendered. At least this is what I see when I call "head.html" and "header.html" (using the Blog template). Have I understood things correctly?

Trouble with a page on my template?

I'm having some trouble with my /now page. It's stuck showing the content from a now.html file that is no longer in my Blot folder. I want it to load from the now.md file in my Pages folder. Also, appending ?source=true to the URL to see the source content doesn't work. I've tried rebuilding my posts and pages from the Reset menu, but no dice.

Adding a badge to my template's footer?

I would like to add this "Written by human not AI" badge somewhere at the foot of all of my blog posts I can't figure out how to upload a png or svg into the blog source though.

Changing background color with metadata?

Hello! Using a custom template here, based on an old version of the Essay template. I'm wondering if there's a way to specify an individual post's background color using Blot metadata. I'm already using the variable bg color in my CSS, but it grabs what color is specified in the template setting. (I'm overriding this on the template's dark mode variant). body { background: {{background_color}}; } What I'd like to do is specify a color in each post's metadata, which then gets loaded in place of that CSS variable. Any help would be much appreciated!

Error checking if page is active in menu ?

When I put the following in my template, I get the error Unclosed section "active} <div class="menu"> {{#menu}} {{#active}} <a href="{{{url}}}" class="light active">{{label}}</a> {{/active}} {{^active}} <p>hello</p> {{/active}} <a href="{{{url}}}" class="light">{{label}}</a> {{/menu}} </div>

Filtering posts onto separate page?

I would like to know how to have a section in the blog containing posts independent of those on the home page. For example, I would like to create a page called 'News' on which to put posts that do not appear on the home page.

Adding day of week to date format?

Is it possible to set the date format of posts so they include the day of the week?

Is it possible to hide specific tags from the tag list?

I have tags showing on my archive page and also my main page. I'm experimenting with using tags to help me build a custom RSS feed. I would like to exclude these tags from the Popular Tags list and even from the post itself. Ideally, these tags would be internal for me to use but not visible to the user. Is this possible?

Is it possible to get the length of the post?

Is it possible to get the length of the post content? It could be used to calculate reading time, display the post in a different layout, etc . if we have a way to get the number of characters.

Adding a copyright statement

Is there a smart way to add a discrete copyright statement (eg. C 2023 XX, all rights reserved) as a footer to all pages? I'm using Diary template. Thanks!