Theme menus

Iara Authors
· 4 min read

Menus help users navigate on you site, that’s why there are many available for use.

You can set menus on config.toml. Read more about here

This theme offers 3 sections of menus:

  • Main menu - All pages
  • Footer menus - All pages
  • Terms menus - All pages
  • Carousel menu - Home only

Main Menu allows Dropdowns, but only one level.

Footer menus range from 1 to 6.

Carousel menu becomes a carousel if items are bigger than the current screen, ideal for mobile.

Usage

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
[menu]
  #
  # Main Menu
  #
  [[menu.main]]
  name = "About"
  identifier = "about"
  weight = 10
  url = "/about/"

  [[menu.main]]
  name = "Contact"
  identifier = "contact"
  weight = 20
  url = "/contact/"

  [[menu.main]]
  name = ""
  weight = 1
  url = "/"
  pre = '<i class="fas fa-home"></i>'

  [[menu.main]]
  name = "Hugo"
  weight = 999
  url = "https://gohugo.io/"

  #
  # Dropdown Begin
  #
  # Only one level is supported
  # Dropdown URL has no effect if set
  [[menu.main]]
  name = "Dropdown"
  identifier = "dropdown"
  weight = 100

  [[menu.main]]
  parent = "dropdown"
  name = "Posts"
  weight = 100
  identifier = "posts"
  url = "/post/"

  [[menu.main]]
  parent = "dropdown"
  name = "Categories"
  weight = 200
  identifier = "categories"
  url = "/categories/"

  [[menu.main]]
  parent = "dropdown"
  name = "Tags"
  weight = 300
  identifier = "tags"
  url = "/tags/"

  [[menu.main]]
  parent = "dropdown"
  name = "Authors"
  weight = 400
  identifier = "authors"
  url = "/authors/"
  #
  # Dropdown End
  #

  #
  # Carousel menu (Home only)
  #
  [[menu.carousel]]
  name = "Customization"
  weight = 1
  url = "/tags/customization/"
  [[menu.carousel]]
  name = "Authors"
  weight = 2
  url = "/authors/"
  [[menu.carousel]]
  name = "Syntax"
  weight = 3
  url = "/categories/syntax/"
  [[menu.carousel]]
  name = "About"
  weight = 4
  url = "/about/"

  #
  # Terms & Diclaimers in footer
  #
  [[menu.terms]]
  name = "Terms of Use"
  weight = 1
  identifier = "terms"
  url = "#"

  [[menu.terms]]
  name = "Privacy"
  weight = 2
  identifier = "privacy"
  url = "#"

  [[menu.terms]]
  name = "GDPR"
  weight = 3
  identifier = "gdpr"
  url = "#"

  #
  # Footer section links
  #
  [[menu.footer1]]
  name = "Artificial Inteligence"
  weight = 1
  url = "#"
  pre = "<b>"
  post = "</b>"

  [[menu.footer1]]
  name = "Machine Learning"
  weight = 2
  url = "#"

  [[menu.footer1]]
  name = "Deep Learning"
  weight = 2
  url = "#"

  [[menu.footer1]]
  name = "Natural Language Processing"
  weight = 3
  url = "#"
  badge = "New"

  [[menu.footer1]]
  name = "Robotis"
  weight = 4
  url = "#"

  [[menu.footer2]]
  name = "SBCs"
  weight = 1
  url = "#"
  pre = "<b>"
  post = "</b>"

  [[menu.footer2]]
  name = "Raspbery Pi"
  weight = 2
  url = "#"
  post = '<span class="badge badge-pill badge-success">Discount</span>'

  [[menu.footer2]]
  name = "BeagleBone"
  weight = 3
  url = "#"

  [[menu.footer2]]
  name = "ODROID"
  weight = 4
  url = "#"

  [[menu.footer2]]
  name = "Micro Bit"
  weight = 5
  url = "#"

  [[menu.footer2]]
  name = "Arduino"
  weight = 6
  url = "#"

  [[menu.footer3]]
  name = "Linux"
  weight = 1
  url = "#"
  pre = "<b>"
  post = "</b>"

  [[menu.footer3]]
  name = "Ubuntu"
  weight = 3
  url = "#"
  post = '<span class="badge badge-warning">New</span>'

  [[menu.footer3]]
  name = "Arch"
  weight = 2
  url = "#"

  [[menu.footer3]]
  name = "Debian"
  weight = 4
  url = "#"

  [[menu.footer4]]
  name = "Careers"
  weight = 1
  identifier = "careers"
  url = "#"
  pre = "<b>"
  post = "</b>"

  [[menu.footer4]]
  name = "Contact"
  weight = 2
  identifier = "contact"
  url = "#"

  [[menu.footer4]]
  name = "Press Kit"
  weight = 3
  identifier = "press-kit"
  url = "#"