Skip to content
This repository was archived by the owner on Jul 21, 2019. It is now read-only.

Commit 34f87b0

Browse files
authored
Merge pull request #404 from devopsdays/bug-fixes
Bug fixes
2 parents 8a260a4 + 4c7792a commit 34f87b0

5 files changed

Lines changed: 19 additions & 9 deletions

File tree

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="{{ .Site.LanguageCode }}">
2+
<html itemscope lang="{{ .Site.LanguageCode }}">
33

44
<head>
55
{{- partial "head.html" . -}}

layouts/partials/head.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
<meta charset="utf-8">
2-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
3-
{{ .Hugo.Generator }}
41
{{ partial "meta.html" . }}
52
{{ partial "head/seo.html" . }}
63

layouts/partials/map.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88
<!-- <link href="/css/googlemaps.css" rel="stylesheet"> -->
99
<!-- the above stylesheet has been moved into the main one -->
10-
<script type="text/javascript" language="javascript">
10+
<script type="text/javascript">
1111
function initialize() {
1212
var map;
1313
var bounds = new google.maps.LatLngBounds();
@@ -66,7 +66,7 @@
6666
labelStyle: { opacity: 1 },
6767
url: markers[i][4]
6868
});
69-
69+
7070
google.maps.event.addListener(marker, 'click', function() {
7171
window.location.href = this.url;
7272
});
@@ -76,7 +76,7 @@
7676
}
7777
</script>
7878

79-
<script type="text/javascript" language="javascript">
79+
<script type="text/javascript">
8080
window.onload = function()
8181
{
8282
initialize();

layouts/partials/meta.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
12
<meta charset="utf-8">
2-
<meta http-equiv="X-UA-Compatible" content="chrome=1">
33
<meta name="HandheldFriendly" content="True">
44
<meta name="MobileOptimized" content="320">
55
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
66
{{- if .Site.Params.Description -}}<meta name="description" content="{{ .Site.Params.Description }}">{{- end -}}
7+
{{ .Hugo.Generator }}

layouts/shortcodes/event_logo.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
{{ $path := split .Page.Source.File.Path .Site.Params.PathSeparator }}
22
{{ $event_slug := index $path 1 }}
33
{{ $e := (index .Page.Site.Data.events $event_slug) }}
4+
{{ $.Scratch.Set "contentdir" (printf "static/events/%s/" $event_slug) }}
45

5-
<img alt="devopsdays {{ $e.city }} {{ $e.year }}" src="/events/{{ $event_slug }}/logo.png" class="welcome-page-event-logo"/>
6+
{{if (where (readDir "static/events") "Name" $event_slug)}}
7+
8+
9+
{{ if (where (readDir ($.Scratch.Get "contentdir")) "Name" "logo.jpg") }}
10+
{{ $.Scratch.Set "logo" "logo.jpg" }}
11+
{{ else }}
12+
{{ $.Scratch.Set "logo" "logo.png" }}
13+
{{ end }}
14+
15+
<img alt="devopsdays {{ $e.city }} {{ $e.year }}" src="/events/{{ $event_slug }}/{{$.Scratch.Get "logo"}}" class="welcome-page-event-logo"/>
16+
17+
{{ end }}

0 commit comments

Comments
 (0)