Log in Sign up

Developers

132 questions tagged ‘Developers’

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.

How to add a new view with a tag as parameter

I want to add a second template page similar to the tagged pages, so I added in package.json: "views": { "tagged2.html": { "url": "/tagged2" "partials": { "title": "...", "description": "..." } }, ... } However this merely defines a URL http://myname.blot.im/tagged2 without parameters. That's why http://myname.blot.im/tagged2/mytag gives a 404. So how can I define a new view/template page which accepts a tag name as parameter?

Combining Blog & Album

Is there a way to combine two themes to have two types of posts? I’m running a blog (based on an older blog template) but I’d also like to show photos (or photo albums) akin to the Portfolio template. Is there a straightforward way to accomplish this?

Add support for pagination for tagged & all entries?

I'm setting up a page for specific posts based on a tag. This works well using {{all_entries}} and using {{#tagged.topic}} as a filter but pagination no longer works. Pagination would also be useful for /tagged/ pages because they're getting long. Would it be possible to support this? Thanks! Ray