Skip to content
This repository was archived by the owner on Jul 21, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 2 additions & 74 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,7 @@
<html lang="{{ .Site.LanguageCode }}">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> {{ .Hugo.Generator }}
<title>
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{ if eq $url "/" }} {{ .Site.Title }} {{ else }} {{ if .Params.Heading }} {{ .Params.Heading }} {{ else }} {{ .Title }} {{ end }} {{ end }}
</title>
<link rel="canonical" href="{{ .Permalink }}">
<!-- Bootstrap -->
<link href="{{ .Site.BaseURL }}css/bootstrap.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/site.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700|Roboto:100,300,300i,400,700,900" rel="stylesheet">
<link href="{{ .Site.BaseURL }}font-awesome/css/font-awesome.min.css" rel="stylesheet">
<!-- jquery fancy pants -->
<link href="{{ .Site.BaseURL }}css/jquery.oembed.css" rel="stylesheet">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
{{- partial "head.html" . -}}
</head>

<body lang="{{ .Site.Params.Lang }}">
Expand Down Expand Up @@ -186,64 +171,7 @@ <h3 class="footer-nav">@DEVOPSDAYS</h3>


</div>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="{{ .Site.BaseURL }}js/bootstrap.min.js"></script>
<script src="{{ .Site.BaseURL }}js/jquery.oembed.js"></script>
<script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( "#accordion" ).accordion(); // TODO: should only be included on program pages
</script>

<script>
$(function() {
$("a.embed").oembed();
});
</script>
<script>
(function() {
var cx = '008769174023796316711:pj3syggtkz0';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<!-- stuff to highlight current month -->
<script>
var now = new Date;

$('.left-nav-months').text(function (i, v) {

if (getMonth(now) == v) {
$(this).addClass('current');
}

});

function getMonth(d) {
var dt = new Date(d);
var dtm = dt.getMonth();
var month = new Array();
month[0] = "January";
month[1] = "February";
month[2] = "March";
month[3] = "April";
month[4] = "May";
month[5] = "June";
month[6] = "July";
month[7] = "August";
month[8] = "September";
month[9] = "October";
month[10] = "November";
month[11] = "December";
return month[dtm]
}
</script>
{{- partial "footer_scripts.html" . -}}
</body>

</html>
5 changes: 5 additions & 0 deletions layouts/partials/footer_scripts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script src="/js/jquery.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/jquery.oembed.js"></script>
<script src="/js/jquery-ui.js"></script>
<script src="/js/devopsdays.js"></script>
9 changes: 9 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> {{ .Hugo.Generator }}
{{- partial "meta.html" . -}}
<title>
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{ if eq $url "/" }} {{ .Site.Title }} {{ else }} {{ if .Params.Heading }} {{ .Params.Heading }} {{ else }} {{ .Title }} {{ end }} {{ end }}
</title>
<link rel="canonical" href="{{ .Permalink }}">
{{- partial "head_includes.html" . -}}
8 changes: 8 additions & 0 deletions layouts/partials/head_includes.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<link href="/css/bootstrap.css" rel="stylesheet">
<link href="/css/site.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700|Roboto:100,300,300i,400,700,900" rel="stylesheet">
<link href="/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<!-- jquery fancy pants -->
<link href="/css/jquery.oembed.css" rel="stylesheet">
<link rel="stylesheet" href="/css/jquery-ui.css">
6 changes: 6 additions & 0 deletions layouts/partials/meta.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
{{ if .Site.Params.Description }}<meta name="description" content="{{ .Site.Params.Description }}">{{ end }}
Loading