<% // Which section of the site this page is in. Drives the logo caption, the // feed link, whether the search box appears, and which index it queries. const inDocs = fileName.startsWith('/docs/'); const inBlog = fileName.startsWith('/blog/'); const canonicalUrl = siteUrl + fileName.replace('/index.html', '/'); // Link previews (Twitter/X, LinkedIn, Slack, ...) take the post title bare, // without the " - Perfetto Blog" suffix, which og:site_name already says. const isPost = typeof post !== 'undefined' && post && !post.isIndex; const ogTitle = isPost ? post.title : title; const desc = typeof description !== 'undefined' ? description : undefined; // Blog pages only (see ogImageUrl in render.mjs). const img = typeof ogImage !== 'undefined' ? ogImage : undefined; -%> <%= title %> <% if (desc) { %> <% } %> <% if (img) { %> <% } %> <% if (isPost) { %> <% } %> <% if (inBlog) { %> <% } %>