organised and linted all posts
imported workspace into obsidian linted files organized yaml frontmatter unified yaml value formats removed yaml front matter no longer needed
This commit is contained in:
@@ -1,19 +1,18 @@
|
||||
---
|
||||
title: Setup a HUGO Site
|
||||
date: 2022-12-31T22:03:52Z
|
||||
author: "ahmza"
|
||||
description: Always wanted to setup a static website. Look no further !! In this post we go over the basics of setting up a HUGO site
|
||||
tags:
|
||||
- blog
|
||||
- HUGO
|
||||
- web
|
||||
- development
|
||||
- website
|
||||
author: ahmza
|
||||
date: 2022-12-31
|
||||
draft: false
|
||||
weight:
|
||||
|
||||
tags: ["blog", "website", "web development", "HUGO"]
|
||||
description: "Always wanted to setup a static website. Look no further !! In this post we go over the basics of setting up a HUGO site"
|
||||
canonicalURL: "https://blog.ahmza.com/Page%28/posts/setting-up-a-hugo-site.md%29"
|
||||
|
||||
cover:
|
||||
image: "/img/hugo/feature.webp" # image path/url
|
||||
alt: "HUGO Logo" # alt text
|
||||
caption: "The HUGO logo" # display caption under cover
|
||||
relative: false # when using page bundles set this to true
|
||||
featureimage: feature.webp
|
||||
lastmod:
|
||||
---
|
||||
|
||||
## **Introduction**
|
||||
@@ -33,7 +32,7 @@ Generator](https://blog.ahmza.com/posts/hugo-static-site-generator/)
|
||||
|
||||
[Official steps](https://gohugo.io/installation/)
|
||||
|
||||
The _HUGO_ binary is used to initialize our site then create posts etc... Below
|
||||
The _HUGO_ binary is used to initialize our site then create posts etc… Below
|
||||
are the steps for _MacOS_ and _Arch_ based _Linux_ distros.
|
||||
|
||||
### _MacOS_
|
||||
@@ -56,7 +55,7 @@ sudo pacman -S hugo
|
||||
hugo version
|
||||
```
|
||||
|
||||
## Create your site
|
||||
## Create Your Site
|
||||
|
||||
This assumes choices for you, i.e the theme used.
|
||||
|
||||
@@ -121,7 +120,7 @@ hugo new posts/<post-name>.md
|
||||
vim content/posts/<post-name>.md
|
||||
```
|
||||
|
||||
## Start the server
|
||||
## Start the Server
|
||||
|
||||
Now that we have created our site, installed a theme and created a post lets
|
||||
start the server.
|
||||
@@ -160,7 +159,7 @@ Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
|
||||
Press Ctrl+C to stop
|
||||
```
|
||||
|
||||
_Notice the second line to the bottom. Web Server... This line gives you a
|
||||
_Notice the second line to the bottom. Web Server… This line gives you a
|
||||
localhost URL that you can use in your browser to view your site locally._
|
||||
|
||||
## Configure Site
|
||||
@@ -173,7 +172,7 @@ vim config.yml
|
||||
|
||||
**Important changes you need to make**
|
||||
|
||||
- baseURL - External URL. In my case. https://blog.ahmza.com
|
||||
- baseURL - External URL. In my case. <https://blog.ahmza.com>
|
||||
- title - Title of your site.
|
||||
|
||||
Here is my config.yml with bits redacted so you can fill them in
|
||||
@@ -321,7 +320,7 @@ markup:
|
||||
# lineNos: true
|
||||
```
|
||||
|
||||
## Run the server again
|
||||
## Run the Server Again
|
||||
|
||||
Run the server and check out your hard work. Change settings make posts etc.
|
||||
Have fun !!
|
||||
@@ -330,7 +329,7 @@ Have fun !!
|
||||
hugo server -D
|
||||
```
|
||||
|
||||
## Publish your site
|
||||
## Publish Your Site
|
||||
|
||||
Once you are happy with your site, you may want to publish it to the internet.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user