Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
saadaouad committed Oct 17, 2017
1 parent 4704d33 commit d8f43f9
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
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
6 changes: 6 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true
---

4 changes: 4 additions & 0 deletions config.toml
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"
10 changes: 10 additions & 0 deletions content/about/_index.md
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.
95 changes: 95 additions & 0 deletions content/post/go-hugo.md
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!**
19 changes: 19 additions & 0 deletions content/post/never-stop-learning.md
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.
1 change: 1 addition & 0 deletions themes/hugo-theme-cactus-plus
Submodule hugo-theme-cactus-plus added at 8c47cc

0 comments on commit d8f43f9

Please sign in to comment.