Commit 32e04209 authored by betz's avatar betz

refactor of projects / subsections

parent bdeb3100
......@@ -7,3 +7,17 @@ linktitle: "Projects"
This is an overview of our space projects.
As this is a new site, this is still only a small fraction of the actual projects.
You can find the overview on the old site on https://wiki.hsbxl.be/Projects
# Running projects
Projects still active. Work in progress.
{{< projects running >}}
# Finished projects
Projects made to perfection. Sort of.
{{< projects archived >}}
# Broken dreams
We all have em once in a while, don't we?
Those awesome projects that never got finished because lack of time and/or intrest.
An overview. Someone might pick it up one day.
{{< projects broken >}}
\ No newline at end of file
---
title: "kitchen"
linktitle: "kitchen"
state: running
image: "citygate.png"
---
# kitchen
kitchen
# ipsum
\ No newline at end of file
default baseof
{{ block "main" . }}
default baseof main
{{ end }}
\ No newline at end of file
{{ partial "top.html" . }}
{{ define "main" }}
<h1>Hackerspace Brussels</h1>
<blockquote>Hackerspace Brussels (HSBXL) is a space, dedicated to various aspects of constructive & creative hacking. The space is about 300 square meters, there is a little electronics lab with over 9000 components, a library, and lots of tools. You're always welcome to follow one of the workshops or come to the weekly Tuesday meetings, hack nights or other get-together events.</blockquote>
......@@ -21,4 +23,6 @@
<a class="icon_facebook" href="https://www.facebook.com/groups/hsbxl">Facebook</a>
</div>
{{ end }}
{{ partial "bottom.html" . }}
{{ block "main" . }}{{ end }}
\ No newline at end of file
{{ partial "top.html" . }}
<h1>{{ .Title }}</h1>
{{ partial "breadcrumbs.html" . }}
{{ if ne .File.Path "projects/_index.md" }}
<div class="project_intro">
This {{ if eq .Params.state "running"}}is a running{{else}}was a{{ end }} project at HSBXL. See <a href="{{ .Site.BaseURL }}projects">other space projects</a>. <br />
{{ if isset .Params "maintainer"}}If you want more info about this project, ask '{{ .Params.maintainer }}'.{{end}}
</div>
{{ end }}
{{ partial "toc.html" . }}
<article>
{{ if isset .Params "image"}}
<img class="content_image" src="{{ .Site.BaseURL }}images/{{ .Params.image }}">
{{ end }}
{{ .Content }}
</article>
{{ partial "bottom.html" . }}
......@@ -14,7 +14,7 @@
<h2>Running projects</h2>
Projects still active. Work in progress.
<ul>
{{ range $.Site.RegularPages.ByParam "linktitle" }}
{{ range $.Site.Pages.ByParam "linktitle" }}
{{ if eq .Type "projects" }}
{{ if eq .Params.state "running"}}
{{ if ge .Params.startdate (now.Format "2006-01-02") }}
......
{{ partial "top.html" . }}
<h1>{{ .Title }}</h1>
{{ partial "breadcrumbs.html" . }}
<div class="project_intro">
This {{ if eq .Params.state "running"}}is a running{{else}}was a{{ end }} project at HSBXL. See <a href="{{ .Site.BaseURL }}projects">other space projects</a>. <br />
{{ if isset .Params "maintainer"}}If you want more info about this project, ask '{{ .Params.maintainer }}'.{{end}}
......@@ -21,3 +20,4 @@
{{ partial "bottom.html" . }}
{{- $state := .Get 0 -}}
<ul>
{{ range $.Site.Pages.ByParam "linktitle" }}
{{ if eq .Type "projects" }}
{{ if eq .Params.state $state}}
{{ if ge .Params.startdate (now.Format "2006-01-02") }}
<li>
<a href="{{ .Permalink }}">{{ .Params.linktitle }}</a>
</li>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</ul>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment