Anatole: Error

Created on 8 Jan 2021  ยท  23Comments  ยท  Source: lxndrblz/anatole

โžœ  blog git:(master) โœ— hugo server -D
Error: "/home/skydev/Documents/blog/themes/anatole/layouts/_default/single.html:43:1": parse failed: template: _default/single.html:43: illegal number syntax: "-"
โžœ  blog git:(master) โœ— 

Solution please

question

All 23 comments

@skyoffc When did you get this error? How can I reproduce it?

I've just tried the following and couldn't reproduce it:

hugo new site test
cd themes
git clone https://github.com/lxndrblz/anatole.git anatole
cd  .. 
hugo server -D

Even your blog builds perfectly fine for me:

image

If that is another and it worked perfectly but with the update that you did it no longer works for me even I download the same repository and nothing until I tried with exapleSite and the same error appears

Any solution?

@skyoffc Which version did you try? The latest? (maybe try a git submodule update --remote --merge)

Did you change anything locally that is not on GitHub yet?

the same error appears

Would you mind stating your exact steps you took? That would greatly help me to troubleshoot the issue. ๐Ÿ‘

โžœ  Documents hugo new site test
Congratulations! Your new Hugo site is created in /home/skydev/Documents/test.

Just a few more steps and you're ready to go:

1. Download a theme into the same-named folder.
   Choose a theme from https://themes.gohugo.io/, or
   create your own with the "hugo new theme <THEMENAME>" command.
2. Perhaps you want to add some content. You can add single files
   with "hugo new <SECTIONNAME>/<FILENAME>.<FORMAT>".
3. Start the built-in live server via "hugo server".

Visit https://gohugo.io/ for quickstart guide and full documentation.
โžœ  Documents cd test/themes 
โžœ  themes git clone https://github.com/lxndrblz/anatole.git anatole
Cloning into 'anatole'...
remote: Enumerating objects: 118, done.
remote: Counting objects: 100% (118/118), done.
remote: Compressing objects: 100% (92/92), done.
remote: Total 1264 (delta 48), reused 82 (delta 25), pack-reused 1146
Receiving objects: 100% (1264/1264), 4.38 MiB | 675.00 KiB/s, done.
Resolving deltas: 100% (665/665), done.
โžœ  themes cd ../        
โžœ  test hugo server -D    
Building sites โ€ฆ WARN 2021/01/08 13:59:23 Found no layout for "taxonomyTerm", language "en", output format "HTML": create a template below /layouts with one of these filenames: categories/terms.en.html.html, categories/list.en.html.html, categories/terms.html.html, categories/list.html.html, categories/terms.en.html, categories/list.en.html, categories/terms.html, categories/list.html, taxonomy/terms.en.html.html, taxonomy/list.en.html.html, taxonomy/terms.html.html, taxonomy/list.html.html, taxonomy/terms.en.html, taxonomy/list.en.html, taxonomy/terms.html, taxonomy/list.html, _default/terms.en.html.html, _default/list.en.html.html, _default/terms.html.html, _default/list.html.html, _default/terms.en.html, _default/list.en.html, _default/terms.html, _default/list.html
WARN 2021/01/08 13:59:23 Found no layout for "home", language "en", output format "HTML": create a template below /layouts with one of these filenames: index.en.html.html, home.en.html.html, list.en.html.html, index.html.html, home.html.html, list.html.html, index.en.html, home.en.html, list.en.html, index.html, home.html, list.html, _default/index.en.html.html, _default/home.en.html.html, _default/list.en.html.html, _default/index.html.html, _default/home.html.html, _default/list.html.html, _default/index.en.html, _default/home.en.html, _default/list.en.html, _default/index.html, _default/home.html, _default/list.html
WARN 2021/01/08 13:59:23 Found no layout for "taxonomyTerm", language "en", output format "HTML": create a template below /layouts with one of these filenames: tags/terms.en.html.html, tags/list.en.html.html, tags/terms.html.html, tags/list.html.html, tags/terms.en.html, tags/list.en.html, tags/terms.html, tags/list.html, taxonomy/terms.en.html.html, taxonomy/list.en.html.html, taxonomy/terms.html.html, taxonomy/list.html.html, taxonomy/terms.en.html, taxonomy/list.en.html, taxonomy/terms.html, taxonomy/list.html, _default/terms.en.html.html, _default/list.en.html.html, _default/terms.html.html, _default/list.html.html, _default/terms.en.html, _default/list.en.html, _default/terms.html, _default/list.html

                   | EN  
