hugoをUbuntu 18.04 LTSにインストールする

Posted on
hugo ubuntu

Windows 10にVmware Workstation 15 Playerをインストールし、Ubuntu 18.04 LTSを使えるようにした。ブログをしばらく更新していなかったので、Hugoをインストールしようと思ったらつまづいた。

過去に書いた記事と同じ方法でインストールしようとしたけど、mage vendorのところでつまづいた。を確認してみたら、やり方が変わっていた。


% snap info hugo
summary: A Fast and Flexible Static Site Generator built with love by bep, spf13 and friends in Go.
publisher: hugo-authors
license:   Apache-2.0
description: |
  Hugo is a static HTML and CSS website generator written in Go. It is
  optimized for speed, easy use and configurability. Hugo takes a directory
  with content and templates and renders them into a full HTML website.
snap-id: t6YzDBM3com27avINGL5OD6ZKKG654ez
  stable:             0.52     (3347) 25MB -
  candidate:          ↑                    
  beta:               ↑                    
  edge:               0.53-DEV (3359) 25MB -
  extended/stable:    0.52     (3343) 26MB -
  extended/candidate: ↑                    
  extended/beta:      ↑                    
  extended/edge:      0.53-DEV (3356) 26MB -

% apt search hugo        
ソート中... 完了
全文検索... 完了  
game-data-packager/bionic,bionic 58 all
  Installer for game data files

gargoyle-free/bionic 2011.1b-1 amd64
  graphical player for Interactive Fiction games

golang-github-gohugoio-hugo-dev/bionic,bionic 0.40.1-1 all
  Go source code and library of Hugo the static website generator

golang-github-spf13-cast-dev/bionic,bionic 1.2.0-1 all
  Safe and easy casting from one type to another in Go

hugo/bionic 0.40.1-1 amd64
  Fast and flexible Static Site Generator written in Go

staticsite/bionic,bionic 0.4-1 all
  Static site generator


% sudo snap install hugo --channel=extended
hugo (extended/stable) 0.52 from 'hugo-authors' installed


% hugo version  
Hugo Static Site Generator v0.52/extended linux/amd64 BuildDate: 2018-11-28T18:27:35Z