GithubHelp home page GithubHelp logo

Comments (8)

DevTown avatar DevTown commented on July 17, 2024 1

The Bug is fixt in Main but not in the newest release. :-(

Go to themes\ananke\layouts_default\baseof.html on line 40 have to look like :
{{ template "_internal/google_analytics.html" . }}

from gohugo-theme-ananke.

ricardopoffo avatar ricardopoffo commented on July 17, 2024

Hello! I cloned your repo and reproduced the problem on my local machine. I got rid of the error message by creating an _internal/google_analytics_async.html file. I consider this a temporary solution. I came here looking for help with another problem, but I figured I could help you as well. I have a very similar blog. Could you tell us more about the changes made since the last working version?

from gohugo-theme-ananke.

JMHReif avatar JMHReif commented on July 17, 2024

I added the _internal/google_analytics_async.html file, but it's still throwing the error. Do I need to add that in a specific place in my repo?

from gohugo-theme-ananke.

JMHReif avatar JMHReif commented on July 17, 2024

As far as the changes made, I added a new blog post under the content folder, added a new image under the static folder (both are things I do all the time). I also updated a few of my old blog post names to start with a date, so that they have a consistent order under the blog folder. I wouldn't think renaming posts would cause that particular error, but maybe?

from gohugo-theme-ananke.

JMHReif avatar JMHReif commented on July 17, 2024

I'm sorry, @DevTown, my frontend skills are less than stellar.....do I need to copy the whole baseof.html file from the theme repo into my repo and then modify there for it to pick up the change?

from gohugo-theme-ananke.

JMHReif avatar JMHReif commented on July 17, 2024

@DevTown and @ricardopoffo, I don't have Google Analytics enabled on my repo. The theme is a submodule in my repo, but I haven't pulled all the files into my repository (folder placeholder only). Could someone explain a bit more how this should work? I would really appreciate a bit more explanation! :)

from gohugo-theme-ananke.

DevTown avatar DevTown commented on July 17, 2024

@regisphilibert Could you deploy a fixed version from the main plz ?

@JMHReif : When you want to create your site local you can go to your checkout theme folder .
Where you go to the ananke\layouts_default Folder .
There you open the file baseof.html in a editor of your choice .
Now delete line 40 and past the following line in it:

{{ template "_internal/google_analytics.html" . }}

After you save the file you can run hugo again.

The problem is not that you are using google_analytics or not. The theme has the possibility to use it and the theme has a bug. It is fixed in the githubrepo but not i a released.

from gohugo-theme-ananke.

JMHReif avatar JMHReif commented on July 17, 2024

Thank you for the help, @DevTown! My site can be updated again. :)

from gohugo-theme-ananke.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.