Fix asset and navbar URLs

This commit is contained in:
George Cushen 2016-05-09 23:13:11 +01:00
commit a55f766b3a
5 changed files with 17 additions and 16 deletions

View file

@ -79,30 +79,30 @@ googleAnalytics = ""
[[menu.main]] [[menu.main]]
name = "Home" name = "Home"
url = "/#bio" url = "#"
weight = 1 weight = 1
[[menu.main]] [[menu.main]]
name = "Publications" name = "Publications"
url = "/#publications" url = "#publications"
weight = 2 weight = 2
[[menu.main]] [[menu.main]]
name = "Posts" name = "Posts"
url = "/#posts" url = "#posts"
weight = 3 weight = 3
[[menu.main]] [[menu.main]]
name = "Projects" name = "Projects"
url = "/#projects" url = "#projects"
weight = 4 weight = 4
[[menu.main]] [[menu.main]]
name = "Teaching" name = "Teaching"
url = "/#teaching" url = "#teaching"
weight = 5 weight = 5
[[menu.main]] [[menu.main]]
name = "Contact" name = "Contact"
url = "/#contact" url = "#contact"
weight = 6 weight = 6

View file

@ -1,8 +1,8 @@
<script src="/js/jquery-1.12.3.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.4/TweenMax.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.4/TweenMax.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/latest/plugins/ScrollToPlugin.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/gsap/latest/plugins/ScrollToPlugin.min.js"></script>
<script src="/js/bootstrap.min.js"></script> <script src="{{ .Site.BaseURL }}js/jquery-1.12.3.min.js"></script>
<script src="/js/hugo-academic.js"></script> <script src="{{ .Site.BaseURL }}js/bootstrap.min.js"></script>
<script src="{{ .Site.BaseURL }}js/hugo-academic.js"></script>
{{ with .Site.GoogleAnalytics }} {{ with .Site.GoogleAnalytics }}
<script> <script>

View file

@ -6,7 +6,7 @@
Powered by the <a href="https://github.com/gcushen/hugo-academic" target="_blank">Academic theme</a> for <a href="http://gohugo.io" target="_blank">Hugo</a>. Powered by the <a href="https://github.com/gcushen/hugo-academic" target="_blank">Academic theme</a> for <a href="http://gohugo.io" target="_blank">Hugo</a>.
<span class="pull-right"><a href="#top" id="back_to_top"><span class="button_icon"><i class="fa fa-chevron-up fa-2x" aria-hidden="true"></i></span></a></span> <span class="pull-right"><a href="#" id="back_to_top"><span class="button_icon"><i class="fa fa-chevron-up fa-2x" aria-hidden="true"></i></span></a></span>
</p> </p>
</div> </div>

View file

@ -10,12 +10,13 @@
{{ with .Site.Params.name }}<meta name="author" content="{{ . }}" />{{ end }} {{ with .Site.Params.name }}<meta name="author" content="{{ . }}" />{{ end }}
{{ with .Site.Params.role }}<meta name="description" content="{{ . }}" />{{ end }} {{ with .Site.Params.role }}<meta name="description" content="{{ . }}" />{{ end }}
<link rel="stylesheet" href="/css/bootstrap.min.css" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.3.0/styles/github.min.css"> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.3.0/styles/github.min.css">
<link rel="stylesheet" href="/css/font-awesome.min.css" /> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/bootstrap.min.css" />
<link rel="stylesheet" href="/css/academicons.min.css" /> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/font-awesome.min.css" />
<link rel="stylesheet" href="/css/hugo-academic.css" /> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/academicons.min.css" />
<link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon"> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/hugo-academic.css" />
<link rel="shortcut icon" href="{{ .Site.BaseURL }}img/favicon.ico" type="image/x-icon">
<link rel="canonical" href="{{ .Permalink }}">
<title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title> <title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>

View file

@ -19,7 +19,7 @@
<!-- Left Nav Bar --> <!-- Left Nav Bar -->
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<li class="nav-item"><a href="{{ .URL }}">{{ .Name }}</a></li> <li class="nav-item"><a href="{{ $baseUrl }}{{ .URL }}">{{ .Name }}</a></li>
{{ end }} {{ end }}
</ul> </ul>