mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-09 10:50:34 -05:00
Support textlink #42
This commit is contained in:
parent
dff63b157a
commit
bd4b10cae3
2 changed files with 9 additions and 5 deletions
|
@ -28,25 +28,29 @@ hasCJKLanguage = true
|
||||||
section = ["JSON", "HTML"]
|
section = ["JSON", "HTML"]
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Blog"
|
identifier = "blog"
|
||||||
|
# name = "Blog" #If display text link, cancel comment out
|
||||||
pre = "<i class='fa fa-book-open fa-lg'></i>" #Choose your favorite font from Font Awesome
|
pre = "<i class='fa fa-book-open fa-lg'></i>" #Choose your favorite font from Font Awesome
|
||||||
url = "/blog/"
|
url = "/blog/"
|
||||||
weight = 10
|
weight = 10
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Twitter"
|
identifier = "twitter"
|
||||||
|
# name = "Twitter"
|
||||||
pre = "<i class='fab fa-twitter fa-lg'></i>"
|
pre = "<i class='fab fa-twitter fa-lg'></i>"
|
||||||
url = "https://twitter.com/username"
|
url = "https://twitter.com/username"
|
||||||
weight = 20
|
weight = 20
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "GitHub"
|
identifier = "github"
|
||||||
|
# name = "GitHub"
|
||||||
pre = "<i class='fab fa-github fa-lg'></i>"
|
pre = "<i class='fab fa-github fa-lg'></i>"
|
||||||
url = "https://github.com/username"
|
url = "https://github.com/username"
|
||||||
weight = 30
|
weight = 30
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Email"
|
identifier = "email"
|
||||||
|
# name = "Email"
|
||||||
pre = "<i class='fa fa-envelope fa-lg'></i>"
|
pre = "<i class='fa fa-envelope fa-lg'></i>"
|
||||||
url = "mailto:username@example.com"
|
url = "mailto:username@example.com"
|
||||||
weight = 40
|
weight = 40
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
<li><a href="{{ .URL }}" aria-label="{{ .Name }}">{{ .Pre }}</a></li>
|
<li><a href="{{ .URL }}" aria-label="{{ .Identifier }}">{{ .Pre }}<br>{{ .Name }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in a new issue