Developers
135 questions tagged ‘Developers’
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.
How to hide 'digital garden' posts from front page?
Hi! Is it possible to hide 'digital garden' posts from my front page? I want to only show blog-style posts, but my 'evergreen' digital garden posts are also appearing on the front page. I want to be able to link to digital garden posts, but not show them on front page or in archive. Thanks!
Is it possible to add a robots.txt?
Hi, is there a way to add our own robots.txt to disallow crawling, without it being turned into a post of its own? Also, if there is, how can I make User-agent: * Disallow: / not be read as metadata
Permalink on entry title instead of date
Is there a fairly straightforward way to set the permalink to the entry title rather than the date that is displayed for that entry from the entries list?
How do I display a teaser from the content of a post?
I have searched the documentation and the questions here, but I have not found an answer to the question. If I have a post, and I want to display an excerpt (teaser) for it on the list of posts (using the Diary template), how do I accomplish this without having to duplicate post content in the metadata section? I have tried a variety of combinations of the {{{teaser}}} and {{more}} special tags in my post content but nothing seems to work. I simply want to know how I can flag the first paragraph of the post as a teaser. Thanks for any help you can provide.