Log in Sign up

Developers

129 questions tagged ‘Developers’

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

Make navigation visible on mobile?

I've just switched to the Blog theme and like it quite a bit. Just one problem: The navigation bar isn't completely visible on mobile & my title (which, to be fair, is too long) partially hides the content. See here. Is there any quick CSS tweak to achieve something similar to how my old theme worked, putting the title on top & the navigation links in several rows below as needed? See here to see what I mean.

Ordering posts?

Is there a way to set the order of posts? Maybe be pre-fixing filenames or something like that?

Specific Tag Views?

Is there a way to creat specific views that the blog engine will access when a visitor goes to a /tagged/keyword url? Example. I’d love to be able to make a tagged-photos.html view with specific markup and have the blog engine know to load this when someone goes to the /tagged/photos url. If a tag specific view does not exist, the default tagged.html would be used. I know I can make a view, filter it on a specific tag, and then bind that view to a specific short url /photos through the json file, but I’m wondering if there’s a more fluid/less clunky way.