From 27e1beade335539c768561a39711ea1e8eef6cc0 Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Thu, 16 Feb 2023 14:33:53 +0000 Subject: [PATCH] Build scripts --- package.json | 4 ++++ src/_includes/post.njk | 7 +++++-- src/css/exceptions/article.css | 4 ++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index af2e814..c44b54e 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,10 @@ "description": "", "main": "index.js", "scripts": { + "build": "run-s \"build:*\"", + "build:props": "node scripts/custom-props.js", + "build:css": "postcss src/css/styles.css --base src --dir _site/assets", + "build:eleventy": "eleventy", "serve": "run-p \"serve:*\"", "serve:props": "node scripts/custom-props.js", "serve:css": "postcss src/css/styles.css --base src --dir _site/assets -w", diff --git a/src/_includes/post.njk b/src/_includes/post.njk index a7d074a..0820fbd 100644 --- a/src/_includes/post.njk +++ b/src/_includes/post.njk @@ -6,9 +6,12 @@ eleventyComputed: description: "{{ post.yoast_head_json.description }}" ---
-
-

{{ title | safe }}

+
diff --git a/src/css/exceptions/article.css b/src/css/exceptions/article.css index 5228f02..8c09317 100644 --- a/src/css/exceptions/article.css +++ b/src/css/exceptions/article.css @@ -8,4 +8,8 @@ article { list-style: initial; padding: 0 var(--space-size-m); } + + .p-summary { + display: none; + } } \ No newline at end of file