+------------------+----+
  Pages            |  3  
  Paginator pages  |  0  
  Non-page files   |  0  
  Static files     |  0  
  Processed images |  0  
  Aliases          |  0  
  Sitemaps         |  1  
  Cleaned          |  0  

Total in 26 ms
Watching for changes in /home/skydev/Documents/test/{content,data,layouts,static}
Watching for config changes in /home/skydev/Documents/test/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
WARN 2021/01/08 13:59:37 Found no layout for "home", language "en", output format "HTML": create a template below /layouts with one of these filenames: index.en.html.html, home.en.html.html, list.en.html.html, index.html.html, home.html.html, list.html.html, index.en.html, home.en.html, list.en.html, index.html, home.html, list.html, _default/index.en.html.html, _default/home.en.html.html, _default/list.en.html.html, _default/index.html.html, _default/home.html.html, _default/list.html.html, _default/index.en.html, _default/home.en.html, _default/list.en.html, _default/index.html, _default/home.html, _default/list.html

And if I add the theme in the config.toml
pass this. error

fix it plz I really liked this topic

One last question, which version of Hugo do you have?

I am currently trying to reproduce your error.

Hugo Static Site Generator v0.54.0/extended

Problem solved was hugo's version, thanks you can now close the issue

Thanks, for bringing this to my attention. I have found the issue. ๐Ÿ’ฏ I've just updated the theme also, so it can still with run with older versions too. At a minimum I support v0.53. I was testing with a newer version, which didn't report this error.

A newer version of Hugo can never hurt.

One last question, how to add an image to any post probe in various ways, save them in the static folder but they don't load to put them, I must upload them to img.gur

Where do you want to add them? As a thumbnail for post or inside the content of a post?

both bro

If you see the part of the cover of each publication instead of putting it inside I want to put them as the cover of each post

Within the content do like this:

![Test](/images/2018/05/Test.png)

This folder is stored in:
/static/images/2018/05/Test.png

For it's almost the same, also put the image into your /static/images directory and point the frontmatter to /images/foo..

I tried that several times and it did not work but I will try and as a cover what would it be like?

That would be:

thumbnail= "images/2018/05/preview.jpg"

What error do you get every time?

Do I add that in every post?

Yes, because they should be specific for every post.

In each post I put the description parameter but it is not added, do you know why the description does not appear?

Create a folder inside static/images/2021/01/coldd / and inside add images but they don't load me, you know why? The cover loads me but not inside the new folder.

In each post I put the description parameter but it is not added, do you know why the description does not appear?

You need to use summary instead of description. Try like this:

---
title: "Tryhackme Searchlight IMINT"
date: 2020-08-18T16:12:28+02:00
draft: false
summary: "A tryhackme machine on OSINT."
Tags: []
Categories: []
DisableComments: false
---

Also make sure to use the recent version Hugo.
image

The images didn't load because you added blog to the path, you would need to do like this:

![Task2](/blog/images/thm/searchlight/task2.jpg)

image

Or get rid of the blog..

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shariq1989 picture shariq1989  ยท  3Comments

ivnvitx picture ivnvitx  ยท  3Comments

SamEdwardes picture SamEdwardes  ยท  6Comments

msfjarvis picture msfjarvis  ยท  3Comments

Xen-Echo picture Xen-Echo  ยท  4Comments