dillonzq / LoveIt

❤️A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
https://hugoloveit.com
MIT License
3.4k stars 1.08k forks source link

parse failed: template: shortcodes/admonition.html:3: function "merge" not defined #10

Closed agouny closed 4 years ago

agouny commented 4 years ago

Trying to use LoveIt and getting the below error when running hugo either locally or via netlify:

Error: "/home/[...]/themes/LoveIt/layouts/shortcodes/admonition.html:3:1": parse failed: template: shortcodes/admonition.html:3: function "merge" not defined

Haven't been able to find any pointers so far so raising an issue, thanks for your help.

agouny commented 4 years ago

hugo version 0.55.6+really0.54.0-1 (Debian buster)

Programazing commented 4 years ago

@agouny Update to a newer version of Hugo

ghost commented 4 years ago

Running into same issue. I've installed the latest hugo

idrusfachr commented 4 years ago

+1 got same issue. hugo version 0.63.2 (newest)

dillonzq commented 4 years ago

https://github.com/gcushen/hugo-academic/issues/1464 maybe the same issue?

idrusfachr commented 4 years ago

Just share what happened on me. Maybe still don't answer the problem. I got this error twice when deploying on netlify. What i did to encounter this error is nothing. Literally I didn't make any changes on the file pointed on error log. I just edited another files (that not related to the issue), add new post, publish locally (I'm using R blogdown, fyi) to check if everything is work fine, then I commit & push the changes to my repo. and the deployment success.

It happened twice on me and what can i suggest to you so far is just try to redeploy your site again.

dillonzq commented 4 years ago

@idrusfachr Which version of Hugo on Netlify are you using? The demo site of the theme is also deployed on Netlify.

idrusfachr commented 4 years ago

I am using Hugo 0.63.2. My site is already running.

rocketdonut commented 4 years ago

Same issue here. Using v0.64.1/extended.

rocketdonut commented 4 years ago

Tried again by adding a netlify.toml in my root directory with my local version of hugo and everything is running smoothly.

[build]
  publish = "public"
  command = "hugo"

[context.production.environment]
  HUGO_VERSION = "0.64.1"
  HUGO_ENV = "production"
  HUGO_ENABLEGITINFO = "true"
he-y commented 4 years ago

Tried again by adding a netlify.toml in my root directory with my local version of hugo and everything is running smoothly.

[build]
  publish = "public"
  command = "hugo"

[context.production.environment]
  HUGO_VERSION = "0.64.1"
  HUGO_ENV = "production"
  HUGO_ENABLEGITINFO = "true"

Tired but failed.