-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Description
hugo new site testinghugo
cd testinghugo
hugo new theme test
echo "\ntheme=\"test\"" >> hugo.toml
hugo server --cleanDestinationDir --disableFastRender --noHTTPCache -M
- open editor vim
- edit the themes/test/layouts/_partials/menu.html
- hugo server, output reports a change detected
- warmf triggers within the blocks
- but live reload does not reload
- sometimes refreshing the browser works, sometimes, not. In the basic example, i've setup here, refreshing works, but live reload is not triggered if the change is within menu/html. But even refreshing does not work when within walk inline partial
The same behaviours with layouts not in themes/
for example here
<h1>testing</h1>
{{- range .menuEntries }}
{{- $attrs := dict "href" .URL }}
{{- if $page.IsMenuCurrent .Menu . }}
{{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") }}
{{- else if $page.HasMenuCurrent .Menu .}}
{{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }}
{{- end }}
{{- $name := .Name }}
{{- with .Identifier }}
{{- with T . }}
{{- $name = . }}
{{- end }}
{{- end }}
{{ warnf "three" }}
<li>
<a
if I add <h1>testing
, the live reload won't triffer
if add something below {{warnf "three"
, for example an attribute on the <a
, even refreshing won't work
What version of Hugo are you using (hugo version
)?
$ hugo version hugo v0.147.4-84c8426f328a946b2e10611431c450b352cecd11+extended darwin/amd64 BuildDate=2025-05- 20T10:41:19Z VendorInfo=gohugoio
I was 146, and tried the most uptodate version
Does this issue reproduce with the latest release?
yes
soz
If this is not an issue, but I have being expecting it to work.???