Error: unexpected unclosed action in command

getting a parse error while running hugo server
my footer.html file is below

Link to the repo - Link

You are more likely to receive a prompt and accurate response if you post a link to the public repository for your project.

See https://discourse.gohugo.io/t/requesting-help/9132.

Let us see your code

Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.

If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.

I have added my repo link to the post

I’m unable to reproduce the problem when I:

git clone --recurse-submodules https://github.com/abrahamalen/alen-abraham.github.io
cd alen-abraham.github.io/
hugo

I am not able to run hugo serve command

.github/workflows/gh-pages.yml shows you’re building your site with v0.92.0 on gh pages.

What version of hugo are you running locally?

You need v0.81.0 or later to handle newlines in the middle of template actions:
https://github.com/gohugoio/hugo/releases/tag/v0.81.0

The current version is v0.92.1:
https://github.com/gohugoio/hugo/releases/tag/v0.92.1

You should always run the same version locally.

So I should update my local hugo vestion to 92 right?

Or 92.1, but update gh pages as well.

Can you help me out in doing these

Open a separate topic if you need community assistance with upgrading.

Okay :heart:

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