Developers
132 questions tagged ‘Developers’
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!
Translate the months on my template?
Maybe there is a way to name the months personally, by manually entering new names for each month. Or immediately change the language in which the names of the months are displayed in the posts, without changing the format. If possible, I am interested in both options. I understand that it should be done in script.js, but I don't know what to add and on which line. Tell me please.
Hide Cusdis comments
Hi! I've setup Cusdis comments on my blog by adding their widget in my entry.html file. I have a standalone page that acts as a landing page for a newsletter of this blog and I'd like the comments to be hidden on this page. I've tried declaring "Comments: no" in that page's metadata, but it didn't work. Is there a way to have Cusdis be understood by the markdown metadata?
Restricted/Dynamic content through the template?
Not a developer, programmer or anything, but I thought something may be possible if I'm not misunderstanding how Blot works or missing anything... Since everything is public as rendered from the template on the server, could it be possible to use a system of conditional templates or template-based functions based on metadata of the file to restrict access to a page or show context-depending data (like user information)? I mean, coding a script with a call to some authorization service or similar API in a template, a script that would be conditionally used either as part of a page included in another template or doing something like having a template for a whole page to show only private content, that would be used depending on the presence of some metadata or not used if such metadata is not present? For example, using a whole-page template or part of a template for conditional/private information to be shown as part of the rendered page if an "access" metadata field is not false or has a certain value. Would it be possible? Would whatever is rendering the template receive data from an API and could it be done in a secure way (like with an HTTP-only cookie restricted to the same domain if hosting the API on a subdomain), without anything being exposed in any way? Or is it impossible or insecure?