`favicons.html` and quote nesting
jamesbraza opened this issue · 0 comments
jamesbraza commented
https://geekdocs.de/features/theming/#full-replacement
<link rel="icon" type="image/svg+xml" href="{{ "favicon/favicon.svg" | relURL }}">
This works in practice, though it also renders as an error in PyCharm:
Nesting with double quotes on the outside, single quotes on the inside leads to a parser error:
process: "/path/to/site/layouts/partials/head/favicons.html:1:1": parse failed malformed character constant: 'favicon/favicon.ico'
Nesting with single quotes on the outside, double quotes on the inside both works and doesn't give an IDE error. Like so:
<link rel="icon" type="image/svg+xml" href='{{ "favicon/favicon.svg" | relURL }}'>
Is this something worth incorporating?