From b7f5188a6ace9197f7ddd94e77e9906cdbd96546 Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Tue, 31 Oct 2023 19:06:35 -0700 Subject: [PATCH 1/2] Add pydata-sphinx-theme blog example --- doc/content/examples/blog/_index.md | 3 +++ doc/content/examples/blog/post1.md | 17 +++++++++++++++++ doc/content/examples/blog/post2.md | 17 +++++++++++++++++ doc/content/examples/blog/post3.md | 17 +++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 doc/content/examples/blog/_index.md create mode 100644 doc/content/examples/blog/post1.md create mode 100644 doc/content/examples/blog/post2.md create mode 100644 doc/content/examples/blog/post3.md diff --git a/doc/content/examples/blog/_index.md b/doc/content/examples/blog/_index.md new file mode 100644 index 00000000..9bff67d5 --- /dev/null +++ b/doc/content/examples/blog/_index.md @@ -0,0 +1,3 @@ +--- +title: Blog +--- diff --git a/doc/content/examples/blog/post1.md b/doc/content/examples/blog/post1.md new file mode 100644 index 00000000..110733a5 --- /dev/null +++ b/doc/content/examples/blog/post1.md @@ -0,0 +1,17 @@ +--- +blogpost: true +date: Jan 01, 2022 +author: pydata +location: World +category: Manual +tags: one, two, three +language: English +--- + +# Post one with a long-ish title we can use to compare + +Here's some text for post 1! + +## Post 1 section + +Some more text for post 1's section diff --git a/doc/content/examples/blog/post2.md b/doc/content/examples/blog/post2.md new file mode 100644 index 00000000..2bff1a66 --- /dev/null +++ b/doc/content/examples/blog/post2.md @@ -0,0 +1,17 @@ +--- +blogpost: true +date: Jan 02, 2022 +author: jupyter +location: World +category: Manual +tags: one, two, three, four, five, six +language: English +--- + +# Post title 2 with a longer title to compare in the UI + +Here's some text for post 2! + +## Post 2 section + +Some more text for post 2's section diff --git a/doc/content/examples/blog/post3.md b/doc/content/examples/blog/post3.md new file mode 100644 index 00000000..b80f3e50 --- /dev/null +++ b/doc/content/examples/blog/post3.md @@ -0,0 +1,17 @@ +--- +blogpost: true +date: Jan 03, 2022 +author: jupyter +location: World +category: Manual +tags: one, two, three, four, five, six, seven, eight, nine +language: English +--- + +# Post three with a long-ish title we can use to compare + +Here's some text for post 3! + +## Post 3 section + +Some more text for post 3's section From 1720bd9446a5aabacdd70502a65fbc61ba9dd87c Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Wed, 1 Nov 2023 14:51:39 -0700 Subject: [PATCH 2/2] Update blog example for hugo --- doc/content/examples/blog/_index.md | 1 + doc/content/examples/blog/post1.md | 12 ++++-------- doc/content/examples/blog/post2.md | 12 ++++-------- doc/content/examples/blog/post3.md | 12 ++++-------- 4 files changed, 13 insertions(+), 24 deletions(-) diff --git a/doc/content/examples/blog/_index.md b/doc/content/examples/blog/_index.md index 9bff67d5..3a11e864 100644 --- a/doc/content/examples/blog/_index.md +++ b/doc/content/examples/blog/_index.md @@ -1,3 +1,4 @@ --- title: Blog +type: posts --- diff --git a/doc/content/examples/blog/post1.md b/doc/content/examples/blog/post1.md index 110733a5..e6b9fc89 100644 --- a/doc/content/examples/blog/post1.md +++ b/doc/content/examples/blog/post1.md @@ -1,15 +1,11 @@ --- -blogpost: true +title: Post one with a long-ish title we can use to compare date: Jan 01, 2022 -author: pydata -location: World -category: Manual -tags: one, two, three -language: English +author: ["pydata"] +tags: ["one", "two", "three"] +type: posts --- -# Post one with a long-ish title we can use to compare - Here's some text for post 1! ## Post 1 section diff --git a/doc/content/examples/blog/post2.md b/doc/content/examples/blog/post2.md index 2bff1a66..f77b513c 100644 --- a/doc/content/examples/blog/post2.md +++ b/doc/content/examples/blog/post2.md @@ -1,15 +1,11 @@ --- -blogpost: true +title: Post title 2 with a longer title to compare in the UI date: Jan 02, 2022 -author: jupyter -location: World -category: Manual -tags: one, two, three, four, five, six -language: English +author: ["jupyter"] +tags: ["one", "two", "three", "four", "five", "six"] +type: posts --- -# Post title 2 with a longer title to compare in the UI - Here's some text for post 2! ## Post 2 section diff --git a/doc/content/examples/blog/post3.md b/doc/content/examples/blog/post3.md index b80f3e50..60501319 100644 --- a/doc/content/examples/blog/post3.md +++ b/doc/content/examples/blog/post3.md @@ -1,15 +1,11 @@ --- -blogpost: true +title: Post three with a long-ish title we can use to compare date: Jan 03, 2022 -author: jupyter -location: World -category: Manual -tags: one, two, three, four, five, six, seven, eight, nine -language: English +author: ["jupyter"] +tags: ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine"] +type: posts --- -# Post three with a long-ish title we can use to compare - Here's some text for post 3! ## Post 3 section