Commit 0083a60e authored by Vincent Tam's avatar Vincent Tam

Theme: Navbar with Font Awesome Icons

parent b7f7dd31
Pipeline #75735662 passed with stages
in 40 seconds
......@@ -53,15 +53,14 @@ enableGitInfo = true
# desc = "Hexagon"
[Author]
name = "Vincent Tam"
website = "https://lstu.fr/3s"
email = "sere@live.hk"
#facebook = "username"
#googleplus = "+username" # or xxxxxxxxxxxxxxxxxxxxx
name = "Vincent Tam"
website = "https://lstu.fr/3s"
email = "sere@live.hk"
facebook = "vtam1"
github = "VincentTam"
gitlab = "VincentTam"
#bitbucket = "username"
#twitter = "username"
twitter = "Vin10o"
#reddit = "username"
#linkedin = "username"
#xing = "username"
......@@ -79,51 +78,72 @@ enableGitInfo = true
mastodon = "framapiaf.org/@staticmanlab"
[[menu.main]]
name = "About"
url = "page/about/"
weight = 1
name = "About"
pre = '<i class="far fa-user fa-lg"></i>'
url = "page/about/"
weight = 1
[[menu.main]]
name = "Math Resources"
url = "math-live-preview"
weight = 2
identifier = "math"
pre = '<i class="fas fa-square-root-alt fa-lg"></i>'
name = "Math Resources"
weight = 2
[[menu.main]]
parent="Math Resources"
name = "Math Editor"
url = "math-live-preview"
weight = 1
parent = "math"
name = "Math Editor"
pre = '<span class="fa-stack"><i class="far fa-square fa-stack-2x"></i><i class="fa fa-pen fa-stack-1x"></i>'
url = "math-live-preview"
weight = 1
[[menu.main]]
parent="Math Resources"
name = "Math.SE Comments"
url = "page/math-se-comment-templates/"
weight = 2
parent = "math"
name = "Math.SE Comments"
pre = '<i class="fab fa-stack-exchange fa-lg"></i><i class="fas fa-comments fa-lg"></i>'
url = "page/math-se-comment-templates/"
weight = 2
[[menu.main]]
identifier = "samples"
name = "Cheatsheets"
weight = 3
identifier = "samples"
name = "Cheatsheets"
pre = '<i class="fas fa-scroll fa-lg"></i>'
weight = 3
[[menu.main]]
parent = "samples"
name = "Bash Commands"
url = "page/bash-commands/"
weight = 1
parent = "samples"
name = "Bash Commands"
pre = '<span class="fa-stack"><i class="far fa-square fa-stack-2x"></i><i class="fa fa-terminal fa-stack-1x"></i>'
url = "page/bash-commands/"
weight = 1
[[menu.main]]
parent = "samples"
name = "Sublime Text"
url = "page/sublime/"
weight = 2
parent = "samples"
name = "Sublime Text"
pre = '<img src="/img/st3.ico">'
url = "page/sublime/"
weight = 2
[[menu.main]]
parent = "samples"
name = "Advanced Git"
url = "page/advanced-git/"
weight = 3
parent = "samples"
name = "Advanced Git"
pre = '<i class="fab fa-git fa-lg"></i>'
url = "page/advanced-git/"
weight = 3
[[menu.main]]
name = "Categories"
url = "categories"
weight = 4
name = "Archive"
pre = '<i class="fas fa-archive fa-lg"></i>'
url = "post"
weight = 4
[[menu.main]]
name = "Categories"
pre = '<i class="fas fa-sitemap fa-lg"></i>'
url = "categories"
weight = 4
[[menu.main]]
name = "Tags"
pre = '<i class="fas fa-tags fa-lg"></i>'
url = "tags"
weight = 4
<nav class="navbar navbar-default navbar-fixed-top navbar-custom">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar">
<span class="sr-only">{{ i18n "toggleNavigation" }}</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ "" | absLangURL }}">{{ .Site.Title }}</a>
</div>
<div class="collapse navbar-collapse" id="main-navbar">
<ul class="nav navbar-nav navbar-right">
{{ range .Site.Menus.main.ByWeight }}
{{ if .HasChildren }}
<li class="navlinks-container">
{{ if .Pre }}
<a class="navlinks-parent" title="{{ .Name }}">{{ .Pre }}</a>
{{ else }}
<a class="navlinks-parent">{{ .Name }}</a>
{{ end }}
<div class="navlinks-children">
{{ range .Children }}
{{ if .Pre }}
<a title="{{ .Name }}" href="{{ .URL | relLangURL }}">{{ .Pre }}</a>
{{ else }}
<a href="{{ .URL | relLangURL }}">{{ .Name }}</a>
{{ end }}
{{ end }}
</div>
</li>
{{ else }}
<li>
{{ if .Pre }}
<a title="{{ .Name }}" href="{{ .URL | relLangURL }}">{{ .Pre }}</a>
{{ else }}
<a href="{{ .URL | relLangURL }}">{{ .Name }}</a>
{{ end }}
</li>
{{ end }}
{{ end }}
{{ if .Site.IsMultiLingual }}
{{ if ge (len .Site.Languages) 3 }}
<li class="navlinks-container">
<a class="navlinks-parent">{{ i18n "languageSwitcherLabel" }}</a>
<div class="navlinks-children">
{{ range .Site.Languages }}
{{ if not (eq .Lang $.Site.Language.Lang) }}
<a href="/{{ .Lang }}" lang="{{ .Lang }}">{{ default .Lang .LanguageName }}</a>
{{ end }}
{{ end }}
</div>
</li>
{{ else }}
<li>
{{ range .Site.Languages }}
{{ if not (eq .Lang $.Site.Language.Lang) }}
<a href="/{{ .Lang }}" lang="{{ .Lang }}">{{ default .Lang .LanguageName }}</a>
{{ end }}
{{ end }}
</li>
{{ end }}
{{ end }}
{{ if isset .Site.Params "gcse" }}
<li>
<a href="#modalSearch" data-toggle="modal" data-target="#modalSearch" style="outline: none;">
<span class="hidden-sm hidden-md hidden-lg">{{ i18n "gcseLabelShort" }}</span> <span id="searchGlyph" class="glyphicon glyphicon-search"></span>
</a>
</li>
{{ end }}
</ul>
</div>
{{ if isset .Site.Params "logo" }}
<div class="avatar-container">
<div class="avatar-img-border">
<a title="{{ .Site.Title }}" href="{{ "" | absLangURL }}">
<img class="avatar-img" src="{{ .Site.Params.logo | absURL }}" alt="{{ .Site.Title }}" />
</a>
</div>
</div>
{{ end }}
</div>
</nav>
<!-- Search Modal -->
{{ if isset .Site.Params "gcse" }}
<div id="modalSearch" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title">{{ i18n "gcseLabelLong" . }}</h4>
</div>
<div class="modal-body">
<gcse:search></gcse:search>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ i18n "gcseClose" }}</button>
</div>
</div>
</div>
</div>
{{ end }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment