Build gallery from data

This commit is contained in:
Raoul 2018-04-24 03:54:28 +02:00
parent 1c584b7de7
commit 25c9dc8e9d
No known key found for this signature in database
GPG key ID: C7493D73B67C1842
15 changed files with 314 additions and 116 deletions

View file

@ -9,151 +9,49 @@ menu:
## CoSin 2017 ## CoSin 2017
[![CoSin 2017](/photos/2017/cosin_17_0.small.png)](/photos/2017/cosin_17_0.png) {{< gallery 2017 >}}
[![CoSin 2017](/photos/2017/cosin_17_1.small.jpg)](/photos/2017/cosin_17_1.jpg)
[![CoSin 2017](/photos/2017/cosin_17_2.small.jpg)](/photos/2017/cosin_17_2.jpg)
[![CoSin 2017](/photos/2017/cosin_17_3.small.jpg)](/photos/2017/cosin_17_3.jpg)
[![CoSin 2017](/photos/2017/cosin_17_4.small.jpg)](/photos/2017/cosin_17_4.jpg)
[![CoSin 2017](/photos/2017/cosin_17_5.small.jpg)](/photos/2017/cosin_17_5.jpg)
[![CoSin 2017](/photos/2017/cosin_17_6.small.jpg)](/photos/2017/cosin_17_6.jpg)
[![CoSin 2017](/photos/2017/cosin_17_7.small.jpg)](/photos/2017/cosin_17_7.jpg)
[![CoSin 2017](/photos/2017/cosin_17_8.small.jpg)](/photos/2017/cosin_17_8.jpg)
[![CoSin 2017](/photos/2017/cosin_17_9.small.jpg)](/photos/2017/cosin_17_9.jpg)
[![CoSin 2017](/photos/2017/cosin_17_10.small.jpg)](/photos/2017/cosin_17_10.jpg)
[![CoSin 2017](/photos/2017/cosin_17_11.small.jpg)](/photos/2017/cosin_17_11.jpg)
[![CoSin 2017](/photos/2017/cosin_17_12.small.jpg)](/photos/2017/cosin_17_12.jpg)
[![CoSin 2017](/photos/2017/cosin_17_13.small.jpg)](/photos/2017/cosin_17_13.jpg)
[![CoSin 2017](/photos/2017/cosin_17_14.small.jpg)](/photos/2017/cosin_17_14.jpg)
[![CoSin 2017](/photos/2017/cosin_17_15.small.jpg)](/photos/2017/cosin_17_15.jpg)
[![CoSin 2017](/photos/2017/cosin_17_16.small.jpg)](/photos/2017/cosin_17_16.jpg)
[![CoSin 2017](/photos/2017/cosin_17_17.small.jpg)](/photos/2017/cosin_17_17.jpg)
[![CoSin 2017](/photos/2017/cosin_17_18.small.jpg)](/photos/2017/cosin_17_18.jpg)
[![CoSin 2017](/photos/2017/cosin_17_19.small.jpg)](/photos/2017/cosin_17_19.jpg)
[![CoSin 2017](/photos/2017/cosin_17_20.small.jpg)](/photos/2017/cosin_17_20.jpg)
[![CoSin 2017](/photos/2017/cosin_17_21.small.jpg)](/photos/2017/cosin_17_21.jpg)
## CoSin 2016 ## CoSin 2016
[![CoSin 2016](/photos/2016/cosin_16_0.small.jpg)](/photos/2016/cosin_16_0.jpg) {{< gallery 2016 >}}
[![CoSin 2016](/photos/2016/cosin_16_1.small.jpg)](/photos/2016/cosin_16_1.jpg)
[![CoSin 2016](/photos/2016/cosin_16_10.small.jpg)](/photos/2016/cosin_16_10.jpg)
[![CoSin 2016](/photos/2016/cosin_16_8.small.jpg)](/photos/2016/cosin_16_8.jpg)
[![CoSin 2016](/photos/2016/cosin_16_5.small.jpg)](/photos/2016/cosin_16_5.jpg)
[![CoSin 2016](/photos/2016/cosin_16_3.small.jpg)](/photos/2016/cosin_16_3.jpg)
[![CoSin 2016](/photos/2016/cosin_16_9.small.jpg)](/photos/2016/cosin_16_9.jpg)
[![CoSin 2016](/photos/2016/cosin_16_6.small.jpg)](/photos/2016/cosin_16_6.jpg)
[![CoSin 2016](/photos/2016/cosin_16_7.small.jpg)](/photos/2016/cosin_16_7.jpg)
[![CoSin 2016](/photos/2016/cosin_16_2.small.jpg)](/photos/2016/cosin_16_2.jpg)
[![CoSin 2016](/photos/2016/cosin_16_11.small.jpg)](/photos/2016/cosin_16_11.jpg)
[![CoSin 2016](/photos/2016/cosin_16_4.small.jpg)](/photos/2016/cosin_16_4.jpg)
## CoSin 2015 ## CoSin 2015
[![CoSin 2015](/photos/2015/cosin_15_3.small.jpg)](/photos/2015/cosin_15_3.jpg) {{< gallery 2015 >}}
[![CoSin 2015](/photos/2015/cosin_15_2.small.jpg)](/photos/2015/cosin_15_2.jpg)
[![CoSin 2015](/photos/2015/cosin_15_8.small.jpg)](/photos/2015/cosin_15_8.jpg)
[![CoSin 2015](/photos/2015/cosin_15_9.small.jpg)](/photos/2015/cosin_15_9.jpg)
[![CoSin 2015](/photos/2015/cosin_15_5.small.jpg)](/photos/2015/cosin_15_5.jpg)
[![CoSin 2015](/photos/2015/cosin_15_6.small.jpg)](/photos/2015/cosin_15_6.jpg)
[![CoSin 2015](/photos/2015/cosin_15_10.small.jpg)](/photos/2015/cosin_15_10.jpg)
[![CoSin 2015](/photos/2015/cosin_15_4.small.jpg)](/photos/2015/cosin_15_4.jpg)
[![CoSin 2015](/photos/2015/cosin_15_7.small.jpg)](/photos/2015/cosin_15_7.jpg)
[![CoSin 2015](/photos/2015/cosin_15_1.small.jpg)](/photos/2015/cosin_15_1.jpg)
## CoSin 2014 ## CoSin 2014
[![CoSin 2014](/photos/2014/cosin_14_1_1.small.jpg)](/photos/2014/cosin_14_1_1.jpg) {{< gallery 2014 >}}
[![CoSin 2014](/photos/2014/cosin_14_2_1.small.jpg)](/photos/2014/cosin_14_2_1.jpg)
[![CoSin 2014](/photos/2014/cosin_14_3_1.small.jpg)](/photos/2014/cosin_14_3_1.jpg)
[![CoSin 2014](/photos/2014/cosin_14_0_1.small.jpg)](/photos/2014/cosin_14_0_1.jpg)
[![CoSin 2014](/photos/2014/cosin_14_4_1.small.jpg)](/photos/2014/cosin_14_4_1.jpg)
## CoSin 2013 ## CoSin 2013
[![CoSin 2013](/photos/2013/dsc00200.jpg.small.jpg)](/photos/2013/dsc00200.jpg) {{< gallery 2013 >}}
[![CoSin 2013](/photos/2013/dsc00208.jpg.small.jpg)](/photos/2013/dsc00208.jpg)
[![CoSin 2013](/photos/2013/dsc00210.jpg.small.jpg)](/photos/2013/dsc00210.jpg)
[![CoSin 2013](/photos/2013/dsc00212.jpg.small.jpg)](/photos/2013/dsc00212.jpg)
[![CoSin 2013](/photos/2013/dsc00217.jpg.small.jpg)](/photos/2013/dsc00217.jpg)
## 2012 ## 2012
Da das Easterhegg 2012 in der Schweiz stattfand, Da das Easterhegg 2012 in der Schweiz stattfand,
gab es in diesem Jahr kein CoSin. gab es in diesem Jahr kein CoSin.
## CoSin 2011 ## CoSin 2011
[![CoSin 2011](/photos/2011/front.small.jpg)](/photos/2011/front.jpg) {{< gallery 2011 >}}
[![CoSin 2011](/photos/2011/hackcenter.small.jpg)](/photos/2011/hackcenter.jpg)
[![CoSin 2011](/photos/2011/talk.small.jpg)](/photos/2011/talk.jpg)
[![CoSin 2011](/photos/2011/cinema.small.jpg)](/photos/2011/cinema.jpg)
[![CoSin 2011](/photos/2011/workshop.small.jpg)](/photos/2011/workshop.jpg)
[![CoSin 2011](/photos/2011/workshop2.small.jpg)](/photos/2011/workshop2.jpg)
[![CoSin 2011](/photos/2011/roof.small.jpg)](/photos/2011/roof.jpg)
## CoSin 2010 ## CoSin 2010
[![CoSin 2010](/photos/2010/flag.small.jpg)](/photos/2010/flag.jpg) {{< gallery 2010 >}}
[![CoSin 2010](/photos/2010/infomaterial.small.jpg)](/photos/2010/infomaterial.jpg)
[![CoSin 2010](/photos/2010/outside.small.jpg)](/photos/2010/outside.jpg)
[![CoSin 2010](/photos/2010/robot.small.jpg)](/photos/2010/robot.jpg)
[![CoSin 2010](/photos/2010/talk.small.jpg)](/photos/2010/talk.jpg)
[![CoSin 2010](/photos/2010/talk2.small.jpg)](/photos/2010/talk2.jpg)
[![CoSin 2010](/photos/2010/uplink+flag.small.jpg)](/photos/2010/uplink+flag.jpg)
## CoSin 2009 ## CoSin 2009
[![CoSin 2009](/photos/2009/buehne.small.jpg)](/photos/2009/buehne.jpg) {{< gallery 2009 >}}
[![CoSin 2009](/photos/2009/coffeinum.small.jpg)](/photos/2009/coffeinum.jpg)
[![CoSin 2009](/photos/2009/dachstock2.small.jpg)](/photos/2009/dachstock2.jpg)
[![CoSin 2009](/photos/2009/dachstock.small.jpg)](/photos/2009/dachstock.jpg)
[![CoSin 2009](/photos/2009/elektro.small.jpg)](/photos/2009/elektro.jpg)
[![CoSin 2009](/photos/2009/flags.small.jpg)](/photos/2009/flags.jpg)
[![CoSin 2009](/photos/2009/konzertbar.small.jpg)](/photos/2009/konzertbar.jpg)
[![CoSin 2009](/photos/2009/led-cube2.small.jpg)](/photos/2009/led-cube2.jpg)
[![CoSin 2009](/photos/2009/led-cube3.small.jpg)](/photos/2009/led-cube3.jpg)
[![CoSin 2009](/photos/2009/led-cube.small.jpg)](/photos/2009/led-cube.jpg)
[![CoSin 2009](/photos/2009/mate-rfid2.small.jpg)](/photos/2009/mate-rfid2.jpg)
[![CoSin 2009](/photos/2009/mate-rfid.small.jpg)](/photos/2009/mate-rfid.jpg)
[![CoSin 2009](/photos/2009/rfid-armbaender.small.jpg)](/photos/2009/rfid-armbaender.jpg)
## CoSin 2008 ## CoSin 2008
[![CoSin 2008](/photos/2008/elektronik-workshop.small.jpg)](/photos/2008/elektronik-workshop.jpg) {{< gallery 2008 >}}
[![CoSin 2008](/photos/2008/flaggen.small.jpg)](/photos/2008/flaggen.jpg)
[![CoSin 2008](/photos/2008/glasfaser.small.jpg)](/photos/2008/glasfaser.jpg)
[![CoSin 2008](/photos/2008/icecream1.small.jpg)](/photos/2008/icecream1.jpg)
[![CoSin 2008](/photos/2008/icecream2.small.jpg)](/photos/2008/icecream2.jpg)
[![CoSin 2008](/photos/2008/infoscreen.small.jpg)](/photos/2008/infoscreen.jpg)
[![CoSin 2008](/photos/2008/kuzeb-art.small.jpg)](/photos/2008/kuzeb-art.jpg)
[![CoSin 2008](/photos/2008/kuzeb-wand.small.jpg)](/photos/2008/kuzeb-wand.jpg)
[![CoSin 2008](/photos/2008/loop-antenne.small.jpg)](/photos/2008/loop-antenne.jpg)
[![CoSin 2008](/photos/2008/mate.small.jpg)](/photos/2008/mate.jpg)
[![CoSin 2008](/photos/2008/nitrogen.small.jpg)](/photos/2008/nitrogen.jpg)
[![CoSin 2008](/photos/2008/roboter-controller.small.jpg)](/photos/2008/roboter-controller.jpg)
## CoSin 2007 ## CoSin 2007
[![CoSin 2007](/photos/2007/dachstock.small.jpg)](/photos/2007/dachstock.jpg) {{< gallery 2007 >}}
[![CoSin 2007](/photos/2007/infokafi.small.jpg)](/photos/2007/infokafi.jpg)
[![CoSin 2007](/photos/2007/kuzeb.small.jpg)](/photos/2007/kuzeb.jpg)
[![CoSin 2007](/photos/2007/netbsd.small.jpg)](/photos/2007/netbsd.jpg)
## CoSin 2006 ## CoSin 2006
[![CoSin 2006](/photos/2006/dscf1041.small.jpg)](/photos/2006/dscf1041.jpg) {{< gallery 2006 >}}
[![CoSin 2006](/photos/2006/dscf1042.small.jpg)](/photos/2006/dscf1042.jpg)
[![CoSin 2006](/photos/2006/dscf1047.small.jpg)](/photos/2006/dscf1047.jpg)
[![CoSin 2006](/photos/2006/dscf1060.small.jpg)](/photos/2006/dscf1060.jpg)
[![CoSin 2006](/photos/2006/dscf1072.small.jpg)](/photos/2006/dscf1072.jpg)

View file

@ -1 +0,0 @@
photos.de.md

57
content/photos.en.md Normal file
View file

@ -0,0 +1,57 @@
---
title: "Photos"
type: page
menu:
main:
weight: 200
---
## CoSin 2017
{{< gallery 2017 >}}
## CoSin 2016
{{< gallery 2016 >}}
## CoSin 2015
{{< gallery 2015 >}}
## CoSin 2014
{{< gallery 2014 >}}
## CoSin 2013
{{< gallery 2013 >}}
## 2012
Da das Easterhegg 2012 in der Schweiz stattfand,
gab es in diesem Jahr kein CoSin.
## CoSin 2011
{{< gallery 2011 >}}
## CoSin 2010
{{< gallery 2010 >}}
## CoSin 2009
{{< gallery 2009 >}}
## CoSin 2008
{{< gallery 2008 >}}
## CoSin 2007
{{< gallery 2007 >}}
## CoSin 2006
{{< gallery 2006 >}}

View file

@ -1 +0,0 @@
photos.de.md

57
content/photos.fr.md Normal file
View file

@ -0,0 +1,57 @@
---
title: "Photos"
type: page
menu:
main:
weight: 200
---
## CoSin 2017
{{< gallery 2017 >}}
## CoSin 2016
{{< gallery 2016 >}}
## CoSin 2015
{{< gallery 2015 >}}
## CoSin 2014
{{< gallery 2014 >}}
## CoSin 2013
{{< gallery 2013 >}}
## 2012
Da das Easterhegg 2012 in der Schweiz stattfand,
gab es in diesem Jahr kein CoSin.
## CoSin 2011
{{< gallery 2011 >}}
## CoSin 2010
{{< gallery 2010 >}}
## CoSin 2009
{{< gallery 2009 >}}
## CoSin 2008
{{< gallery 2008 >}}
## CoSin 2007
{{< gallery 2007 >}}
## CoSin 2006
{{< gallery 2006 >}}

