-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
138 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "themes/hugo-theme-cactus-plus"] | ||
path = themes/hugo-theme-cactus-plus | ||
url = https://github.com/nodejh/hugo-theme-cactus-plus.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: "{{ replace .TranslationBaseName "-" " " | title }}" | ||
date: {{ .Date }} | ||
draft: true | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
baseURL = "http://example.org/" | ||
languageCode = "en-us" | ||
title = "My New Hugo Site" | ||
theme = "hugo-theme-cactus-plus" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
+++ | ||
date = "2015-06-20T14:02:37+02:00" | ||
title = "About" | ||
hidden = true | ||
+++ | ||
|
||
I'm Saad Aouad born and raised in Casablanca, Morocco <br /> | ||
In modern day, I'm a web developer at Coded, Ltd. | ||
|
||
Contributor in [Fugoki](https://github.com/fugoki), [Obytes](https://github.com/obytes) and [Youraok](https://github.com/youraoknet). Passionate about the new technologies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
--- | ||
author: "Saad Aouad" | ||
date: 2017-10-02 | ||
linktitle: Go HUGO - Fast and flexible static site generator build with GoLang | ||
menu: | ||
main: | ||
parent: tutorials | ||
next: /tutorials/github-pages-blog | ||
prev: /tutorials/automated-deployments | ||
title: Go HUGO - Fast and flexible static site generator build with GoLang | ||
description: The world’s fastest framework for building websites | ||
weight: 10 | ||
--- | ||
|
||
|
||
> Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again. | ||
### **Quick Start** | ||
|
||
#### **Step 1: Install Hugo** | ||
> Homebrew, a package manager for macOS, can be installed from brew.sh. See [install](http://gohugo.io/getting-started/installing) if you are running Windows etc. | ||
``` | ||
brew install hugo | ||
``` | ||
Verify installation: | ||
``` | ||
hugo version | ||
``` | ||
|
||
#### **Step 2: Create a New Site** | ||
|
||
Create a new Hugo site in a folder named GoHugo | ||
``` | ||
hugo new site GoHugo | ||
``` | ||
|
||
#### **Step 3: Add a Theme** | ||
|
||
Check [themes.gohugo.io](https://themes.gohugo.io/) this is a list of themes to consider. | ||
This quickstart uses the beautiful [Tranquilpeak theme](https://themes.gohugo.io/hugo-tranquilpeak-theme/). | ||
|
||
``` | ||
cd GoHugo;\ | ||
git init;\ | ||
git submodule add https://github.com/kakawait/hugo-tranquilpeak-theme.git themes/hugo-tranquilpeak-theme;\ | ||
# Edit your config.toml configuration file | ||
# and add the Tranquilpeak theme. | ||
echo 'theme = "hugo-tranquilpeak-theme"' >> config.toml | ||
``` | ||
|
||
#### **Step 4: Add Content** | ||
``` | ||
hugo new posts/my-first-post.md | ||
``` | ||
|
||
#### **Step 5: Run Hugo server** | ||
``` | ||
hugo server -D | ||
# Or | ||
hugo server | ||
## Example | ||
➜ hugo-static git:(master) hugo server | ||
Started building sites ... | ||
Built site for language en: | ||
0 draft content | ||
0 future content | ||
0 expired content | ||
1 regular pages created | ||
10 other pages created | ||
0 non-page files copied | ||
1 paginator pages created | ||
0 tags created | ||
0 categories created | ||
total in 8 ms | ||
Watching for changes in /Users/saadaouad/hugo-static/{data,content,layouts,static,themes} | ||
Serving pages from memory | ||
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1) | ||
Press Ctrl+C to stop | ||
``` | ||
|
||
#### **Step 6: Customize your site** | ||
Open up `config.toml` in any any text editor, and try to customize your web site like this: | ||
``` | ||
baseURL = "https://saadaouad.io/" | ||
languageCode = "en-us" | ||
title = "My New Web Site Build With Hugo" | ||
theme = "hugo-tranquilpeak-theme" | ||
``` | ||
If you already have a domain ready, please set it to the `baseURL`, add your personal `title`, and you can also set the name of the `theme`. | ||
|
||
|
||
##### **Happy hacking!** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
author: "Saad Aouad" | ||
date: 2017-10-02 | ||
linktitle: Never stop learning | ||
menu: | ||
main: | ||
parent: tutorials | ||
next: /tutorials/github-pages-blog | ||
prev: /tutorials/automated-deployments | ||
title: Never stop learning | ||
description: They never show that, they never teach that in school. | ||
weight: 10 | ||
--- | ||
|
||
|
||
### **Never stop learning** | ||
|
||
They never show that, they never teach that in school, you get your degree and then you work from 9am to 5pm, you go to the home, No! Every good engineer, i guarantee you they go home, they work, they study, so that when it comes time to learn new things, they know all about it already. | ||
And that, to me, is my road to mastery for any sort of technology. |
Submodule hugo-theme-cactus-plus
added at
8c47cc