diff --git a/appveyor.yml b/appveyor.yml index 549025b45..79432dbed 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,7 +12,7 @@ install: $content = (Get-Content ($buildRoot + '\exampleSite\config.toml')) -join "`n" - $content = $content -replace 'PathSeperator = "/"','PathSeperator = "\\"' + $content = $content -replace 'pathseperator = "/"','pathseperator = "\\"' Write-Output "config.toml content changed to:`n----`n$($content)" diff --git a/layouts/event/single.html b/layouts/event/single.html index 447c531b2..607af616c 100644 --- a/layouts/event/single.html +++ b/layouts/event/single.html @@ -14,16 +14,18 @@ {{ if eq .File.BaseFileName "welcome"}} {{- partial "welcome.html" . -}} + {{ else }} + {{ .Content }} {{ end }} {{ partial "sponsors.html" . }} - - + {{ "" | safeHTML }} + + +{{ "" | safeHTML }} - - {{ end }} diff --git a/layouts/partials/sponsors.html b/layouts/partials/sponsors.html index 27dfe8ba0..3802f3d95 100644 --- a/layouts/partials/sponsors.html +++ b/layouts/partials/sponsors.html @@ -2,37 +2,42 @@ {{ $event_slug := index $path 1 }} {{ $e := (index $.Site.Data.events $event_slug) }} -{{- if $e.sponsors -}} - {{- range $index, $level := $e.sponsor_levels -}} - {{ $.Scratch.Set $level.id 0 }} -
diff --git a/layouts/shortcodes/event_map.html b/layouts/shortcodes/event_map.html
new file mode 100644
index 000000000..300e00f30
--- /dev/null
+++ b/layouts/shortcodes/event_map.html
@@ -0,0 +1,39 @@
+{{ $path := split .Page.Source.File.Path .Site.Params.pathseperator }}
+{{ $event_slug := index $path 1 }}
+{{ $e := (index .Page.Site.Data.events $event_slug) }}
+
+{{ $coords := split $e.coordinates "," }}
+{{ $lat := index $coords 0 }}
+{{ $lng := index $coords 1 }}
+
+lat is {{ $lat }}
+long is {{ $lng }}
+
+
+
+
+
+
+
+
diff --git a/layouts/shortcodes/event_start.html b/layouts/shortcodes/event_start.html
new file mode 100644
index 000000000..1461db5f2
--- /dev/null
+++ b/layouts/shortcodes/event_start.html
@@ -0,0 +1,11 @@
+{{ $path := split .Page.Source.File.Path .Site.Params.pathseperator }}
+{{ $event_slug := index $path 1 }}
+{{ $e := (index .Page.Site.Data.events $event_slug) }}
+{{ $startdate := $e.startdate}}
+
+{{ if $e.startdate }}
+ {{ $startdate := $e.startdate}}
+ {{ dateFormat "Monday, Jan 2, 2006" $startdate }}
+{{ else }}
+ TBD
+{{ end }}
diff --git a/layouts/shortcodes/event_twitter.html b/layouts/shortcodes/event_twitter.html
new file mode 100644
index 000000000..36e68d03a
--- /dev/null
+++ b/layouts/shortcodes/event_twitter.html
@@ -0,0 +1,2 @@
+Follow @{{ index .Params 0 }}
+
diff --git a/layouts/shortcodes/list_core.html b/layouts/shortcodes/list_core.html
new file mode 100644
index 000000000..b883c9808
--- /dev/null
+++ b/layouts/shortcodes/list_core.html
@@ -0,0 +1,7 @@
+Active