File tree 3 files changed +23
-7
lines changed
3 files changed +23
-7
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,22 @@ This text will appear in a free paragraph below the Title & Description and abov
49
49
50
50
sidebarFreeText = "A optional paragraph of free text. Set to blank in config.toml to clear..."
51
51
52
- You can also include useful menu links by including ` "menu=main" ` items in your ` config.toml ` . Example:
52
+ You can include clickable icons (e.g. for social networks )by including ` "menu=icons" ` items in your ` config.toml ` . Example:
53
+
54
+ [[menu.icons]]
55
+ name = "GitHub"
56
+ post = "<img src=\"/images/github.png\""
57
+ url = "https://github.com"
58
+
59
+ You can optionally use the ` post ` var to include HTML after the ` name ` in the resulting links.
60
+ You can include useful menu links by including ` "menu=main" ` items in your ` config.toml ` . Example:
53
61
54
62
[[menu.main]]
55
63
name = "Hugo"
56
64
post = "<span class='glyphicon glyphicon-fire'></span>"
57
65
url = "http://gohugo.io"
58
66
59
- You can optionally use the ` pre ` and ` post ` vars to include HTML before or after the ` name ` in the resulting links.
67
+ You can optionally use the ` post ` var to include HTML after the ` name ` in the resulting links.
60
68
61
69
You can use the ` "contact_email" ` field in ` [params] ` to set a mailto: link the in the sidebar. Leave blank if you don't want it.
62
70
Original file line number Diff line number Diff line change 10
10
</ div >
11
11
{{ end }}
12
12
13
+ < ul class ="sidebar-menus sidebar-icons ">
14
+ {{ range .Site.Menus.icons }}
15
+ < li > < a href ="{{.URL}} "> {{ .Post }}</ a > </ li >
16
+ {{end}}
17
+ </ ul >
18
+
13
19
< ul class ="sidebar-menus ">
14
- {{ range .Site.Menus.main }}
15
- < li > » < a href ="{{.URL}} "> {{ .Name }}</ a > {{ .Post }}</ li >
16
- {{end}}
17
- </ ul >
20
+ {{ range .Site.Menus.main }}
21
+ < li > » < a href ="{{.URL}} "> {{ .Name }}</ a > {{ .Post }}</ li >
22
+ {{end}}
23
+ </ ul >
18
24
19
25
< div class ="sidebar-recent hidden-xs ">
20
26
< p > Recent Posts:</ p >
Original file line number Diff line number Diff line change 76
76
77
77
/* SIDEBAR */
78
78
79
-
80
79
.sidebar {
81
80
padding : 2em ;
82
81
font-size : 1.3em ;
98
97
list-style : none;
99
98
font-size : 1em ;
100
99
}
100
+ .sidebar .sidebar-icons li {
101
+ display : inline-block;
102
+ }
101
103
.sidebar .sidebar-recent {
102
104
margin-top : 1.5em ;
103
105
}
You can’t perform that action at this time.
0 commit comments