Skip to content
Snippets Groups Projects
Commit 603fd3a6 authored by Lars Bilke's avatar Lars Bilke Committed by Lars Bilke
Browse files

[web] Added docs index page, fixed docs sidebar navigation.

This adds subsection support.
parent 30b278d3
No related branches found
No related tags found
No related merge requests found
+++
title = "Documentation"
[[sections]]
name = "Selected Benchmarks"
slug = "benchmarks"
text = "Basic benchmarks are explained and input files are provided to get you started in using OGS."
[[sections]]
name = "Developer Guide"
slug = "devguide"
text = "You want to contribute to the OpenGeoSys project or implement a custom feature? In the Developer Guide you will find everything to get you started into OpenGeoSys development. Experienced developers will find a comprehensive list of advanced development topics."
+++
{{ partial "header.html" . }} {{ partial "header.html" . }}
<div class="col-xs-3"> <div class="col-xs-3">
{{ $segments := split .RelPermalink "/" }}
{{ $subsection := index $segments 2 }}
<ul> <ul>
{{ range .Site.Pages.ByWeight }} {{ range .Site.Pages.ByWeight }}
<!-- {{ if eq .Type "docs"}} --> {{ if eq .Type "docs"}}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li> {{ $localSegments := split .RelPermalink "/" }}
<!-- {{ end }} --> {{ $localSubsection := index $localSegments 2 }}
{{ if eq $localSubsection $subsection }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
{{ end }} {{ end }}
<ul> <ul>
</div> </div>
......
{{ partial "header.html" . }}
<div class="col-xs-12">
<h1>OpenGeoSys Documentation</h1>
<div class="row">
{{ range .Params.sections }}
<div class="col-xs-4">
<h3><a href="/docs/{{ .slug }}">{{ .name }}</a></h3>
<p>{{ .text }}</p>
</div>
{{ end }}
</div>
</div>
{{ partial "footer.html" . }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment