[site] Move info pages to a new Hugo layout "info"
Allows us to apply a fancier theme by default to other pages we want to add.
Also fixes the markdown headers since there should only be one '#' in a
markdown file.
Signed-off-by: James Wainwright <james.wainwright@lowrisc.org>
diff --git a/site/landing/assets/scss/minimal.scss b/site/landing/assets/scss/info.scss
similarity index 84%
rename from site/landing/assets/scss/minimal.scss
rename to site/landing/assets/scss/info.scss
index 7ae9cad..bbde840 100644
--- a/site/landing/assets/scss/minimal.scss
+++ b/site/landing/assets/scss/info.scss
@@ -11,7 +11,7 @@
h1, h2, h3 {
color: #3D1067;
- font-family: 'Livvic', sans-serif;
+ font-family: 'Livvic', sans-serif;
}
table {
diff --git a/site/landing/content/privacy-policy.md b/site/landing/content/privacy-policy.md
index b63de21..66af976 100644
--- a/site/landing/content/privacy-policy.md
+++ b/site/landing/content/privacy-policy.md
@@ -1,5 +1,6 @@
---
title: "Website Privacy and Cookies Policy"
+layout: "info"
aliases:
- /privacy/
---
@@ -9,7 +10,7 @@
page explains the kinds of information we may collect about you, and the
reasons for collecting this information.
-# General website information
+## General website information
If you use this website, we will make a record of the information your web
browser sends to us, typically identifying the type of browser you are using,
@@ -23,12 +24,12 @@
and analytics provider Google Analytics, who are under an obligation not to use
your information for any other purpose.
-# Cookies
+## Cookies
To make this website work properly, we sometimes place small data files called
"cookies" on your device. Most big websites do this too.
-# What are cookies?
+## What are cookies?
A cookie is a small text file that a website (including this website) saves on
your computer or mobile device when you visit the site. It enables the website,
@@ -38,7 +39,7 @@
back to the site or browse from one page to another. It also enables us to
analyse how this website is being used.
-# How do we use cookies?
+## How do we use cookies?
The following table explains the cookies we use and why we use them.
@@ -50,7 +51,7 @@
| `_gat_gtag_UA_151030466_2` | 1 minute | Limiting the rate at which data is reported. |
| `AMP_TOKEN` | At most 1 year | Distinguishing users. |
-# How to control cookies
+## How to control cookies
You can control and/or delete cookies as you wish - for details, see
[aboutcookies.org](https://aboutcookies.org). You can delete all cookies that
@@ -59,7 +60,7 @@
preferences every time you visit a site and some services and functionalities
may not work.
-# Emails
+## Emails
If you sign up to be on our mailing list via this website, we will ask you for
the following information:
@@ -88,7 +89,7 @@
mailing lists. Any use we make of data processors will require them only to act
only on our instructions concerning your personal data.
-# Lawful basis
+## Lawful basis
It is lawful for us, under the General Data Protection Regulation (GDPR), to
process the information described in this notice because we have a
@@ -100,7 +101,7 @@
We do not believe the way in which we are processing them is likely to cause you any harm.
-# Transfer of data outside the United Kingdom & Europe
+## Transfer of data outside the United Kingdom & Europe
We may use third party providers, such as [Google
Groups](https://groups.google.com/forum/#!overview) and
@@ -110,7 +111,7 @@
terms and privacy notices and you should refer to their privacy notices for
information on how your personal data is processed when using their services.
-# Your rights
+## Your rights
Under the General Data Protection Regulation you have a number of important
rights free of charge. In summary, those include rights to:
@@ -157,7 +158,7 @@
[https://ico.org.uk/make-a-complaint/your-personal-information-concerns/](https://ico.org.uk/make-a-complaint/your-personal-information-concerns/)
or telephone: 0303 123 1113
-# Who we are
+## Who we are
We are lowRISC Community Interest Company is a not-for-profit, private company
limited by guarantee, registered in England and Wales with Company number
diff --git a/site/landing/content/trademark-usage-policy.md b/site/landing/content/trademark-usage-policy.md
index 816116f..33d7014 100644
--- a/site/landing/content/trademark-usage-policy.md
+++ b/site/landing/content/trademark-usage-policy.md
@@ -1,5 +1,6 @@
---
title: "OpenTitan Trademark Usage Policy"
+layout: "info"
---
The OpenTitan trademarks and logos ("OpenTitan Trademarks") are licensed
@@ -7,7 +8,7 @@
Apache-licensed OpenTitan repositories on GitHub. Except as provided in this
policy, you may not use any of the OpenTitan Trademarks.
-# Purpose of the Trademark Policy
+## Purpose of the Trademark Policy
This policy exists to ensure that the identity and meaning of OpenTitan
technology is clear to everyone. By using this policy, the OpenTitan project
@@ -18,7 +19,7 @@
consumers. By adhering to this policy, you help to promote the freedom to use
and develop high-quality OpenTitan technology.
-# Acceptable Use
+## Acceptable Use
You may use the OpenTitan Trademarks without prior written permission (subject
to other sections):
@@ -41,13 +42,13 @@
unless the OpenTitan Project actually approved that specific
implementation for the OpenTitan Certification.
-# Logo Usage Guidelines
+## Logo Usage Guidelines
The OpenTitan logos serve as graphic trademarks for the OpenTitan Project. We
ask that any use of the OpenTitan logos be in compliance with the general usage
guidelines provided in this policy.
-# Use as a Source Identifier
+## Use as a Source Identifier
You may not use the OpenTitan Trademarks or any confusingly similar mark as the
name of your product or feature, except to accurately reference implementation
@@ -64,7 +65,7 @@
dilute the OpenTitan Trademarks, create confusion, or otherwise infringe upon
these trademarks.
-# Technical Specifications & OpenTitan Certification
+## Technical Specifications & OpenTitan Certification
Any person may utilize and implement the designs shared in the OpenTitan GitHub
repositories according to the license terms in the LICENSE file. However, no
@@ -88,7 +89,7 @@
implementation, or to imply affiliation of an implementation with the OpenTitan
project, is strictly prohibited.
-# Contact Us
+## Contact Us
The OpenTitan Project protects the OpenTitan Trademarks on behalf of all of the
contributors to the OpenTitan Project. This policy does not authorize you to
diff --git a/site/landing/content/usage-policy.md b/site/landing/content/usage-policy.md
index 30c34b5..3864f15 100644
--- a/site/landing/content/usage-policy.md
+++ b/site/landing/content/usage-policy.md
@@ -1,12 +1,13 @@
---
title: "Website Usage Licence"
+layout: "info"
aliases:
- /usage/
---
-# *Terms on which we permit you to use this website*
+*Terms on which we permit you to use this website*
-# General
+## General
1. You may use the web pages located under the domain *OpenTitan.org* ("this
website") on the terms set out on this page. They are not intended to form a
@@ -38,7 +39,7 @@
permit you to access this website or use any content if you do not comply
with these terms.
-# Using this Website
+## Using this Website
4. This website is intended only to give you information about us and our
products and services. We do not intend, through this website:
@@ -54,7 +55,7 @@
may not use this website for any other purpose. For example, you may not
download this website or any part of it for your own use.
-# Information about you: privacy
+## Information about you: privacy
1. If you subscribe to emails from us using this website, you consent to us
using your email address for the purposes set out in our [privacy policy],
@@ -72,13 +73,13 @@
should not submit any information you regard as confidential. Any
information you do submit, you submit at your own risk.
-# Use of cookies
+## Use of cookies
1. Cookies are short text files stored in your web browser to allow us to
remember you when you return to this website. More information about the
particular cookies we use may be found at [privacy and cookie policy].
-# Accuracy of information and availability of this website
+## Accuracy of information and availability of this website
1. While we hope that this website is accurate, up-to-date and free from bugs,
we cannot promise that it will be. Furthermore, we cannot promise that this
@@ -92,7 +93,7 @@
not constitute technical, financial or legal advice or any other type of
advice and should not be relied upon for any purposes.
-# Changes to these terms
+## Changes to these terms
1. We reserve the right to vary these terms from time to time. Our new terms
will be displayed on this website and by continuing to use and access this
@@ -100,7 +101,7 @@
by us. It is your responsibility to check these terms from time to time to
verify such variations.
-# Hyperlinks and third party sites
+## Hyperlinks and third party sites
1. This website may contain hyperlinks or references to third party websites
other than this website. Any hyperlinks or references are provided for your
@@ -111,7 +112,7 @@
services. Your use of a third party site may be governed by the terms and
conditions of that third party site.
-# Disputes and liability
+## Disputes and liability
1. Except for any legal responsibility that we cannot exclude in law (such as
for death or personal injury caused by our negligence and our statutory
diff --git a/site/landing/layouts/page/info.html b/site/landing/layouts/page/info.html
new file mode 100644
index 0000000..73ab5dc
--- /dev/null
+++ b/site/landing/layouts/page/info.html
@@ -0,0 +1,14 @@
+<html>
+ <head>
+ {{ $options := (dict "targetPath" "css/info.css" "outputStyle" "compressed" "enableSourceMap" true) }}
+ {{ $style := resources.Get "scss/info.scss" | resources.ToCSS $options }}
+ <link rel="stylesheet" href="{{ $style.Permalink }}">
+ <title>{{ .Title }} | OpenTitan</title>
+ <link href="https://fonts.googleapis.com/css?family=Livvic|Ubuntu&display=swap" rel="stylesheet">
+ {{ partial "gtag" . }}
+ </head>
+ <body>
+ <h1>{{ .Title }}</h1>
+ {{ .Content }}
+ </body>
+</html>