You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -51,3 +52,7 @@ For both solutions, the documentation is available at https://github.com/matcorn
51
52
## Credits
52
53
53
54
Many thanks to [@vjeantet](https://github.com/vjeantet/) for the fork [docdock](https://github.com/vjeantet/hugo-theme-docdock). The v2 of this theme is mainly based on his work !
Copy file name to clipboardExpand all lines: exampleSite/content/basics/installation/_index.en.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Installation
3
3
weight: 15
4
4
---
5
5
6
-
The following steps are here to help you initialize your new website. If you don't know Hugo at all, we strongly suggest you to train by following this [great documentation for beginners](https://gohugo.io/overview/quickstart/).
6
+
The following steps are here to help you initialize your new website. If you don't know Hugo at all, we strongly suggest you learn more about it by following this [great documentation for beginners](https://gohugo.io/overview/quickstart/).
7
7
8
8
## Create your project
9
9
@@ -17,33 +17,33 @@ hugo new site <new_project>
17
17
18
18
Install the **Hugo-theme-learn** theme by following [this documentation](https://gohugo.io/themes/installing/)
19
19
20
-
The theme's repository is: https://github.com/matcornic/hugo-theme-learn.git
20
+
This theme's repository is: https://github.com/matcornic/hugo-theme-learn.git
21
21
22
-
Alternatively, you can [download the theme as .zip](https://github.com/matcornic/hugo-theme-learn/archive/master.zip) file and extract it in the themes directory
22
+
Alternatively, you can [download the theme as .zip](https://github.com/matcornic/hugo-theme-learn/archive/master.zip) file and extract it in the `themes` directory
23
23
24
24
## Basic configuration
25
25
26
-
When building the website, you can set a theme by using `--theme` option. We suggest you to edit your configuration file and set the theme by default. By the way, add requirements for search functionnality to be enabled.
26
+
When building the website, you can set a theme by using `--theme` option. However, we suggest you modify the configuration file (`config.toml`) and set the theme as the default. You can also add the `[outputs]` section to enable the search functionality.
27
27
28
28
```toml
29
29
# Change the default theme to be use when building the site with Hugo
30
30
theme = "hugo-theme-learn"
31
31
32
-
# For search functionnality
32
+
# For search functionality
33
33
[outputs]
34
34
home = [ "HTML", "RSS", "JSON"]
35
35
```
36
36
37
37
## Create your first chapter page
38
38
39
-
Chapters are pages containg other child pages. It has a special layout style and usually just contains a _chapter name_, the _title_ and a _brief abstract_ of the section.
39
+
Chapters are pages that contain other child pages. It has a special layout style and usually just contains a _chapter name_, the _title_ and a _brief abstract_ of the section.
40
40
41
41
```
42
42
### Chapter 1
43
43
44
44
# Basics
45
45
46
-
Discover what this Hugo theme is all about and the core-concepts behind it.
46
+
Discover what this Hugo theme is all about and the coreconcepts behind it.
47
47
```
48
48
49
49
renders as
@@ -58,22 +58,22 @@ hugo new --kind chapter basics/_index.md
58
58
59
59
By opening the given file, you should see the property `chapter=true` on top, meaning this page is a _chapter_.
60
60
61
-
By default all chapters and pages are created as draft. If you want to render these pages, remove the property `draft: true` from the metadata.
61
+
By default all chapters and pages are created as a draft. If you want to render these pages, remove the property `draft: true` from the metadata.
62
62
63
63
## Create your first content pages
64
64
65
-
Then, create content pages inside the previous chapter. Here are two ways to create content in the chapter:
65
+
Then, create content pages inside the previously created chapter. Here are two ways to create content in the chapter:
66
66
67
67
```
68
68
hugo new basics/first-content.md
69
69
hugo new basics/second-content/_index.md
70
70
```
71
71
72
-
Feel free to edit thoses files by adding some sample content and replacing `title` value in the beginning of the files.
72
+
Feel free to edit thoses files by adding some sample content and replacing the `title` value in the beginning of the files.
73
73
74
74
## Launching the website locally
75
75
76
-
Launch the following command:
76
+
Launch by using the following command:
77
77
78
78
```
79
79
hugo serve
@@ -83,19 +83,19 @@ Go to `http://localhost:1313`
83
83
84
84
You should notice three things:
85
85
86
-
1. You have a left **Basics** menu, containing two submenus with names equals to `title` properties in previously created files.
87
-
2. The home page explains you to how to customize it. Follow the instructions.
88
-
3.With `hugo serve` command, the page refresh as soon as you save a file. Neat!
86
+
1. You have a left-side**Basics** menu, containing two submenus with names equal to the `title` properties in the previously created files.
87
+
2. The home page explains how to customize it by following the instructions.
88
+
3.When you run `hugo serve`, when the contents of the files change, the page automatically refreshes with the changes. Neat!
89
89
90
90
## Build the website
91
91
92
-
When your site is ready to deploy, launch the following command:
92
+
When your site is ready to deploy, run the following command:
93
93
94
94
```
95
95
hugo
96
96
```
97
97
98
-
A `public` folder has been generated, containing all statics content and assets for your website. It can now be deployed on any web server !
98
+
A `public` folder will be generated, containing all static content and assets for your website. It can now be deployed on any web server.
99
99
100
100
{{% notice note %}}
101
101
This website can be automatically published and hosted with [Netlify](https://www.netlify.com/) (Read more about [Automated HUGO deployments with Netlify](https://www.netlify.com/blog/2015/07/30/hosting-hugo-on-netlifyinsanely-fast-deploys/)). Alternatively, you can use [Github pages](https://gohugo.io/hosting-and-deployment/hosting-on-github/)
0 commit comments