Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for customizing template files #20

Open
LotteMakesStuff opened this issue Oct 21, 2024 · 3 comments
Open

Support for customizing template files #20

LotteMakesStuff opened this issue Oct 21, 2024 · 3 comments

Comments

@LotteMakesStuff
Copy link

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
Copy link
Owner

delan commented Oct 24, 2024

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
Copy link
Author

here's a shortlist

  • i want to add favicon tags into the header
  • 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 generate opengraph tags to enable rich embeds #21
  • 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.

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

@delan
Copy link
Owner

delan commented Oct 26, 2024

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.

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants