スタティックページブログとして
5598 ワード
私のジキルサイトのセットアップの後、私はhugoに遭遇しました.
Hugoは静的サイトジェネレータです、それが使用するように、ジキルと同じ線で
私がHugoに対してジキルをテストした後に気づいた主な違いは、それが速いということです.それはフードの下に行くようだ.
セットアップHUGOに簡単なチュートリアルをさせてください.
私はMacを使用しています.
ゲットChocolatey パッケージ管理を行います.
ゲットBrew そこに指示に従ってください.
作成したいディレクトリに移動します
参照themes.gohugo.io テーマを閲覧する.
私はAnanke theme
サイトフォルダにステップインし、折り畳みコマンドを実行します.
コマンドラインからエコーします.
公開する前にサイトを微調整することができます.
オープン
置換
Hugoは静的サイトジェネレータです、それが使用するように、ジキルと同じ線で
Markdown
ブログ投稿を作成するには.私がHugoに対してジキルをテストした後に気づいた主な違いは、それが速いということです.それはフードの下に行くようだ.
セットアップHUGOに簡単なチュートリアルをさせてください.
チュートリアル:
ステップ1:インストールhugo
私はMacを使用しています.
Windows
ゲットChocolatey パッケージ管理を行います.
choco install hugo -confirm
Linux
ゲットBrew そこに指示に従ってください.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
を実行するbrew
インストールを開始するhugo
brew install hugo
MAC (上記のコマンド)
ステップ2 :新しいサイトを作成します。
作成したいディレクトリに移動します
Hugo
次のコマンドを実行します.hugo new site <name-of-site-dir>
フォルダに新しいhugoサイトを作成しますname-of-site-dir
.ステップ3:テーマを追加
Requirement:
git
is installed
参照themes.gohugo.io テーマを閲覧する.
私はAnanke theme
サイトフォルダにステップインし、折り畳みコマンドを実行します.
git init
git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke
今すぐ編集config.toml
設定ファイルとanankeテーマを追加しますコマンドラインからエコーします.
echo 'theme = "ananke"' >> config.toml
またはテキストエディタから編集しますbaseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
theme = "ananke"
ステップ4 :コンテンツを追加
hugo new posts/my-first-post.md
あなたが好きならば、あなたは両方を使うことができますMarkdown
or Html
, あなたの選択.ステップ5 :サーバの起動
hugo server -D
次にhttp://localhost:1313/. ステップ6:カスタマイズテーマ
公開する前にサイトを微調整することができます.
サイトの設定
オープン
config.toml
お気に入りのテキストエディタで.置換
title
個人的にbaseUrl
(既にドメインがある場合)baseURL = "http://andrehatlo.org/"
languageCode = "en-us"
title = "Hello! I'm André :)"
theme = "ananke"
Tip:
Making changes to files in your new Hugo site
while the server is running will automatically update
the site and you will see the changes right away.
今すぐあなたのサイトが稼働しているあなたはここでヒューゴドキュメントを読むことによって行うには見つけることができます
Note that i stayed with Jekyll even though Hugo was an awesome choice for a personal blog with the same features > but fast. This is mostly because i found that Jekyll was more intuitive when coming to posting and doing simple > customization. What ever you pick if you choose to start a blog/portfolio you cant go wrong either way!
Reference
この問題について(スタティックページブログとして), 我々は、より多くの情報をここで見つけました https://dev.to/andrehatlo/hugo-as-a-static-page-blog-18g8テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol