Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Foundation
IT
Webdev
hugo-solstice-theme
Commits
65ebf220
Commit
65ebf220
authored
Jun 28, 2022
by
Eric Poirier
Committed by
Christopher Guindon
Jun 28, 2022
Browse files
Add the ability to opt-in and out of title formating
parent
4c48eca7
Changes
2
Hide whitespace changes
Inline
Side-by-side
layouts/partials/breadcrumbs.html
View file @
65ebf220
<!--
<!--
Copyright (c) 2018 Eclipse Foundation, Inc.
This program and the accompanying materials are made available under the
...
...
@@ -24,7 +24,7 @@
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
{{ end }}
<li
{{
if
eq
.
p1
.
p2
}}
class=
"active"
aria-current=
"page"
{{
end
}}
>
<a
href=
"{{ .p1.Permalink }}"
>
{{ .p1.Title | safeHTML | title }}
</a>
<a
href=
"{{ .p1.Permalink }}"
>
{{
if eq .Page.Params.format_title false }}{{ .p1.Title | safeHTML }}{{ else }}{{
.p1.Title | safeHTML | title
}}{{ end
}}
</a>
</li>
{{ end }}
</div>
...
...
layouts/partials/main_prefix.html
View file @
65ebf220
<!--
<!--
Copyright (c) 2019 Eclipse Foundation, Inc.
This program and the accompanying materials are made available under the
...
...
@@ -20,5 +20,11 @@
{{ end }}
{{ if ne .Page.Params.hide_page_title true }}
<h1>
{{ .Title | safeHTML | title }}
</h1>
{{ end }}
\ No newline at end of file
<h1>
{{ if eq .Page.Params.format_title false }}
{{ .Title | safeHTML }}
{{ else }}
{{ .Title | safeHTML | title }}
{{ end }}
</h1>
{{ end }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment