commit | 15147f1fa514493d565ecbc160e339218fe5b95e | [log] [tgz] |
---|---|---|
author | Dirk Pranke <dpranke@google.com> | Thu Oct 28 00:17:56 2021 |
committer | chromium-website-scoped@luci-project-accounts.iam.gserviceaccount.com <chromium-website-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Oct 28 14:42:20 2021 |
tree | 3c37e60eb398ca7c4787722c2299943be9265124 | |
parent | 9bf7df2a1fe8d7875a8c15ebb4e685cecb8d1295 [diff] |
Allow title to be an optional H1, fix whitespace for frontmatter. Some pages don't actually want to display the page title as the top-level header. This CL adds an boolean parameter `use_title_as_h1` to the front matter (which defaults to true), and adds a hard-coded list of pages to export.py to turn the title off. This also changes the title from being formatted as an H3 to an H1, and fixes some whitespace formatting between the frontmatter and the content. Bug: 1260462 Change-Id: Ic8b408d0d0695bc89d2c9944137b43925ab79198 Reviewed-on: https://chromium-review.googlesource.com/c/experimental/website/+/3249410 Reviewed-by: Struan Shrimpton <sshrimp@google.com> Commit-Queue: Dirk Pranke <dpranke@google.com>
This Git repo contains the source content for www.chromium.org.
NOTE: 2021-10-19. This is not (yet) actually true. This is a work-in-progress repo that we plan to move to.
The website is implemented by serving static content (mostly Markdown files) that is translated / built ahead of time into HTML using the Eleventy static site generator (which is written in Node/JS) and deployed onto Firebase Cloud Hosting.
The Markdown is translated using a single extremely simple Nunjucks template and the site is served with a single basic Sass/SCSS stylesheet (using the Node/NPM library version of Sass).
Large objects (PDFs, big images, etc.) are stored in a Google Cloud Storage bucket, indexed by SHA-1 checksums that are committed into this repo.
See //docs/CONTRIBUTING.md if you wish to contribute to the site.