From 95f35b8b83a91f4f608c91e263486527cbcccbc7 Mon Sep 17 00:00:00 2001 From: akwizgran <michael@briarproject.org> Date: Fri, 2 Oct 2020 15:04:17 +0100 Subject: [PATCH] Add jobs index page, exclude old job pages from index. --- content/hiring/2018-05-java-developer.md | 1 + .../hiring/2018-05-usability-consultant.md | 1 + content/hiring/2018-05-ux-designer.md | 1 + content/hiring/_index.md | 7 +++++ content/page/hiring.md | 14 ---------- themes/briar/layouts/_default/section.html | 26 ++++++++++--------- 6 files changed, 24 insertions(+), 26 deletions(-) create mode 100644 content/hiring/_index.md delete mode 100644 content/page/hiring.md diff --git a/content/hiring/2018-05-java-developer.md b/content/hiring/2018-05-java-developer.md index f54b910..7018ab2 100644 --- a/content/hiring/2018-05-java-developer.md +++ b/content/hiring/2018-05-java-developer.md @@ -1,6 +1,7 @@ --- title: Java Developer date: 2018-05-01T00:00:00+01:00 +hide: 1 --- Sorry, this position is no longer available. If you'd like to hear about diff --git a/content/hiring/2018-05-usability-consultant.md b/content/hiring/2018-05-usability-consultant.md index 0d3945d..b2c3e26 100644 --- a/content/hiring/2018-05-usability-consultant.md +++ b/content/hiring/2018-05-usability-consultant.md @@ -1,6 +1,7 @@ --- date: 2018-05-01T00:00:00+02:00 title: Usability Consultant +hide: 1 --- Sorry, this position is no longer available. If you'd like to hear about diff --git a/content/hiring/2018-05-ux-designer.md b/content/hiring/2018-05-ux-designer.md index d57b4a2..4322ac3 100644 --- a/content/hiring/2018-05-ux-designer.md +++ b/content/hiring/2018-05-ux-designer.md @@ -1,6 +1,7 @@ --- date: 2018-05-01T00:00:00+01:00 title: UX Designer +hide: 1 --- Sorry, this position is no longer available. If you'd like to hear about diff --git a/content/hiring/_index.md b/content/hiring/_index.md new file mode 100644 index 0000000..b45e478 --- /dev/null +++ b/content/hiring/_index.md @@ -0,0 +1,7 @@ +--- +aliases: +- /hiring.html +title: Jobs +--- + +The Briar project is looking for the following people to join the team: \ No newline at end of file diff --git a/content/page/hiring.md b/content/page/hiring.md deleted file mode 100644 index b377951..0000000 --- a/content/page/hiring.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -aliases: -- /hiring.html -title: Sorry, We're Not Currently Hiring ---- - -We don't currently have any paid positions available. If you'd like to -hear about future vacancies, please email {{<contactemail>}}. - -If you're interested in getting involved as a volunteer, please [join -the development mailing -list](https://lists.sourceforge.net/lists/listinfo/briar-devel). -Translators can volunteer through our [Transifex -project](https://transifex.com/otf/briar). diff --git a/themes/briar/layouts/_default/section.html b/themes/briar/layouts/_default/section.html index a7fc36f..c62f56c 100644 --- a/themes/briar/layouts/_default/section.html +++ b/themes/briar/layouts/_default/section.html @@ -1,14 +1,16 @@ {{ define "main" }} -<h1>{{ with .Title }} {{ . }} {{ else }} {{ .Site.Title }} {{ end }}</h1> -{{ range first 10 .Pages.ByDate.Reverse }} -<h3 itemprop="headline" class="blog-post-title"> - <a href="{{.Permalink}}">{{.Title}}</a> -</h3> -<p class="blog-post-meta">{{.Date.Format "2006-01-02"}} -{{ if (isset .Params "author") }} -by {{ markdownify .Params.author }} -{{ end }} -</p> -{{ end }} -{{ .Content }} + <h1>{{ with .Title }} {{ . }} {{ else }} {{ .Site.Title }} {{ end }}</h1> + {{ .Content }} + {{ range .Pages.ByDate.Reverse }} + {{ if not .Params.hide }} + <h3 itemprop="headline" class="blog-post-title"> + <a href="{{.Permalink}}">{{.Title}}</a> + </h3> + <p class="blog-post-meta">{{.Date.Format "2006-01-02"}} + {{ if (isset .Params "author") }} + by {{ markdownify .Params.author }} + {{ end }} + </p> + {{ end }} + {{ end }} {{ end }} -- GitLab