Questions
URL-ifying Titles
I noticed that Blot replaces apostrophes with dashes when converting a title to a URL-ready slug, but only when they’re singular. For example, Apple’s Striking Short Film Ahead of International Day of People With Disabilities → https://heydingus.net/blog/2022/12/apple-s-striking-short-film-ahead-of-international-day-of-people-with-disabilities vs ‘All Consuming’ Podcast is Back → https://heydingus.net/blog/2022/12/all-consuming-podcast-is-back Would you consider making it so singular apostrophes are also ignored, as it would make the URLs more readable?
Turn website off temporarily?
is it possible to turn off my website temporarily? I do not want to delete my account but make the site inaccessible for a limited time. Best regards Florian Guckelsberger
Recent entries filtered by tag?
I seems odd to me that I can easily filter "all_entries" array with "tagged.TagName" but I can not do the same with "recent_entries." If I use the combination inside a template it will output all "TagName" tagged entries within the last 30 entries. I guess the other option is "truncate" the output, but I couldn't find how to do that in the template language reference. I understand that there is a script option, but I'm already hacking too many things on blot with scripts and it's getting dangerous (( {{#all_entries}}{{#tagged.TagName}} <<-- how to limit output ? to X entries --| <a href="{{url}}">{{title}}</a> {{#tagged.TagName}}{{/all_entries}}
Is there a way to use frontend JS frameworks?
I've already tried implementing javascript into my blog posts which works perfectly, but I'm curious if there's a way to also use frameworks so that we don't need to write vanilla JS all the time. Specifically I'm thinking of things like React, Svelte, or MDX. My use case is that sometimes I like having interactive components within my blog posts that may take an input from earlier up in the post and cascade the changes throughout the other components in the post.
Backup Custom Template?
Year ago I backed up my custom template. Thought there was an option for that, but not seeing it on the Templates page. How do I do that?
Disable pagination?
I noticed that even when I don't use pagination in my template, typing /page/1 .. /2 .. etc. produces the pages with some result (depending on what's in the template). It's not a big deal, but I wonder if there is a way to disable pagination all along? I tried to create a redirect rule "/page/(.*)" > "/" but it didn't work out either
Hide or show certain sections depending on metadata?
I'm wondering if there's a simple way to hide a section from a page template if a certain metadata is specified. A bit like with Menu: No which hides a page from the navbar. I'd like to create a Hero Image: No which would disable the top image on a blog post. Your help is much appreciated :)
Hiding the title of my posts on Micro.blog?
I'd like my posts to have no title at all. On my blot page, there is no title but when imported into micro.blog, the first line appears as the title. Is there a way to remove the title altogether so it doesn't appear elsewhere?
Lazy loading on images?
Wondering if anyone has figured out a way to introduce lazy loading for images? I know we can add loading="lazy" in the HTML, but I'd like a way to do it in Markdown, so I don't have to write out all the HTML for every image. When my site was based on Jekyll, I could use Kramdown and add {: loading="lazy"} after the image to add the required flag. But nothing like that exists AFAIK with Blot. Do any of you have any ideas please? I'd like to avoid introducing JS if at all possible. Thanks!
Choose different fonts for blog posts and site title/site menus
I'm new to Blot and have a question regarding font customization. I'd like to use different fonts for my blog posts (incl. blog title and body) and the title & menus of the blog. I forked an existing template but the font picker applied the new font to all the text in the blog. I dug around the source code but couldn't figure out how to achieve it.
Use multiple templates?
Can I create multiple pages, have a blog at parts and use other templates in other areas? thanks!
Turn Title into Link to Post
I am sure I am just missing something easy so I am sorry for this. Using blog template with full posts, wanted the title to also be link like the date is?
Blot was down… and I’m sorry!
The server was caught in a deathloop, failing to restart properly. this meant that everything that wasn't cached failed to load. The issue is now resolved. I'm extremely sorry, and i will properly get to your emails when i return on Monday. I'm on vacation, which I hope explains but does not excuse the delay
Sticky posts in Magazine template
I'm trying to figure out a way to make a post "sticky" or have some sort of Featured post that stays at the top of my Home page, and I'm struggling. I had found a question asking this about the Blog template and it was working fine when that was the only post on my site. Now that I've added more posts, though, the Sticky post is just having a plain hyperlink of its title displayed at the top of the page rather than the full width post I was seeing before. Is there any way to do this and have it work consistently on the Magazine template?
Add page description to RSS feed?
So in my site's head I've added {{> description}} which will take the summary field from my front matter and add it to the page's HTML meta. I'm trying to create a second RSS feed that, instead of containing the entire post contents, I'd like to have the page description from the meta and a link to the post. This is so I can use Micro.blog to automatically crosspost a summary, rather than the entire (poorly formatted) post. So I've tried adding the following to my RSS file, but it isn't working: <description> <![CDATA[ {{#encodeXML}} {{{description}}} {{/encodeXML}} ]]> </description> I've also tried {{> description}} and {{{summary}}} but none are working. How do I add the page description to this RSS feed? Thanks.
Discord links and metadata
I've noticed that all blot blogs no longer show the metadata when posted as a link to discord. This is true for every blot site I've found and tried, including ones with custom domains. There does seem to be a workaround: the metadata will show up if you view it as a preview of a different template, a draft, or with ?scheduled=true on the end of the link. Any idea what's happening?
How to prevent filename.org from hyperlinking?
Lots of times I write about org-mode and want to mention .org filenames, but if I write filename.org in a Markdown post, that filename will turn into a hyperlink, which I want to prevent. I found someone on Stack Overflow asking a similar question, and the workaround is to use a non-breaking zero-width space, like in the attached image, where I wrapped it in a code tag to get it monospaced. It does work with Blot, but is that the best way? Thanks! (Oops. I forgot to attach an image and now I don’t think I can.)
Static home page and link to index page?
I'd like to set up a static front page and add a link to an an index page in the links. Is there a way to accomplish this?
Adding time or tags to photos?
I posted a photo on my blog. I noticed it set the time to 12:00 am, even though that wasn't the timestamp on the photo. How do I set the time on a jpg? Also can I add a tag to this photo? Thank you!
Referencing files from one Blot site on another
I have a Blot site that operates my blog on a custom apex domain, and a second Blot site for photos at a subdomain of the same address. (This is because I have a fork of the Blog theme for the former, but prefer the Portfolio theme for the latter.) If I sometimes want to include photographs inline on the blog, is it OK to reference the files at their URLs on the subdomain? If that’s going to cross wires for Blot, I’ll upload a second copy to the blog’s folder.