hugo

このサイトの作り方

Apr 16, 2019
hugo

Macユーザー用 ものすごい初歩からこのサイトの作り方を説明しています. この手順で作成するとGitHubに全ての内容/更新履歴/更新内容が公開されますので, 適宜読み替えてください. Macにgitをインストールする # https://git-scm.com/download/mac GitHubにアカウントを作成する # https://github.com MacにHomebrewをインストールする # /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" References: https://brew.sh/index_ja.html https://github.com/Homebrew/brew MacにHugo(静的サイトジェネレーター)をインストールする # brew install hugo Reference: Install Hugo HugoのExtendedバージョンをインストールする # 以下内容をhugo_latest.sh名で保存する. # hugo_latest.sh # Find the latest Hugo from GitHub echo '🐹 Starting Hugo Install / Update 🐹' echo ' Note: Please be sure to have curl and grep installed' echo '' url=$(curl -s "https://api.github.com/repositories/11180687/releases/latest" | grep -o 'https://.*hugo_extended.*_macOS-64bit.tar.gz') echo '✅ Found latest version' curl -s $url -L -o hugo_latest. ...