Log in Sign up

Developers

135 questions tagged ‘Developers’

Different styles for different pages?

I was wondering if it would be possible to use the 'Blog' template for most of my website, whilst also having some pages on my website using the 'Portfolio' template. Is this possible? How can it be done if so?

Page with Tag

I'm trying to make a custom page that includes a list of posts with a certain tag. I've tried following the instructions on this page, but without success. Here's my code for now.html: <!DOCTYPE html> <html> {{> head}} <body> {{#allEntries}} {{#tagged.Now}} <p><a href="{{{url}}}">{{title}}</a></p> {{/tagged.Now}} {{/allEntries}} </body> </html> I also added this to package.json; { "now.html": { "partials": { "title": "Now - {{{title}}}", "description": "What's up right now." } } } And sitemap.xml: <url> <loc>{{blogURL}}/now/</loc> </url> But heydingus.net/now still leads to a 404. Am I doing something wrong?

New local template

If I want to create my own custom template, do I just need to create the Templates folder, the folder with the template source code, a package.json, and then the various template files themself? Will the blot.im hosted UI recognize that I added a new template locally?

Create a section on a page showing entries with a specific tag

Forgive me if this has been answered elsewhere, but I couldn't find it when perusing existing questions. I'd like to set up some pages as homes for my various projects, many of which have their own tags for related blog posts. I know that you can create a new .html file with the syntax on https://blot.im/templates/developers/examples/all-posts-with-a-tag, but I was hoping to do it with a regular page made with a .md file. It'd be much easier to update the rest of the content that way. Is that possible?

Remove "Links to this post"?

At the bottom of the default template, on some pages there is a "Links to this post" block. How does one remove this?

Can I reset my template?

If I fork a template and I mess it up, can I easily switch back to the default template?

Solution to Light / Dark Mode for the Blog Template

Is there an existing solution to adding a toggle switch or using device settings for light / dark mode? I'm using the Blog template. Thank you.

Helper functions documentation?

I see there is a {{#is}} used in the entries.html for the blog template. Is there a list of these "helper" functions somewhere?

Pocket is parsing author incorrectly

I can't, for the life of me, figure out how to get the author parsed by read later services. For some reason, Pocket has pulled out "merch" as the author of my posts, and I don't know why. Any ideas? Example post.