Questions
Embed a markdown file inside my template?
I'm currently quite happy with the structure of my entries.html. Except for one thing. I would like the "intro" of that page to be easily editable. Right now, it's hard-coded in html, and I was wondering if I could insert a markdown file instead. I've tried to add {{> intro.md}} in the entries.html file. But it does not render the markdown, it treats is as a plain text.
Changing the summary text?
You say that the summary: "Defaults to the text of the first sentence of the first paragraph in the file." If the first paragraph is shorter than the maximum summary length, then the summary is continuing after the first paragraph. I would like to use the Magazine template and craft summaries that fit in the available space, so have a paragraph break after my summary.
LinkedIn unable to generate preview
I'm trying to link to a new blog post in a post on LinkedIn. For some reason, LinkedIn is saying it can't generate the preview. I've checked the blog post in LinkedIn Post Inspector to get specific details but it's just saying 'We encountered a server error while trying to inspect the URL.' I checked with a post that has previously previewed fine in LinkedIn and that is also coming up with the error now, so I'm thinking something might have changed with the server rather than it being specific to the post I'm linking to.
Make navigation visible on mobile?
I've just switched to the Blog theme and like it quite a bit. Just one problem: The navigation bar isn't completely visible on mobile & my title (which, to be fair, is too long) partially hides the content. See here. Is there any quick CSS tweak to achieve something similar to how my old theme worked, putting the title on top & the navigation links in several rows below as needed? See here to see what I mean.
Number of RSS Subscribers?
Is there any way to know how many people have subscribed to my site’s RSS feed?
Date formats not changing as requested
I know there's a question about time formats in the list below, I had something similar about date formats. When I've forked both Magazine and Blog templates there's a pull-down option to change the date format to Day/Month/Year, but the dates as shown on screen for each individual post always remain Month/Day/Year.
How to render raw moustache?
Let's say I want to embed some moustache code into a blog post, how do I do that? If I enter: <h1>{{ title }}</h1> The output on the frontend us just: <h1></h1> This is because Blot is trying to render the tag. I've tried changing the brackets to the unicode equivalent, but that didn't work. When I used Jekyll, I could wrap the code blocks in {{ raw }} to tell Jekyll not to try and render those elements. Does mustache have anything similar? I can't find anything in their docs.
Why is the time always wrong on every post?
Why is the time always wrong on every post? I have it set to Europe/London in the settings, but if I enable this in the theme on the post, it always displays the wrong time constantly.
Next / previous posts following tag?
Would it be possible to use your next / previous templating on posts to only show the next or previous post for a specific tag?
Are CSS variables supported?
I'm setting up a new theme and I'm trying to add some CSS variables (example below) but every time I try, it seems that blot isn't parsing them and is basically ignoring that CSS. Are CSS variables supported? Example: :root { --text: #333; --bg: #fafafa; } body { color: var(--text); background: var(--bg); } Apologies if this question has been answered before, but the search bar isn't working for me. I just get a faded screen with no results.
Backlinks don't seem to work in Magazine template?
I'm trying to replace latest links in entry.html to backlinks, i.e.: {{#backlinks}} <a href="{{{url}}}" class=" dim no-underline db pv2 bt b--black-10" style="position:relative"> <span class="w-10 fr db" style="background: no-repeat url({{thumbnail.medium.url}}) 0 0 / cover"> <span class=" db" style="height:0;padding-bottom:100%;overflow:hidden"> </span> </span> <span class="fl w-80 db black-80 flex" style="display: flex; flex-direction: column; justify-content: center;"><span >{{title}}</span></span> <span class="cf"></span> </a> {{/backlinks}} I replaced {{#recent_entries}} with {{#backlinks}} in above but nothing shows. I can confirm backlinks code works fine on blog template. Can you help sort this? This is on my "commons" blot account. I have templates disabled when I'm not hacking away on it to keep bots/folks from browsing it so you'll want to enable it and set use template to Copy of Magazine. (For some reason whenever I disable templates and turn it back on it always defaults to blog template so I have to switch it to magazine each time. Could be a bug?) For an example blog page with backlinks look for the "snippets" one.
How to make the blog title clickable?
For my blog I would like to make the title of the post on the page clickable – for example if you click the blog heading / title of the Welcome post it takes you to the post as well / like when you click the date at the bottom of each post. I forked the template 'Blog' but not sure where I am looking to achieve this for every post going forwards? Overall where in the 'Blog' Template do I look to make every post heading clickable on the main page of my site like the date does and what code do I need to input where in the template?
Buy Me a Coffee support?
I was wondering what is the easiest way to embed Buy Me a Coffee into a website on Blot?
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.
Animated GIFs support?
Does Blot support .gif(s) inside the posts? The ones that I added doesn't seem to show correctly.
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?
Image captions are not appearing on my site?
I'm using the reference template and noticed that all my photos that have a caption in the post's source file do not appear with a caption on my site. Is this a known issue?
Improving Reference template on small screens?
Is there any way to ensure that the mobile phone experience is similar to desktops, tablets. I find the margins are completely cut off on mobile so it all looks very tight and ugly.
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!