thegeeklab / hugo-geekdoc

Hugo theme made for documentation

Home Page:https://geekdocs.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`favicons.html` and quote nesting

jamesbraza opened this issue · comments

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:

image

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?