This repository was archived by the owner on Jul 21, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<!DOCTYPE html>
2- < html lang ="{{ .Site.LanguageCode }} ">
2+ < html itemscope lang ="{{ .Site.LanguageCode }} ">
33
44< head >
55 {{- partial "head.html" . -}}
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 ">
1111function initialize ( ) {
1212 var map ;
1313 var bounds = new google . maps . LatLngBounds ( ) ;
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 } ) ;
7676}
7777</ script >
7878
79- < script type ="text/javascript " language =" javascript " >
79+ < script type ="text/javascript ">
8080 window . onload = function ( )
8181 {
8282 initialize ( ) ;
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments