Include templates in live reload

This commit is contained in:
Sascha Ißbrücker
2026-01-03 08:27:23 +01:00
parent cce191440d
commit ee169e82cd
4 changed files with 5 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ function connect() {
const data = JSON.parse(event.data); const data = JSON.parse(event.data);
console.log("[live-reload] File changed:", data); console.log("[live-reload] File changed:", data);
if (data.file_path.endsWith(".css") || data.file_path.endsWith(".js")) { if (data.file_path.endsWith(".html") || data.file_path.endsWith(".css") || data.file_path.endsWith(".js")) {
console.log("[live-reload] Asset changed, reloading page"); console.log("[live-reload] Asset changed, reloading page");
window.location.reload(); window.location.reload();
} }

View File

@@ -54,7 +54,7 @@
position: fixed; position: fixed;
max-height: var(--menu-max-height, 200px); max-height: var(--menu-max-height, 200px);
overflow: auto; overflow: auto;
& .menu-item { & .menu-item {
white-space: normal; white-space: normal;
} }

View File

@@ -61,5 +61,7 @@
{% if not request.global_settings.enable_link_prefetch %}<meta name="turbo-prefetch" content="false">{% endif %} {% if not request.global_settings.enable_link_prefetch %}<meta name="turbo-prefetch" content="false">{% endif %}
{% if rss_feed_url %}<link rel="alternate" type="application/rss+xml" href="{{ rss_feed_url }}" />{% endif %} {% if rss_feed_url %}<link rel="alternate" type="application/rss+xml" href="{{ rss_feed_url }}" />{% endif %}
<script src="{% static "bundle.js" %}?v={{ app_version }}"></script> <script src="{% static "bundle.js" %}?v={{ app_version }}"></script>
{% if debug %}<script src="{% static "live-reload.js" %}"></script>{% endif %} {% if debug %}
<script src="{% static "live-reload.js" %}"></script>
{% endif %}
</head> </head>

View File

@@ -10,4 +10,3 @@ from .manifest import manifest
from .custom_css import custom_css from .custom_css import custom_css
from .root import root from .root import root
from .opensearch import opensearch from .opensearch import opensearch