Questions
Unable to get custom metadata to show up
I've set custom metadata for one of my posts, as per this doc. In this case, it is for describing magic spells. The metadata is as follows: title: Magic Spell tags: spell date: 2023-01-16 isSpell: yes magicWord: boo Now, I want to have this custom metadata show up, only for posts where the isSpell: metadata is set to yes. So I've modified my entry.html template as follows {{#entry}} {{#metadata.isSpell}} {{metadata.magicWord}} {{/metadata.isSpell}} {{{html}}} {{/entry}} But when I go to the corresponding post, I can't see the Magic Word. I've added ?debug=true to the URL and I can see the metadata in the JSON, so I'm not sure what I'm doing wrong here.
Unable to set a landing page?
I think I followed the instructions properly, but I'm unable to set a landing page. I have a page where the first line is the following, followed by a blank line. Link: / But instead of setting that as the home page, it's creating a separate page called "Link: /"
{{last}} is not defined inside {{archives}}
I know {{^last}}{{/last}} does work on Blot in principle, considering this question. However, it does not seem to work with {{#entries}}, even though some templates try to make use of it. Specifically, I am talking about the "Index" template, which tries to do the following on its archives.html part: {{#entries}} <a class="archive" href="{{{url}}}">{{title}}</a>{{^last}} · {{/last}} {{/entries}} In case of three posts in a single month, e. g. "abc", "def" and "ghi", I would expect the following to appear on the archives page: abc · def · ghi However, the {{^last}}{{/last}} block never seems to be executed, which leaves me with: abc def ghi (The spaces are probably added because of the line break in the HTML code.) I suspect that the items of {{#entries}} do not even have a last-property, which is why Mustache evaluates it to "false" (for all items)? Or is there some other problem? This happens with a freshly forked "Index" template, so I think it should work out of the box.
Edit date format selections not being applied correctly?
Is anyone else seeing this? Changing the date format in the 'edit template' screen allows me to select a different format, but the new format is: not applied to the preview not retained if I leave / return to this screen not applied to the live site (confirmed with debug function, where dateFormat in JSON remains original value) The template is unmodified and correctly uses {{date}}. Other changes in the edit template screen (such as font, font size and line spacing) are correctly applied.
Hide specific posts in Previous section?
Is it possible to remove irrelevant posts that have different tag variables in the Previous and Next post sections? For instance, a post with the tag "dog" should not display any posts with the tag "cat" in the Previous section. Here is my current solution: {{#tagged.dog}} {{^tagged.cat}} {{previous}} {{/tagged.cat}} {{/tagged.dog}} However, this only solves half of the problem. If the previous post had the "cat" tag, then there will be a blank space in the Previous section. This is because it is a linear filter rather than an iteration loop. I'm looking for a better approach that not only blocks out irrelevant posts but also shows previous posts with the same tag.
Add class to currently selected page on my navigation?
Is there a way to add a class to the page you're currently visiting in the menu?
Favicon and RSS feed icon?
Should the image being used as the favicon show up as the icon in an RSS reader app? In my RSS reader app, when I subscribe to my site, the placeholder is just the default "T" on a color background that the app uses for feeds that don't have a specified icon. Wondering if I need to set this explicitly in the feed.rss file in my template.
Centering navigation on Blog template on mobile only?
I'm using a forked version of the Blog template for Tangible Life. I like the desktop layout with left and right justified elements, but they look odd on mobile size classes. How can I achieve a centered blog title, then Pages and Search/RSS icons centered below that on mobile only?
Adding an attribute to title on Archives page based on a tag?
On my main entries page, if a post is a link post I've updated the CSS to show a unicode arrow symbol after the title so people will know the title will take them to another location. I'm trying to achieve the same behavior on the archives page. This could be driven based on a tag value of 'linkpost'. Is this possible? Example of how it looks on main page (would like the same symbol to appear after the post title on archives based on a tag value being present):
Hide a post from the front page but show it in the archives?
I'm using the blog template. I have certain posts (RPG session summaries!) that I don't want showing on the front page, but I don't mind showing up in the archives list. Right now, these posts have the metadata: Page: yes Menu: no …as I saw mentioned in this question. However, when I do this, the posts are not listed on the archives page, and when viewing them from a tag page, no dates are shown. Essentially, I think what I'd want is a way to publish a post normally, but simply not have it show on the front page. Is this possible?
Hide images on home but show on tagged page?
Hi! I'd like to set up a "stream" page that just shows inspirational images that I collect and drop into a folder. Ideally these images only appear on the stream page and not on the home page. How can I accomplish this?
500 Internal Server Error
Is the server down now? New post uploading and template editing keep failing.
Escaping template variables in posts?
I am writing a post to share some setting, seems the variables will be disappeared if there is a conflict of template. Here's what I have on iA Writer and this is what it looks like after rendering by Blot.
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.
Change the URL of tag index pages?
I'm creating an photography website with photos sorted by tags. But instead of tags, I want to use the term "album". Is is possible to change the url from https://example.com/tagged/france to https://example.com/album/france ? Thanks and keep up the good work with Blot!
Date format not changing?
I am using the Magazine template and am unable to change the date format when editing the template. All other editing functions work fine, including relative date. But when I change the date format, the changes are not shown in the preview or on the actual site. Once I refresh the editor, the editor shows the default date format again, discarding my changes.
Issue with position of headers on the Blog template
When using the Blog tempate and viewing a single entry, the <h5> elements for Tags, Date, Next, and Previously all appear on top of each other in the top left of the page. Looking through the CSS, it appears that .label-left h5 is set to position:absolute, which explains the behavior. Adding position:relative to the CSS rules for .label-left ensures that the parent element of the <h5> is set to relative, which fixes the issue with their absolute positioning.
Slug changed after being published?
I have two posts with slugs. After being published, their URLs have "-2" added right after the slug. I have checked the slugs of each post and confirmed that they are not identical. This leads me to believe that there might be another reason for the addition of "-2" in the URLs. Here is one of the post has a slug "bionic" but it's URL is displayed as being "bionic-2": https://kuoyihs.in/bionic-2.