# AmazingRise/hugo-theme-diary broken with new hugo version

**URL:** <https://discourse.gohugo.io/t/amazingrise-hugo-theme-diary-broken-with-new-hugo-version/57546>\
**Category:** support\
**Created:** [September 12, 2026, 4:21pm UTC](https://discourse.gohugo.io/t/amazingrise-hugo-theme-diary-broken-with-new-hugo-version/57546 "2026-09-12T16:21:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tunnelthrutime](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@tunnelthrutime](https://discourse.gohugo.io/u/tunnelthrutime)\
**Post date:** [September 12, 2026, 4:21pm UTC](https://discourse.gohugo.io/t/amazingrise-hugo-theme-diary-broken-with-new-hugo-version/57546/1 "2026-09-12T16:21:52Z")

</div>

So I’ve been using AmazingRise/hugo-theme-diary for a personal blog but there are problems now with the theme and version `hugo v0.165.0+extended+withdeploy linux/arm64 BuildDate=unknown` running on my raspberry pi.

running `hugo new content posts/new-post.md` gives me:

```auto
ERROR "/home/merlin/Areas/hugo_sites/patreon_stack_plan/themes/diary/layouts/_default/baseof.html:7:1": apply base template failed: template: outbox/email.html:7: unexpected EOF

```

When I look the file I see:

```auto
<!DOCTYPE html>
<html lang="{{ $.Site.Language }}">
    {{- partial "head.html" . -}}
    <body>
    	<div id="app">
            {{- partial "mobile-header.html" . -}}
            <!-- mobile header -->
            <div id="content">
                <div id="streamContainer" class="stream-container">
                    {{- block "main" . }}{{- end }}
                    </div>
            </div>

            {{- partial "sidebar.html" . -}}
            {{- partial "extrabar.html" . -}}

            {{- partial "mobile-footer.html" . -}}
            <!-- mobile footer -->
            </div>
    {{ partial "journal.html" .}}
    <!-- For compatibility. View https://github.com/AmazingRise/hugo-theme-diary/pull/135 for details.-->
    {{- $hugoVersion := split (replaceRE ".*([0-9]+)\\.([0-9]+)\\.([0-9]+).*" "$1 $2 $3" hugo.Version) " " -}}
    {{- if and (eq (int (index $hugoVersion 0)) 0) (ge (int (index $hugoVersion 1)) 101) -}}
        {{- /* no leading slash */ -}}
        <script src="{{"js/journal.js" | relURL}}"></script>
    {{- else -}}
        {{- /* with leading slash */ -}}
        <script src="{{"/js/journal.js" | relURL}}"></script>
    {{- end -}}
    
    </body>
</html>

```

And I don’t see any errors.

---

<div class="post-metadata">

**Author:** ![tunnelthrutime](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@tunnelthrutime](https://discourse.gohugo.io/u/tunnelthrutime)\
**Post date:** [September 12, 2026, 4:25pm UTC](https://discourse.gohugo.io/t/amazingrise-hugo-theme-diary-broken-with-new-hugo-version/57546/2 "2026-09-12T16:25:30Z")

</div>

nvm I found a file `layouts/outbox/email.html` that contained:

```auto
      │ File: layouts/outbox/email.html
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1 │ {{ define "email" }}
   2 │ <!doctype html>
   3 │ <html lang="en">
   4 │ <body>
   5 │ </body>
   6 │ </html>

```

so I closed the define with `{{ end }}` and it solved the issue

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [September 14, 2026, 4:26pm UTC](https://discourse.gohugo.io/t/amazingrise-hugo-theme-diary-broken-with-new-hugo-version/57546/3 "2026-09-14T16:26:31Z")

</div>

Closed on September 14, 2026, 4:26pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
