{page.title}
-
- {page.meta && }
-
+
+ )}
diff --git a/frontend/src/styles.css b/frontend/src/styles.css
index 1e3e611b..498b86a6 100644
--- a/frontend/src/styles.css
+++ b/frontend/src/styles.css
@@ -4251,11 +4251,27 @@ svg.regions-dim {
Copy page on the right. On a phone the buttons wrap below the date and author. */
.docs-head {
display: flex;
- flex-direction: column;
- gap: var(--space-3);
+ align-items: center;
+ justify-content: space-between;
+ gap: var(--space-4);
margin-bottom: var(--space-8);
}
+@media (max-width: 640px) {
+ .docs-head {
+ flex-direction: column;
+ align-items: flex-start;
+ }
+}
+
+/* A blog post: the title on its own row, then the date and author with the buttons on the right. */
+.docs-head-post {
+ flex-direction: column;
+ align-items: stretch;
+ justify-content: flex-start;
+ gap: var(--space-6);
+}
+
.docs-head-row {
display: flex;
flex-wrap: wrap;
@@ -4272,11 +4288,14 @@ svg.regions-dim {
display: flex;
flex: none;
gap: var(--space-2);
+}
+
+.docs-head-row .docs-actions {
margin-left: auto;
}
@media (max-width: 640px) {
- .docs-actions {
+ .docs-head-row .docs-actions {
margin-left: 0;
}
}
diff --git a/scripts/screenshots/pages.mjs b/scripts/screenshots/pages.mjs
index af13c2b3..c6eca8b8 100644
--- a/scripts/screenshots/pages.mjs
+++ b/scripts/screenshots/pages.mjs
@@ -26,7 +26,9 @@ export function pages() {
return bothThemes([
['landing', '/', false, ALL],
['docs/index', '/docs/', false, ALL],
- // The blog's list (newest first: the order Nathan checks) and a post, whose header the docs pages share.
+ ['docs/page', '/docs/quick-start/', false, ALL],
+ // The blog's list (newest first: the order Nathan checks) and a post. Only a post has its title on a row of its
+ // own; the list and the docs keep the buttons on the title row.
['blog/index', '/blog/', false, ALL],
['blog/post', '/blog/weasyprint-case-study/', false, ALL],
['app/orgs', '/', true, ALL],
-
- View as Markdown
-
-
+ {/* A blog post has its title on a row of its own, then its date and author beside the buttons. Every other
+ page has the buttons on the title row. */}
+ {page.meta ? (
+
+
-
+
+ ) : (
+ {page.title}
+
+
+ {actions}
-