Mark · Chrome

Document head

The whole <head> for a document template — title, SEO and share cards, theme assets, and the no-flash colour boot. Required by every template so the head can't drift between them.

Every document template forwards what it was handed and stays a shell — the head computes from raw locals so it cannot drift between templates.

<!doctype html>
<html lang="en">
  <head>
    <%- require('/site/partials/chrome/document-head.ejs')(locals) %>
  </head>
  <body>
    <%- content %>
  </body>
</html>

It resolves the title most-specific-first — the CMS's computed SEO title, then the page's own title, then the theme name — because a hardcoded name on every page is worse than a real title the CMS already knows. It also carries the share cards, the theme assets, and the no-flash colour boot.


No demos yet.

On this page