Developers
132 questions tagged ‘Developers’
Adding a footer to the magazine template?
I've modified the Magazine template to add a footer. When I click on a category, and click on all section on the top right, and scroll down, the part where I've footer copyright policy etc, isn't aligned like the rest of the pages. How do I fix that?
How to add a new font?
I'm looking to add some free fonts which are to my liking and I want to apply it all over my site. How can I upload a new set of font pack?
Adjusting navigation on Portfolio template?
I'm not sure if either are possible, but here goes: When I click into a tagged set of pictures, could it just go straight to the full size of the first one? And then, when you're viewing a tagged set, can it not have navigation back to any images not using that tag? What I'm trying to do, as I remember indexhibit working, is to use tags to create static finished sets of pictures, and then anything not tagged goes under Posts as the main feed. But I don't want picture navigation between the two, especially as there is no title showing what tag you're viewing.
Hide a post from the front page but show it in the archives?
I'm using the blog template. I have certain posts (RPG session summaries!) that I don't want showing on the front page, but I don't mind showing up in the archives list. Right now, these posts have the metadata: Page: yes Menu: no …as I saw mentioned in this question. However, when I do this, the posts are not listed on the archives page, and when viewing them from a tag page, no dates are shown. Essentially, I think what I'd want is a way to publish a post normally, but simply not have it show on the front page. Is this possible?
How would I include the page summary in the post body?
So I always create a summary for every post, this is within the front matter of each post and is used for the description with the HTML meta. I also use this summary as a line of intro text for every post. At the moment, I copy/paste the summary into the body of the post, but it would be nice if this was rendered automatically at build. I've tried including {{{summary}}} in the body, but it doesn't render. How would I get the summary to render in my posts?
How do I work with external contractors?
I'd like an external contractor to update the templates and CSS of my site to provide a new design that is beyond my capabilities to implement. How do I work with them? My ideal would be to have a locally hosted version of my site that I could collaborate with the contractor via github and PRs. Is that an option? Or something like it? I don't want to just give them the password to my Blot account and let them go to town.
Is there a way to use frontend JS frameworks?
I've already tried implementing javascript into my blog posts which works perfectly, but I'm curious if there's a way to also use frameworks so that we don't need to write vanilla JS all the time. Specifically I'm thinking of things like React, Svelte, or MDX. My use case is that sometimes I like having interactive components within my blog posts that may take an input from earlier up in the post and cascade the changes throughout the other components in the post.
Disable pagination?
I noticed that even when I don't use pagination in my template, typing /page/1 .. /2 .. etc. produces the pages with some result (depending on what's in the template). It's not a big deal, but I wonder if there is a way to disable pagination all along? I tried to create a redirect rule "/page/(.*)" > "/" but it didn't work out either
Recent entries filtered by tag?
I seems odd to me that I can easily filter "all_entries" array with "tagged.TagName" but I can not do the same with "recent_entries." If I use the combination inside a template it will output all "TagName" tagged entries within the last 30 entries. I guess the other option is "truncate" the output, but I couldn't find how to do that in the template language reference. I understand that there is a script option, but I'm already hacking too many things on blot with scripts and it's getting dangerous (( {{#all_entries}}{{#tagged.TagName}} <<-- how to limit output ? to X entries --| <a href="{{url}}">{{title}}</a> {{#tagged.TagName}}{{/all_entries}}
Lazy loading on images?
Wondering if anyone has figured out a way to introduce lazy loading for images? I know we can add loading="lazy" in the HTML, but I'd like a way to do it in Markdown, so I don't have to write out all the HTML for every image. When my site was based on Jekyll, I could use Kramdown and add {: loading="lazy"} after the image to add the required flag. But nothing like that exists AFAIK with Blot. Do any of you have any ideas please? I'd like to avoid introducing JS if at all possible. Thanks!