|author||Dirk Pranke <firstname.lastname@example.org>||Thu Oct 28 15:48:09 2021|
|email@example.com <firstname.lastname@example.org>||Thu Oct 28 16:20:38 2021|
Rewrite / fix breadcrumb-handling logic. The default page template reads the `breadcrumbs` data value from the front-matter of each page. Previously the export script was generating a string of HTML to insert directly, but this was buggy and was effectively hard-coding HTML into the template, rather than letting the template do the HTML generation. This CL fixes things by (a) switching the value to be a list of [href, text] pairs that the template can iterate over, and (b) fixing the bugs in the string so that the URLs are correct. In theory we should be able to generate the breadcrumbs during the build process and not need them to be in the front matter at all, but making that change will have to wait for now (see crbug.com/1260460). Bug: 1260459 Change-Id: If5d3ae559914194075a38c614c6ce464e5e08c40 Reviewed-on: https://chromium-review.googlesource.com/c/experimental/website/+/3251600 Reviewed-by: Struan Shrimpton <email@example.com> Commit-Queue: Dirk Pranke <firstname.lastname@example.org>
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.