Skip to content

Commit

Permalink
Merge branch 'ogstools-link' into 'master'
Browse files Browse the repository at this point in the history
[web] Added link to ogstools on the docs overview page.

See merge request ogs/ogs!4718
  • Loading branch information
bilke committed Aug 28, 2023
2 parents 316e2c1 + 1e6f0ea commit caaf1b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions web/config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,12 @@ post = "OpenGeoSys C++ Style Guide"
[menu.docs.params]
category = "Developer"

[[menu.docs]]
name = "Python tools"
url = "https://ogs.ogs.xyz/tools/ogstools"
post = "<em>ogstools</em> is a collection of Python tools aimed at evolving into a modeling toolchain around OpenGeoSys."
[menu.docs.params]
category = "Advanced"

[security.funcs]
getenv = ['^HUGO_', '^CI_']
4 changes: 3 additions & 1 deletion web/layouts/docs/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
<h2>{{ . }}</h2>
</div>
<div class="flex flex-wrap -m-4 p-4">

{{ $num_entries := (where $.Site.Menus.docs "Params.category" .) | len }}
{{ range where $.Site.Menus.docs "Params.category" . }}
<div class="xl:w-1/3 md:w-1/2 mt-2 px-4 py-2 md:p-4">
<div class="xl:w-1/{{$num_entries}} md:w-1/2 mt-2 px-4 py-2 md:p-4">
<a href="{{ .URL }}">
<div class="p-4 bg-gray-100 hover:bg-white rounded-lg shadow h-full">
<h3 class="text-xl mb-2 border-b text-blue-800">
Expand Down

0 comments on commit caaf1b4

Please sign in to comment.