View file

@ -1 +0,0 @@
photos.de.md

57
content/photos.it.md Normal file
View file

@ -0,0 +1,57 @@
---
title: "Photos"
type: page
menu:
main:
weight: 200
---
## CoSin 2017
{{< gallery 2017 >}}
## CoSin 2016
{{< gallery 2016 >}}
## CoSin 2015
{{< gallery 2015 >}}
## CoSin 2014
{{< gallery 2014 >}}
## CoSin 2013
{{< gallery 2013 >}}
## 2012
Da das Easterhegg 2012 in der Schweiz stattfand,
gab es in diesem Jahr kein CoSin.
## CoSin 2011
{{< gallery 2011 >}}
## CoSin 2010
{{< gallery 2010 >}}
## CoSin 2009
{{< gallery 2009 >}}
## CoSin 2008
{{< gallery 2008 >}}
## CoSin 2007
{{< gallery 2007 >}}
## CoSin 2006
{{< gallery 2006 >}}

123
data/photos.toml Normal file
View file

@ -0,0 +1,123 @@
2017 = [
"cosin_17_0",
"cosin_17_1",
"cosin_17_2",
"cosin_17_3",
"cosin_17_4",
"cosin_17_5",
"cosin_17_6",
"cosin_17_7",
"cosin_17_8",
"cosin_17_9",
"cosin_17_10",
"cosin_17_11",
"cosin_17_12",
"cosin_17_13",
"cosin_17_14",
"cosin_17_15",
"cosin_17_16",
"cosin_17_17",
"cosin_17_18",
"cosin_17_19",
"cosin_17_20",
"cosin_17_21"]
2016 = [
"cosin_16_0",
"cosin_16_1",
"cosin_16_10",
"cosin_16_8",
"cosin_16_5",
"cosin_16_3",
"cosin_16_9",
"cosin_16_6",
"cosin_16_7",
"cosin_16_2",
"cosin_16_11",
"cosin_16_4"]
2015 = [
"cosin_15_3",
"cosin_15_2",
"cosin_15_8",
"cosin_15_9",
"cosin_15_5",
"cosin_15_6",
"cosin_15_10",
"cosin_15_4",
"cosin_15_7",
"cosin_15_1"]
2014 = [
"cosin_14_1_1",
"cosin_14_2_1",
"cosin_14_3_1",
"cosin_14_0_1",
"cosin_14_4_1"]
2013 = [
"dsc00200",
"dsc00208",
"dsc00210",
"dsc00212",
"dsc00217"]
2011 = [
"front",
"hackcenter",
"talk",
"cinema",
"workshop",
"workshop2",
"roof"]
2010 = [
"flag",
"infomaterial",
"outside",
"robot",
"talk",
"talk2",
"uplink+flag"]
2009 = [
"buehne",
"coffeinum",
"dachstock2",
"dachstock",
"elektro",
"flags",
"konzertbar",
"led-cube2",
"led-cube3",
"led-cube",
"mate-rfid2",
"mate-rfid",
"rfid-armbaender"]
2008 = [
"elektronik-workshop",
"flaggen",
"glasfaser",
"icecream1",
"icecream2",
"infoscreen",
"kuzeb-art",
"kuzeb-wand",
"loop-antenne",
"mate",
"nitrogen",
"roboter-controller"]
2007 = [
"dachstock",
"infokafi",
"kuzeb",
"netbsd"]
2006 = [
"dscf1041",
"dscf1042",
"dscf1047",
"dscf1060",
"dscf1072"]

View file

@ -0,0 +1,9 @@
{{ $year := string (.Get 0) }}
{{ $images := index .Site.Data.photos $year }}
{{ range $images }}
<a href="/photos/{{ $year}}/{{ . }}.jpg">
<img src="/photos/{{ $year}}/{{ . }}.small.jpg"
alt="CoSin {{ $year }}" />
</a>
{{ end }}

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View file

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB