michaelneuper / hugo-texify3

A LaTeX-style hugo theme with the gruvbox color scheme for personal blogging
https://michaelneuper.github.io/hugo-texify3/
MIT License
58 stars 18 forks source link

[BUG] Not compatible with 0.111.* verision of Hugo #8

Open M-Arnone opened 5 months ago

M-Arnone commented 5 months ago

I tried to installed Hugo from source and from apt but didn't work.

[mattos@mysite]$ hugo server
WARN 2024/05/25 17:38:36 Module "hugo-texify3" is not compatible with this Hugo version; run "hugo mod graph" for more information.
Start building sites … 
hugo v0.111.0-3fa8bb8318114cd69315eadd35bda169e6a8ca4b+extended linux/amd64 BuildDate=2023-03-01T20:57:44Z VendorInfo=gohugoio

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

Built in 35 ms
Watching for changes in /home/mattos/mysite/{archetypes,content,data,layouts,static,themes}
Watching for config changes in /home/mattos/mysite/config.toml, /home/mattos/mysite/themes/hugo-texify3/config.toml, /home/mattos/mysite/themes/hugo-texify3/config/_default
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at //localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
^C[mattos@mysite]$ hugo mod graph
WARN 2024/05/25 17:38:43 Module "hugo-texify3" is not compatible with this Hugo version; run "hugo mod graph" for more information.
project hugo-texify3
[mattos@mysite]$ 

Environment variables

[mattos@mysite]$ hugo env
hugo v0.111.0-3fa8bb8318114cd69315eadd35bda169e6a8ca4b+extended linux/amd64 BuildDate=2023-03-01T20:57:44Z VendorInfo=gohugoio
GOOS="linux"
GOARCH="amd64"
GOVERSION="go1.20.1"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.2.4"
[mattos@mysite]$ 

And I followed this tutorial to install the extended edition of Hugo.

I'm on Linux Mint 21.3 x86_64

M-Arnone commented 5 months ago

The solution was to :

1. Remove the current version of Hugo

If you did it with apt just do

sudo apt-get remove --purge hugo

If you did it manually :

sudo rm /usr/local/bin/hugo
sudo rm -rf /usr/local/share/hugo

2. Build Hugo from source (I'm on Mint)

Note : This will install the extended version of Hugo.

wget https://github.com/gohugoio/hugo/releases/tag/v0.126.1/hugo_0.126.1_linux-arm64.deb 
sudo dpkg -i hugo_0.126.1_linux-arm64.deb

3. Install 3 npm packages :

npm install postcss-cli
npm install autoprefixer
npm install postcss-import