Your sites Log in Sign up Menu

Share HTML page with custom CSS/JS?

Is there a way to share an html page that is totally standalone from the rest of the site? Like I made a little webpage that is a kind of webtoy, but if I try and share it in one of my blot folders it doesn't work properly because blot renders it within the entry.html stylings etc. (which I understand cos it's rendered in the {{{html}}} block of the template). Is there a workaround to get blot to not render any other html/css/js other than what this html file is telling it to? Or would I have to host it elsewhere and link to it from my blog?


a year ago, 10 replies   posts   html   Improve this question

I haven't tried it, but I'd say, put your HTML file in the Pages section. Then your page is not enumerated by the entries data structure.

Answered a year ago · Improve this answer

I got this question as well, is there a way to render HTML .html file directly without render by the template? For example, we can put .html file in Pages folder and set an variable to turn off render by template setting, and we can see what we have set css in the file?

Answered a year ago · Improve this answer

You can place an HTML file in your folder whose name begins with an underscore to prevent Blot turning it into a post. Once you do so, it will be accessible in full, standalone, at its path, e.g. if you place a file called '_apple.html' in the root of your blog folder:

you.blot.im/_apple.html

If you place a file called 'banana.html' in a folder called '_static' in the root of your blog folder:

you.blot.im/_static/banana.html

I recognise that the underscore and the '.html' extension make the URLs less appealing, and I'm thinking of ways to make it possible to have pretty URLs, e.g.

you.blot.im/_apple.html -> you.blot.im/apple
Answered a year ago · Improve this answer

Yes, do believe the pretty url would help a lot, would like to have this to have to flexibility for standalone html file hosting.

Answered a year ago · Improve this answer

Will below idea be added into the roadmap and pipeline?

you.blot.im/_apple.html -> you.blot.im/apple
Answered a year ago · Improve this answer

Yes, I plan to make that work – I'll follow up here when it's ready

Answered a year ago · Improve this answer

Look forward to have this on Blot.im

Answered a year ago · Improve this answer

This feature is now live! Blot will perform the following lookup:

you.blot.im/apple -> you.blot.im/_apple.html

I've documented this on the HTML post page

Answered a year ago · Improve this answer

So great to have this, many thanks!!!

Answered a year ago · Improve this answer

Awesome! Thank you so much for that one!

Answered a year ago · Improve this answer