Hugo Framework
Auf dieser Seite
Website: https://gohugo.io
Installation
Quelle: https://gohugo.io/installation/macos/
- To install the extended edition of Hugo:
brew install hugoTo build the extended or extended/deploy edition from source you must:
To build the standard edition:
go install github.com/gohugoio/hugo@latestHugo starten
Hugo-Verzeichnis anlegen:
Create the directory structure for your project in the quickstart directory.
hugo new site quickstartChange the current directory to the root of your project.
cd quickstartTheme installieren (Option 1):
1 Change into the themes directory and download a theme by replacing URL_TO_THEME with the URL of the theme repository:
cd themes
git clone URL_TO_THEMETheme installieren (Option 2):
Initialize an empty Git repository in the current directory.
git initClone the Ananke theme into the themes directory, adding it to your project as a Git submodule.
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/anankeAppend a line to the site configuration file, indicating the current theme.
echo "theme = 'ananke'" >> hugo.tomlServer starten
Start Hugo’s development server to view the site.
hugo serveralternativ:
hugo server --minify --theme [themename]Press Ctrl + C to stop Hugo’s development server.
Website aufrufen:
Befehle
Add a new page to your site.
hugo new content content/posts/my-first-post.mdThemes
Übersicht: https://themes.gohugo.io
Hugo Book Theme: https://themes.gohugo.io/themes/hugo-book/
LoveIt Theme: https://themes.gohugo.io/themes/loveit/
Doks: https://themes.gohugo.io/themes/doks/
Quelle: https://gohugobrasil.netlify.app/themes/installing-and-using-themes/ ↩︎