Skip to content

Commit

Permalink
Fix footer syntax for custom JS and refactor header
Browse files Browse the repository at this point in the history
  • Loading branch information
gcushen committed May 14, 2016
1 parent 5da280d commit cd08a0a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script src="{{ .Site.BaseURL }}js/bootstrap.min.js"></script>
<script src="{{ .Site.BaseURL }}js/hugo-academic.js"></script>
{{ range .Site.Params.custom_js }}
<link rel="stylesheet" href="{{ $.Site.BaseURL }}js/{{ . }}">
<script src="{{ $.Site.BaseURL }}js/{{ . }}"></script>
{{ end }}

{{ with .Site.GoogleAnalytics }}
Expand Down
26 changes: 13 additions & 13 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
<head>

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="theme" content="hugo-academic" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="theme" content="hugo-academic">
{{ .Hugo.Generator }}
{{ with .Site.Params.name }}<meta name="author" content="{{ . }}" />{{ end }}
{{ with .Site.Params.role }}<meta name="description" content="{{ . }}" />{{ end }}
{{ with .Site.Params.name }}<meta name="author" content="{{ . }}">{{ end }}
{{ with .Site.Params.role }}<meta name="description" content="{{ . }}">{{ end }}

<link rel="stylesheet" href="{{ .Site.BaseURL }}css/highlight.min.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/bootstrap.min.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/font-awesome.min.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/academicons.min.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hugo-academic.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/highlight.min.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/bootstrap.min.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/font-awesome.min.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/academicons.min.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hugo-academic.css">
{{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ $.Site.BaseURL }}css/{{ . }}">
{{ end }}


<link rel="shortcut icon" href="{{ .Site.BaseURL }}img/favicon.ico" type="image/x-icon" />
<link rel="canonical" href="{{ .Permalink }}" />
<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>

Expand Down

0 comments on commit cd08a0a

Please sign in to comment.