@@ -15,19 +15,41 @@ Simple, text-focussed and minimal personal portfolio theme based on https://gith
15
15
16
16
## Installation
17
17
18
- cd into your hugo site's root directory and:
18
+ ### Installing Hugo
19
19
20
20
``` sh
21
- cd themes
22
- git clone https://github.com/invinciblycool/lekh.git
21
+ # For Linux
22
+ sudo apt-get install hugo
23
+
24
+ # For Mac
25
+ brew install hugo
26
+
27
+ # Detailed instructions at https://gohugo.io/getting-started/installing#readout
23
28
```
24
29
25
- For more information read the [ official setup guide] ( https://gohugo.io/overview/installing/ ) of Hugo.
30
+ ### Creating a new site
31
+
32
+ ``` sh
33
+ hugo new site < site_name>
34
+ ```
35
+
36
+ ### Adding lekh as a theme
37
+
38
+ ``` sh
39
+ cd < site_name>
40
+ git init
41
+ git submodule add https://github.com/ba11b0y/lekh.git themes/lekh
42
+ echo theme = \" lekh\" >> config.toml
43
+
44
+ ```
45
+
46
+ Here's Hugo's [ official guide] ( https://gohugo.io/getting-started/quick-start/ ) for more details.
26
47
27
48
28
49
## Personalization
29
50
30
- To personalize the theme
51
+ Hugo looks for a ` config.toml ` in the root of your site.
52
+ To personalize the theme, copy the default config shipped with the theme
31
53
32
54
` cp themes/lekh/exampleSite/config.toml config.toml `
33
55
@@ -37,50 +59,52 @@ Or simply copy the below config and customize accordingly.
37
59
38
60
``` toml
39
61
40
- baseURL = " http ://rtiwari.me /"
62
+ baseURL = " https ://example.com /"
41
63
languageCode = " en-us"
42
- title = " Rahul Tiwari "
64
+ title = " Example Lekh Site "
43
65
theme = " lekh"
44
66
45
67
[params ]
46
- Name = " "
47
- Email = " "
68
+ Name = " Agent Smith "
69
+
48
70
Resume = " " # Add the filename with file extension.
49
71
PostLimit = 4 # Sets the number of posts to display on the front page
50
72
GoatCounterCode = " "
51
73
52
74
[[params .profiles ]]
53
75
name = " GitHub"
54
- url = " "
76
+ url = " https://github.com/ba11b0y "
55
77
56
78
[[params .profiles ]]
57
79
name = " Twitter"
58
- url = " "
80
+ url = " https://twitter.com/ba11b0y "
59
81
60
82
[[params .profiles ]]
61
83
name = " Goodreads"
62
- url = " "
84
+ url = " https://www.goodreads.com/user/show/91520565-rahul-tiwari "
63
85
64
86
[[params .profiles ]]
65
87
name = " LinkedIn"
66
88
url = " "
67
89
68
90
```
69
91
70
- ## Posts
92
+ ## Creating posts
71
93
72
- Below is a typical post, which defaults to what Hugo expects.
94
+ ``` sh
95
+ # This creates a new draft post in content/posts
96
+ hugo new posts/title-of-post.md
97
+ ```
73
98
74
- Specify ` draft: true ` to avoid publishing the post.
99
+ ## Serving it up
75
100
76
- ``` md
77
- ---
78
- title: "Rant post"
79
- date: "2020-04-02"
80
- draft: true
81
- ---
101
+ ``` sh
102
+ # This will show up your draft posts as well.
103
+ hugo server -D
104
+ # OR
82
105
83
- Too much to rant :(
106
+ # This will show up only your published posts.
107
+ hugo server
84
108
```
85
109
86
110
## Credits
0 commit comments