Tags
A long needed feature of markata has been the ability to really configure out templates with configuration rather. It's been long that you needed that if you really want to change the style, meta tags, or anything in the head you needed to write a plugin or eject out of the template and use your own.
Adding some Head
Now you can add some extra style to your site with the existing built-in template.
[[markata.head]] text = """ <style> img { width: 100%; height: auto; } ul { display: flex; flex-wrap: wrap; } </style> """
You can have more than one Head
Each text entry in markata.head
just gets appended raw into the head.
[[markata.head]] text = """ <style> img { width: 100%; height: auto; } ul { display: flex; flex-wrap: wrap; } </style> """ [[markata.head]] text = """ <script> console.log('hey there') </script """
Still need more?
If this does not take you far enough yet, you can still eject out and use your own template pretty easy. If you are going for a full custom site it's likely that this will be the workflow for awhile. Markata should only get better and make this required less often as it matures.
[markata] post_template = "pages/templates/post_template.html"
Once you have this in your markata.toml
you can put whatever you want in your
own template.