Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Move last modified date on policy pages to front matter #544

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion site/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ defaultContentLanguage = "en"
# Define the number of posts per page
paginate = 10

# Required to read lastmod date from file
# enableGitInfo = true

[menu]

[[menu.main]]
Expand Down Expand Up @@ -105,7 +108,6 @@ paginate = 10
editURL = "/admin/#/collections/"
description = "Shift website reboot documents"
disableAssetsBusting = true # netlify doesn't need that
enableGitInfo = true

# Google Maps API key (if not set will default to not passing a key.)
googleMapsApiKey = "AIzaSyCFhtWLJcE30xOAjcbSFi-0fnoVmQZPb1Y"
Expand Down
3 changes: 1 addition & 2 deletions site/content/pages/public-health.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ weight: "7"
menu:
main:
parent: communitynav
type: policy
---

## Ride safely
Expand Down Expand Up @@ -70,5 +71,3 @@ If a ride leader agrees to follow these specific guidelines, a special marker wi
If you have questions or concerns about the safety policies for a ride, past or upcoming, reach out to the ride leaders or [contact us](/pages/contact/). Shift reserves the right to moderate calendar listings, and this may include removing the COVID Safety Plan designation from a ride if we are aware that it does not follow this policy.

Please note: These guidelines have changed over time as conditions and public health guidelines have evolved. For past rides, refer to the [page history](https://github.com/shift-org/shift-docs/commits/main/site/content/pages/public-health.md) on GitHub to determine the version of policies in place at that time.

*Last updated: May 2023*
1 change: 1 addition & 0 deletions site/content/pages/shift-code-of-conduct.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ weight: 2
menu:
main:
parent: aboutmenu
type: policy
---
## 1. Purpose

Expand Down
66 changes: 66 additions & 0 deletions site/themes/s2b_hugo_theme/layouts/policy/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">

{{ partial "head.html" . }}

<body>

<div id="all">

<header>

{{ partial "nav.html" . }}

</header>

<main>

{{ partial "breadcrumbs.html" . }}

<div id="content">
{{ if isset .Params "id" }}

{{ partial .Params.id . }}

{{ else }}

<div class="container">

<div class="row">

<div class="col-md-12">

<div>
{{ .Content }}
</div>

<div class="lastmod">
Last updated: {{ .Lastmod | time.Format .Site.Params.date_format }}
</div>
</div>

</div>
<!-- /.row -->

</div>
<!-- /.container -->

{{ end }}
</div>
<!-- /#content -->

</main>

<footer>

{{ partial "footer.html" . }}

</footer>

</div>
<!-- /#all -->

{{ partial "scripts.html" . }}

</body>
</html>
4 changes: 4 additions & 0 deletions site/themes/s2b_hugo_theme/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,7 @@ main .donate a {
forced-color-adjust: auto;
}
}

.lastmod {
font-style: italic;
}