Closed handmeatowel closed 2 years ago
Great suggestion, I'll take a look when I can.
OK, so, turns out you cannot upload an image to Grav and then have the theme/template turn around and base_64 encode it to inline it. Not without lots and lots of work that I don't have time for. Also this kind of goes against the principle of the theme of minimalism and text-centrism.
If I were to do this, and not today because I'm feeling sick, I'm thinking it would be three new fields:
No resizing; the user is responsible for selecting the right size they want the image to be.
I alignment with the themes core principles (except that SVG isn't HTML3 compatible) I'd focus on inline SVG (treating it as text and leave everything to the web browser). This way an uploader shouldn't be necessary. If needed someone can add some resizing features later, until then the user would be resp. for selecting the right size. What do you think @artofthesmart?
Seems reasonable. I'll add it in the next release. I think I found a simple workaround.
P.S. I got arbitrary HTML in the header working. I want to get the translator plugin in this release but I haven't written it yet. You can await the next release (a couple days tops) or go ahead and download the current version and install it manually if you want SVG right away. :)
I would like to use an SVG logo instead of using the site title as text. I'd prefer to have it inline instead of linking it to minimize request. How do I do this?