This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git
The following commit(s) were added to refs/heads/main by this push:
new bb60af63 Fix #1870: blog editorial bar and reading time on listing
cards (#1876)
bb60af63 is described below
commit bb60af63af4670d44e2e1bb1d120fd6ea89a394a
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Nov 29 10:04:18 2026 +0100
Fix #1870: blog editorial bar and reading time on listing cards (#1876)
* Fix #1870: blog editorial bar and reading time on listing cards
Rescoped from an authoring label to an editorial bar: AI-written posts are
fine as long as a human directs them until they are short and readable.
- README: add an "Editorial bar" section under "Adding new blog post"
- blog archetype: add a reminder comment pointing at it
- blog cards: show the reading time next to the byline
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Show reading time next to the date in the blog post rail
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
README.md | 10 ++++++++++
archetypes/blog.md | 6 ++++++
layouts/blog/post.html | 2 +-
layouts/blog/summary.html | 2 ++
4 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 1bc7e936..300b605e 100644
--- a/README.md
+++ b/README.md
@@ -264,6 +264,16 @@ The final generated URL would be something like
`https://camel.apache.org/blog/2
Don't forget to remove `draft: true` to publish the blog post.
+##### Editorial bar
+
+You are welcome to write a post with AI, but a human must direct it. A post
that is one-shot AI output published as-is will be sent back.
+
+- Read the whole post before you open the pull request. If you wouldn't read
it to the end yourself, it isn't done.
+- Keep iterating, by prompting or by hand, until the post is short and
readable. Cut the padding, the repetition and the paragraphs that only repeat
what came before.
+- Check every claim, number and code sample. You are the one vouching for them.
+
+Reviewers will push back on bloated posts, just as they would on bloated code.
The blog listing shows each post's reading time, so readers see the length
before they open it.
+
#### Adding new security advisory content
Use the `security-advisory` archetype to create a new markdown content file in
`content/security`:
diff --git a/archetypes/blog.md b/archetypes/blog.md
index 7157b11d..989d1e30 100644
--- a/archetypes/blog.md
+++ b/archetypes/blog.md
@@ -6,3 +6,9 @@ authors: ["YOUR GITHUB USERNAME"]
categories: ["CATEGORY FOR THE BLOG POST"]
preview: ""
---
+
+<!--
+Writing with AI is fine, but you direct it: read the whole post, keep cutting
+until it is short and readable, and check every claim and code sample.
+See "Editorial bar" in README.md. Delete this comment before publishing.
+-->
diff --git a/layouts/blog/post.html b/layouts/blog/post.html
index d9d92240..2555479d 100644
--- a/layouts/blog/post.html
+++ b/layouts/blog/post.html
@@ -29,7 +29,7 @@
</div>
{{ end }}
{{ end }}
- <time class="post-date" datetime="{{ dateFormat "2006-01-02"
.PublishDate }}">{{ dateFormat "January 2, 2006" .PublishDate }}</time>
+ <div class="post-date"><time datetime="{{ dateFormat
"2006-01-02" .PublishDate }}">{{ dateFormat "January 2, 2006" .PublishDate
}}</time> · {{ .ReadingTime }} min read</div>
</div>
<div class="post-share">
diff --git a/layouts/blog/summary.html b/layouts/blog/summary.html
index 935244f2..89020faa 100644
--- a/layouts/blog/summary.html
+++ b/layouts/blog/summary.html
@@ -23,6 +23,8 @@
{{ $headers = dict "Authorization" (printf "Basic %s"
(printf "%s:%s" $.Site.Params.GitHubUsername $.Site.Params.GitHubToken |
base64Encode)) }}
{{ end }}
{{ range $idx, $author := .Params.authors }}{{ if gt $idx 0
}}, {{ end }}<span rel="author">{{ with getJSON "https://api.github.com/users/"
$author $headers }}{{ .name | default .login }}{{ end }}</span>{{ end }}</span>
+ {{/* Show the length up front so readers can pick a post that fits
their time (#1870). */}}
+ <span>{{ .ReadingTime }} min read</span>
</div>
</div>
</article>