Skip to content

Commit 81cdb4e

Browse files
fix: update community URLs and add layout to community pages (#471)
On-behalf-of: Gerald Morrison (SAP) <[email protected]> <!-- markdownlint-disable MD041 --> #### What this PR does / why we need it re-introduce permalinks for the community page. These got lost, because we introduced a special rendering for the community side to make it centric, instead of attached to the left ,margin. --------- Signed-off-by: Gerald Morrison (SAP) <[email protected]> Co-authored-by: Gerald Morrison (SAP) <[email protected]>
1 parent dea65f9 commit 81cdb4e

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

config/_default/menus/menus.en.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[[main]]
77
name = "Community"
8-
url = "/community/community"
8+
url = "/community"
99
weight = 20
1010

1111
[[main]]

content/community/community.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
22
title: "The OCM Community"
33
description: "The OCM Community"
4-
url: community/community
4+
url: /community
55
lead: true
66
draft: false
77
images: []
88
weight: 92
99
toc: true
10+
layout: community
1011
---
1112

1213
## How to engage with us
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
2+
{{ .Text | safeHTML }}
3+
<a href="#{{ .Anchor | safeURL }}" class="anchor" aria-hidden="true">#</a>
4+
</h{{ .Level }}>

layouts/community/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{{ .Content }}
88
</div>
99
<!-- TOC stays at 3/12 -->
10-
<aside class="col-xl-3 docs-toc d-none d-xl-block">
10+
<aside id="toc" class="col-xl-3 docs-toc d-none d-xl-block">
1111
{{ if .TableOfContents }}
1212
<h2 class="toc-title">On this page</h2>
1313
{{ .TableOfContents }}

0 commit comments

Comments
 (0)