Commit fdd95d55 authored by betz's avatar betz

changelog per page

parent 33510868
Pipeline #37730883 passed with stages
in 1 minute and 16 seconds
---
startdate: 2018-11-19
starttime: "14h"
type: events
eventtype: "Workshop"
title: "PANPANPAN: V-2 Install PartyI"
linktitle: "PANPANPAN: V-2 Install PartyI"
image: "Studioonboard.jpg"
location: "HSBXL"
price: "free contribution / hardware mim 65"
series: panpanpan
---
The PiBox is a modular system of radio/streaming broadcast, composed of multiplers inputs and outputs. The box provides a multi-functional and easy-to-use micro-fm streaming station. The PiBox has been developed within the collective ∏-node.org. The system isbased on open source software / open hardware.
0 : make disk images
I : install disk images on rpi
II: build antenna
http://p-node.org/doc/index.php/V-2_-_definitive_step_by_step_installation_guide
context: http://ooooo.be/panpanpan/
open for all - transhackfeminist - *
\ No newline at end of file
keep this file where it is :)
\ No newline at end of file
#!/usr/bin/env bash
# Usage: commits.sh content data/commits
# Usage: ./scripts/commits.sh content data/commits
echo "generating git logs"
mkdir -p $2
find $1 -name "*.md" | while read line; do
line=$(printf %q "$line")
log=$(git log --pretty=format:'{%n "commit": "%H",%n "author": "%aN <%aE>",%n "date": "%ad",%n "message": "%f"%n},' [email protected] "$line" | perl -pe 'BEGIN{print "["}; END{print "]\n"}' | perl -pe 's/},]/}]/');
line=${line#"$1"};
path=$(dirname "${line}");
filename=$(basename "${line}")
mkdir -p "$2/$path";
echo $log > "$2/$(eval "echo $path")/$(eval "echo $filename").json";
contentline=${line#"$1/"};
filename=$(echo -n $contentline | md5sum | cut -f 1 -d " ");
log=$(git log --pretty=format:'{%n "commit": "%H",%n "author": "%aN",%n "commit_date": "%ci",%n "message": "%f"%n},' "$line" | perl -pe 'BEGIN{print "["}; END{print "]\n"}' | perl -pe 's/},]/}]/');
echo $log > "$2/$filename.json";
done
......@@ -13,11 +13,4 @@
{{ .Content }}
</article>
{{ if .IsPage }}
<div class="editpage">
[<a href="{{ .Site.Params.giteditpath }}/{{ .File.Path }}">Edit this page</a>]
</div>
{{ end }}
{{ partial "bottom.html" . }}
......@@ -5,8 +5,4 @@
{{ .Content }}
{{ if .IsPage }}
[<a href="{{ .Site.Params.giteditpath }}/{{ .File.Path }}">Edit this page</a>]
{{ end }}
{{ partial "bottom.html" . }}
......@@ -26,12 +26,6 @@
</article>
{{ if .IsPage }}
<div class="editpage"></div>
[<a href="{{ .Site.Params.giteditpath }}/{{ .File.Path }}">Edit this page</a>]
{{ end }}
{{ partial "bottom.html" . }}
......
<h1>Changelog</h1>
Changes of this page.
{{ $currentPage := . }}
{{ $jsonFile := "" }}
{{ $currentPagemd5 := md5 $currentPage.File.Path }}
{{ $currentPagemd5ext := (print $currentPagemd5 ".json")}}
{{ $files := readDir "data/commits/" }}
{{ range $files }}
{{ if eq .Name $currentPagemd5ext }}
{{ $jsonFile := $currentPagemd5 }}
{{ $data := index $.Site.Data.commits $jsonFile }}
<ul>
{{ range $data }}
<li>
{{ dateFormat "2006-01-02" .commit_date }}: <a href="https://gitlab.com/hsbxl/site/commit/{{ .commit }}">
<strong>{{ trim .message "\n" }}</strong>
</a> ({{ .author }})
</li>
{{ end }}
</ul>
{{ end }}
{{ end }}
<div class="editpage">
[<a href="{{ .Site.Params.giteditpath }}/{{ .File.Path }}">Edit this page</a>]
</div>
</div>
</div>
{{ partial "footer.html" . }}
</body>
</html>
......@@ -63,8 +63,4 @@
</article>
{{ if .IsPage }}
[<a href="{{ .Site.Params.giteditpath }}/{{ .File.Path }}?commit_message=Update {{ .File.Path }}">Edit this page</a>]
{{ end }}
{{ partial "bottom.html" . }}
......@@ -3,7 +3,7 @@
<h1>{{ .Title }}</h1>
{{ partial "breadcrumbs.html" . }}
{{ partial "share.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 />
......@@ -26,11 +26,4 @@
{{ end }}
{{ if .IsPage }}
<div class="editpage">
[<a href="{{ .Site.Params.giteditpath }}/{{ .File.Path }}?commit_message=Update {{ .File.Path }}">Edit this page</a>]
</div>
{{ end }}
{{ partial "bottom.html" . }}
......@@ -17,11 +17,5 @@
<div class="pad">Public pad: <a href="https://etherpad.openstack.org/p/techtuesday{{.File.BaseFileName}}">https://etherpad.openstack.org/p/techtuesday{{.File.BaseFileName}}</a> </div>
{{ if .IsPage }}
<div class="editpage">
<a href="{{ .Site.Params.giteditpath }}/{{ .File.Path }}">[Edit this page]</a>
</div>
{{ end }}
{{ partial "bottom.html" . }}
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