Code Monkey home page Code Monkey logo

Comments (3)

chillerby avatar chillerby commented on July 20, 2024

This is because you are installing an older, unsupported version of Hugo. The official Ubuntu 18.04 repositories are hosting 0.40.1-1 as the latest package which would be an issue for whomever manages those packages, not this theme. Instead of using apt-get install hugo try using snap as instructed at this doc by doing sudo snap install hugo --classic or if that is unsuccessful try installing from the tarball.

from hugo-theme-m10c.

vaga avatar vaga commented on July 20, 2024

You should use Hugo v0.55

I fixed future deprecation for several variables like .Hugo. (4f7e383)
See https://github.com/gohugoio/hugo/releases/tag/v0.55.0

I should update the min_version in config.toml

from hugo-theme-m10c.

pavo976 avatar pavo976 commented on July 20, 2024

This helps me, tnx

docker run -dit --name hugo ubuntu:18.04
docker exec -it hugo bash
apt update
apt-get install software-properties-common wget vim git
apt-get install -y software-properties-common

https://github.com/golang/go/wiki/Ubuntu

add-apt-repository ppa:gophers/archive
apt update
apt-get install golang-1.11-go

https://github.com/gohugoio/hugo/releases/

wget https://github.com/gohugoio/hugo/releases/download/v0.55.4/hugo_0.55.4_Linux-64bit.deb
dpkg -i hugo_0.55.4_Linux-64bit.deb
hugo new site quickstart
cd quickstart
hugo new posts/my-first-post.md
vim ./content/posts/my-first-post.md
git init
git submodule add https://github.com/vaga/hugo-theme-m10c.git themes/m10c

vim ./config.toml

baseURL = "https://example.com"
languageCode = "en-us"
title = "Title test1"
theme = "m10c"

hugo server -D --bind="0.0.0.0" --baseUrl="blog.example.com

root@5b24984dc076:/srv/www/quickstart# dpkg -l hugo
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                              Version                       Architecture                  Description
+++-=================================================-=============================-=============================-=======================================================================================================
ii  hugo                                              0.55.4

from hugo-theme-m10c.

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.