Log in Sign up

Questions

Ask question

How to modify values in the JSON structure associated with a Blot page?

All the Blot data like entries and tags are stored in a JSON structure associated with each page. (I mean the JSON data I can see when I add ?debug=true to the page.) When I'm on the page how can I access (and modify) this JSON info via JavaScript, say, in the load event? I assume the JSON structure is stored as an object somewhere in the DOM?

Analytics integration with GoatCounter

Hello! Do you have a way I can integrate with GoatCounter? I'm a software dev in my day job, so I'm totally ok with writing some custom JS on my site if there's a way to do that. Thanks! :D https://www.goatcounter.com/

Home Page Grid on Portfolio

I'm trying to create multiple grid for each tag instead of a single grid but when I try filtering with a tag it doesn't render images. Here's where my entries.html files is at: {{> header}} <div class="entries"> {{#allEntries}} {{#tagged.nuvu projects}} {{#thumbnail.large.url}} <a class="post photo" href="{{{url}}}" style=" max-width:{{thumbnail.large.width}}; max-height:{{thumbnail.large.height}}; width:calc({{thumbnail.large.width}}px*{{thumbnail_size}}/{{thumbnail.large.height}}); flex-grow:calc({{thumbnail.large.width}}*{{thumbnail_size}}/{{thumbnail.large.height}})"> <i style="padding-bottom:{{thumbnail.large.ratio}}"></i> <img src="{{{thumbnail.large.url}}}" class="pre-loaded" onload="this.className+=' loaded';" /> <noscript> <img src="{{{thumbnail.large.url}}}"> </noscript> </a> {{/thumbnail.large.url}} {{/tagged.nuvu projects}} {{/allEntries}} </div> {{> footer}}

Emoji in title causes incorrect capitalization?

Here's a weird one. I use the link (🔗) emoji in the title of my linked blog posts. But that has caused the first letter in the title of this post to be lowercase instead of uppercase. (It also has the permalink problem noted here.)

4 replies 2 years ago     titlecase  bug  resolved 

How to modify names of tags for display?

In a page template I can iterate over my tags via {{#tags}} ... {{/tags}}. I then can display the tag name via {{name}}. So far, so good. Some of my source tags start with "cat-" (e.g. "cat-science" or "cat-computer"). However I would like to display only the part after "cat-" (i.e. "science" or resp. "computer"). Can I do this?

How to remove thumbnail from your main page

I do have two images in the blog I've written, but I don't want the thumbnail to be shown on the home page. How can I do that?

Names, aliases, mustache lambdas

About this topic I asked a more specific question yesterday(*), but here a more general approach: Is there a way to mangle the value of variables in mustache via some sort of function? Also, in the specific case of tags, I saw that there are two variables: {{name}} and {{tag}}. According to the doco {{name}} is an "Alias for tag". So can I somehow tweak how this alias is generated, say always cut of "cat-" from its value if the value always starts with "cat-"? (*) But I'm not sure whether the other question "drowned", because I myself had added a comment which appears as an answer...

Menu Link Items Order

Any idea why my Links don't follow the order I've specified in Settings? See 'Search' not at far right. I've had the order get jumbled from time to time, and I can't figure out why it would change without my interaction.

Local Dev Environment Not Working

Hello, I've followed your instructions to get my local dev environment running, and it runs but then exits immediately. Checking the logs doesn't show me an error (that I can see) but it's like it shuts itself down immediately. Here is the console output: > Blot@0.0.0 local > NODE_PATH=app node app/local Local server capabilities: - twitter embeds false - markdown with pandoc false - .docx conversion false - .odt conversion false - dropbox client false - persistent dashboard sessions false Visit your dashboard: http://localhost:8080 Visit your blog: http://localhost:8081 Open your blog's folder: /Users/k/Projects/blot/tmp/example [05/Oct/2022:16:14:46 -0600] Build: Launching new build worker overseer=32731 Setting up local client for blog_df93682d05104490ab8b0fe28f721887 Setup complete [05/Oct/2022:16:14:47 -0600] Build: process pid=32734 launched [05/Oct/2022:16:14:47 -0600] Build: process pid=32734 exiting... And here is the log from my last run: 0 verbose cli [ 0 verbose cli '/Users/k/.nvm/versions/node/v16.14.0/bin/node', 0 verbose cli '/Users/k/.nvm/versions/node/v16.14.0/bin/npm', 0 verbose cli 'run', 0 verbose cli 'local' 0 verbose cli ] 1 info using npm@8.3.1 2 info using node@v16.14.0 3 timing npm:load:whichnode Completed in 0ms 4 timing config:load:defaults Completed in 2ms 5 timing config:load:file:/Users/k/.nvm/versions/node/v16.14.0/lib/node_modules/npm/npmrc Completed in 1ms 6 timing config:load:builtin Completed in 1ms 7 timing config:load:cli Completed in 2ms 8 timing config:load:env Completed in 0ms 9 timing config:load:file:/Users/k/Projects/blot/.npmrc Completed in 0ms 10 timing config:load:project Completed in 2ms 11 timing config:load:file:/Users/k/.npmrc Completed in 0ms 12 timing config:load:user Completed in 0ms 13 timing config:load:file:/Users/k/.nvm/versions/node/v16.14.0/etc/npmrc Completed in 0ms 14 timing config:load:global Completed in 0ms 15 timing config:load:validate Completed in 0ms 16 timing config:load:credentials Completed in 1ms 17 timing config:load:setEnvs Completed in 1ms 18 timing config:load Completed in 13ms 19 timing npm:load:configload Completed in 13ms 20 timing npm:load:setTitle Completed in 5ms 21 timing config:load:flatten Completed in 3ms 22 timing npm:load:display Completed in 5ms 23 verbose logfile /Users/k/.npm/_logs/2022-10-05T22_14_45_810Z-debug-0.log 24 timing npm:load:logFile Completed in 6ms 25 timing npm:load:timers Completed in 0ms 26 timing npm:load:configScope Completed in 0ms 27 timing npm:load Completed in 31ms 28 silly logfile start cleaning logs, removing 1 files 29 timing command:run Completed in 1697ms 30 verbose exit 0 31 timing npm Completed in 1806ms 32 info ok

Two blogs

How do I set up two blogs? Do I have two separate Dropbox "master" folders, one for each blog?

Make H1 Link to Post on Entries Page

I've seen on other templates that you can make the title/h1 act as a URL to the entry. On my template, it's the date that acts as the permalink. I'd like for the h1 to also be a link on the entry's page, but can't figure out how to change that anywhere in the template, since both entries.html and entry.html just load the html content directly with the {{{html}}} variable. Am I missing something?

Show text file for post?

I've seen with other blogging engines that you can append ".md" or ".txt." to the end of a URL to see the raw text for that given post. Is that possible with Blot posts? Example: https://www.caseyliss.com/2022/9/8/verizon-esim-conversion and https://www.caseyliss.com/2022/9/8/verizon-esim-conversion.md

Where to put and how to reference images used in the templates or in the CSS?

I try to use some small PNG images in the template or better in the CSS. In the CSS file I try something like this: .icon-cat-kickbike { font-size: 24px; padding:0 16px 0 0; background-image: url('_scooter.png') no-repeat right center; } But regardless whether I put the image in my Posts folder or in my template folder (copy-of-scroll), the image is never displayed. Do I have to register the image somehow so that it can be used as an asset? PS: I check rendering on the template preview (URL like https://preview-of-...-on-...blot.im) if that matters.

No Template Error

I have encountered an error message when editing my template from the dashboard: Error: No template. Maybe it's because the [template name] does not correspond with the url : https://blot.im/dashboard/[username]/template/edit/[url_template_name]/settings The error message is: Error: No template: blog_8b57c40dac8e47faad2563d4a69ff6c5:url_template_name. Also, I found out that editing the template name doesn't really change the url of the template, this might also be the reason why the error message pops up. My problem is if there is a way to directly delete the template from the dashboard (you've got edit, fork, use and preview), or if there is a way for me to access to the template. Now I could do nothing about this template(besides fork this template, which will fork another template that I don't have access to......), it just stays there in the template list, which is quite annoying.

Redirect All Errors to Archives Page?

I'd like any 404s to send visitors to my Archives page where they could search or scan through any posts to find what they were looking for. I noticed this question that looked to achieve something similar, but (ironically enough) that page itself errors out. Is there a way to make this work?

How to show more post on the entries.html page

How can I show more post excerpts on the entries.html page? Do I have to put a particular variable into the locals section of my package.json? Also, can I paginate entries.html to show even more posts?

Images in subfolder?

How can I put images in subfolders and reference them via ![](_subfolder/image.jpg) I tried exactly this, but the images are not found like this.

Folder not showing up in Google Drive

So I've tried adding folders to my website, and it's not reflecting on my website. Even if I'm using it with tags or without tags. I'm using the Magazine template.

How to omit some tags from all_tags?

I know I can show all blog tags with all_tags in the side area of my blog site. Is there a way to omit some tags from this list? (The omitted tags I'd rather like to list as (manually added) page links - as broad categories.)

footer.html or _footer.html

I'm looking into adding a bit of JS code to my site. And from [anorher question}(https://blot.im/questions/730) I got the hint to add it to footer.html. In my fork of blog I have a footer.html -- but in your git repo you point to _footer.html`. What's correct?

Previous 1 … 23 24 25 26 27 … 37 Next