-
Notifications
You must be signed in to change notification settings - Fork 3
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 custom templates #46
Comments
While you're working on this is there a simple way for me to alter the template in the source code then rebuild on my PC using the deno exe? Just wondering. |
Yeah, if you have the Deno CLI and a copy of the md2blog code, you should be able to modify templates.ts and then run Once happy, you can use |
Thanks. So |
No, but you can do that with Deno compile: https://docs.deno.com/runtime/manual/tools/compiler "Install" is more like creating an alias, in case you don't need a big self contained binary like "compile". |
What's the easiest way to add a header image in the template for all pages/posts? |
Not sure how much direction you need, but here's what I can easily type on my phone:
Most of this is similar to the title link, which should be easy to find (something like Some of extra context: The template language is this one: https://deno.land/x/literal_html The md2blog functions include metadata in a variable named |
Greetings
To rebuild into an exe what command line should I use? Would this work - Oh, I see you have a batch file for building. Should I just run that for the Windows build? Update - I got it to build ok and my header image is showing fine! |
The default template should be all you need... but I'm probably going to grudgingly support custom templates. The biggest issue is that then I'd need to support some template language, and that is a big can of worms since there's no universal standard.
The text was updated successfully, but these errors were encountered: