pretty.html: fetch stylesheet only if the var is declared
otherwise the app will perform an unnecessary 404 request everytime a theme is not declared Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
@@ -69,7 +69,9 @@
|
||||
</style>
|
||||
|
||||
<!-- Bring your own theme -->
|
||||
{% if theme %}
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.5.0/build/styles/{{ theme }}.min.css">
|
||||
{% endif %}
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user