Change navi link to icon #13

This commit is contained in:
koirand 2019-03-23 18:12:24 +09:00
parent 2ea0f32ac9
commit f99c100cc1
4 changed files with 98 additions and 89 deletions

View file

@ -26,16 +26,24 @@ pygmentsUseClasses = false
[[menu.main]] [[menu.main]]
name = "Blog" name = "Blog"
pre = "<i class='fa fa-book-open fa-lg'></i>"
url = "/blog/" url = "/blog/"
weight = 10
[[menu.main]] [[menu.main]]
name = "Twitter" name = "Twitter"
pre = "<i class='fab fa-twitter fa-lg'></i>"
url = "https://twitter.com/username" url = "https://twitter.com/username"
weight = 20
[[menu.main]] [[menu.main]]
name = "GitHub" name = "GitHub"
pre = "<i class='fab fa-github fa-lg'></i>"
url = "https://github.com/username" url = "https://github.com/username"
weight = 30
[[menu.main]] [[menu.main]]
name = "Email" name = "Email"
pre = "<i class='fa fa-envelope fa-lg'></i>"
url = "mailto:username@example.com" url = "mailto:username@example.com"
weight = 40

View file

@ -21,7 +21,7 @@
<nav> <nav>
<ul> <ul>
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li> <li><a href="{{ .URL }}">{{ .Pre }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
</nav> </nav>

View file

@ -16,6 +16,7 @@
<link rel="stylesheet" href="/css/style.css"> <link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/markdown.css"> <link rel="stylesheet" href="/css/markdown.css">
<link rel="stylesheet" href="/css/syntax-highlight.css"> <link rel="stylesheet" href="/css/syntax-highlight.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<!-- custom css --> <!-- custom css -->
{{ range .Site.Params.custom_css }} {{ range .Site.Params.custom_css }}