delan / autost

cohost-compatible blog engine and feed reader
ISC License
25 stars 1 forks source link

Support for customizing template files #20

Open LotteMakesStuff opened 1 month ago

LotteMakesStuff commented 1 month ago

It would be good if there was a mechanism for supplying custom templates in a similar way to path_to_static allowing for customizing files in the static folder. Id like to be able to do things like customize the page header and image handling, without having to figure out how to get a working local Rust install

delan commented 4 weeks ago

interesting! i'll have to think about how we can do that, since the templating library we use takes in the templates at compile time only, but this would definitely be good to have.

can you tell me more about those customisations you want to do?

LotteMakesStuff commented 4 weeks ago

here's a shortlist

it sounds like supporting custom templates wont be easy so i should look into doing a custom build

delan commented 3 weeks ago

thanks!

  • i want to add favicon tags into the header

you may be able to work around this one by uploading your favicon to /favicon.ico (regardless of actual format). for example, shuppy.org does this with a png.

  • i currently manually add embed data into he header of the main page each time i build.. which is a pain. since i wrote this it seems you've added a ticket for that directly #21

working on this as we speak!

  • as for image customization, if i generate the main feed with all the cohost tags that i want, the main page ends up so big it blows up my bandwidth bill, so i currently don't include all the tags I actually want on my live page, just new posts- my manga feed is VERY image heavy, and the lazy loading currently implemented isn't good enough. i need to add something like clicking on an image actually to fetch it. Scrolling down to the bottom of the page eats up almost 100mb of bandwidth and it was chewing through my monthly free web hosting allowance in like 3 days.

this one may be trickier to do as a stock feature, but i’ll start rotating that idea in my mind…

it sounds like supporting custom templates wont be easy so i should look into doing a custom build

let me know if you run into any problems :)