Developers
135 questions tagged ‘Developers’
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.
{{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.
Is there a way to embed one text file within another one?
I have a snippet of text I would like to appear in multiple places around my site. Is there a way I can 'include' it in the content of pages or reference it directly from a custom template? I know I could create a partial within my template but I'm trying (for now) to keep content and structure seperate.
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):
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!
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?
Redirect feed.xml to Blot's feed.rss?
Had my URL previously at micro.blog which uses feed.xml. So I tried various things including /feed.xml https://blog.mydomain.me/feed.rss with no luck. the feed.xml still returns a 404. Tried various other things but nothing works. Is this possible to redirect?
Changing the URL of the archives page?
I was attempting to rename Archive to Index (which I did), but then started toying with the page name and realized that would break what was defined in packages.json. Now setting the value back to /archives in the dashboard for that link still results in a 404 error. Did I break it? ;) Tangible Life
How to add the last modified date to my sitemap?
I'd like to include the lastmod field in my sitemap – how should I go about adding this?
Custom path for posts overview?
Hi, I'm looking to move the overview of posts to a subpath (/photos) and have a custom page act as the landing page. I'm using a (minimal) fork of the portfolio theme, but I'm happy to change if that's necessary. I can't find any rewrite rules or anything of the sort, and while I can create a custom page to hide the native index (posts overview) page, I don't know how to then resurface it in under a custom path. Thanks!