Blot

How to get Google to link to posts directly instead of homepage?

I have my homepage set up to display my posts in full. Problem is, google crawls and indexes the home page and then links to it. Eg: my.blog/page/2 As I make new posts, the relevant post moves further down the page list, and the link goes stale. How can I get Google to link to the article itself and not the homepage? Thanks!

Formatting a custom date field?

Hello, I have a custom date field that looks like this: update: 2015-05-12. I've seen there are ways to format dates for built-in fields. Is there a way to do so for custom fields? Alex

Using the filename as a slug?

Hi there, I understand that I can set the "slug" metadata to change the slug to something other than a slugified version of a post's title. Is there a way to just default to using the filename? For example, if the filename is 2015-04-05.pithy-slug.md And the title is # How to write pithy slugs in 17 steps or more! I would like the slug to be pithy-slug. Alex

HTML in custom metadata?

I have a line of HTML I need to set dynamically it may have one or two links and different wording Doing this fails, any suggestions? In the markdown page_footer: Back to <a href=/Weather>my local weather</a>. {{entry.metadata.page_footer}} Then displays as this plain text on the generated pageThe HTML shows, not a link Back to <a href=/Weather>my local weather</a>.

Unable to get custom metadata to show up

I've set custom metadata for one of my posts, as per this doc. In this case, it is for describing magic spells. The metadata is as follows: title: Magic Spell tags: spell date: 2023-01-16 isSpell: yes magicWord: boo Now, I want to have this custom metadata show up, only for posts where the isSpell: metadata is set to yes. So I've modified my entry.html template as follows {{#entry}} {{#metadata.isSpell}} {{metadata.magicWord}} {{/metadata.isSpell}} {{{html}}} {{/entry}} But when I go to the corresponding post, I can't see the Magic Word. I've added ?debug=true to the URL and I can see the metadata in the JSON, so I'm not sure what I'm doing wrong here.

Image Gallery on an Ordinary Markdown Blot page?

Say I want to post a gallery of images on a specific blot page but am not using a gallery/artsy-type template that specializes in that sort of thing. Is it possible to do this in markdown or would I have to use some type of custom CSS or another type of fancy code?

Checking for home page?

How can I check in mustache if I'm on the homepage? I want to do something different on the homepage, but the same on entries and the archive page. So using {{#entry.title}}...{{/entry.title}} doesn't help me in this case. Alex

Showing all comments on the homepage?

I'd like my comments/box to appear under every post on the main page. My entry.html now looks like this: <div class="clear"></div> <section id="#Comments"> {{> pluginHTML}} </section> <div class="clear"></div> The comments appear on each entry if I visit it from the archive but not on the homepage.

Does anyone have a good post to email workflow?

A couple of folk have asked me if I would send new posts to them via email. I'd love to do this, but don't have the energy for a big system setup or complicated workflow. Also clearly not worth a large amount of dollars, given the numbers and my focus. Has anyone done this in a simple fashion with blot?

Linked title in teaser?

All my posts start with an H1 that provides the post's title. When using a teaser, is it possible to have the H1 link to the blog post?

How can I use markdown in custom metadata?

I'm trying to create a custom metadata field to credit image authors and I want to use Markdown to add links. However, the Markdown is not processed. The output is the contents of the field verbatim. Here's what I have (that doesn't work): Metadata image_credits: - '[Photo #1](https://www.example/1)' - '[Photo 21](https://www.example/2)' Template {{#metadata.image_credits.length}} {{#metadata.image_credits}} {{.}} {{/metadata.image_credits}} {{/metadata.image_credits.length}}

Simple lightbox zoom on images?

I've seen in some templates there's a simple magnifying zoom on images embedded in files/posts. I also read it is/was out of the box in the Blog template but can't seem to find it. How is that accomplished? For reference see images this provided example site: https://benlog.net/

Google Drive is working again

You'll need to log in and re-connect your folder to Google Drive on the folder settings page. I have finished the rewrite of the client which syncs Google Drive to Blot, avoiding Google's API shenanigans. Instead of asking you to go through the Google OAUTH login flow, the new client simply asks you to share a folder in your Drive with a specific email address. Since we're not using Google Drive's API in the same way, the new client doesn't require full access to your Google Drive, which is wonderful. There will be bugs with the new implementation, which I will fix. I'm hesitant to conclude with something along the lines of 'Sorry about this' because the interruption was entirely Google's fault.

How can I display my Site Title alone as the Title for my homepage?

This is the most trivial thing, however, I have a homepage set with the metadata: Permalink: /and no matter whether or not I include (blank) Title: metadata, the page's title (in a browser tab) displays as '- [Site Title]'. All my other pages display as '[Page Title] - [Site Title]', so I get that this is the page looking for a page title, not finding one, but leaving in the hyphen delimiter. Is there a way to stop it doing that, and just display the [Site Title]? I can do it site wide by taking the '>' out of this line in head.html: <title>{{> title}}</title>, but that makes the title of every other page look weird. Any and all suggestions appreciated.

Adding a 'comments' link on the homepage?

I'm using Commento, but the problem is that it is lacking visibility. How could I add a "Comments" link under the post date on the left, on each post, on the main page? Thanks.

#all_tags stopped working?

I noticed in all my templates that use #all_tags they stopped working on both of my sites, returning blank results. I'm guessing something changed on the back-end? Is it possible this could be restored? It brings very useful capabilities. Example code: {{#all_tags}} {{#entries}} {{#tagged.liked}} <a href="{{metadata.source}}" target="_blank">{{title}}</a> → <br><dd>{{summary}}</dd><br> {{/tagged.liked}} {{/entries}} {{/all_tags}} Page it's used on: https://notes.alongtheray.com/bookmarks

Alt Text for Images?

I'm trying to make sure my site is ADA compliant. I have added "alt" text in my image embeds using markup but my site template isn't picking them up in every location that the image is shown. What do I need to add to my template to add them? Thanks!

Managing a "Files" Folder

Hi I have a folder called "Files" as a subfolder of my "Blot" folder, as instructed. This is where I'm dropping images etc. that I want to appear in posts. I'm only just getting started but it's clear that the contents of this single folder are likely over time to become a bit of a jungle. Does anyone who's been at this for a good while have any sage advice to offer about the best way to manage Blot "resources" before I get into a mess? What's best practice? Thanks, Q

Why would CSS reset after editing in browser?

I have been modifying my style.css sheet in Blot's template editor for the past few hours. I was using the Original template and modifying in Blot's dashboard interface. However, after a page refresh while editing the style sheet, I lost all changes I had been working on. Why would this happen? And how do I ensure this doesn't happen again?