Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pydata-sphinx-theme blog example #349

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/content/examples/blog/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Blog
type: posts
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to allow post here as well, just so this reads more naturally. Currently, it's basically "the type of this page is the same as if it were in the posts category", but would be more logical to say "the type of this page is a post".

---
13 changes: 13 additions & 0 deletions doc/content/examples/blog/post1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Post one with a long-ish title we can use to compare
date: Jan 01, 2022
author: ["pydata"]
tags: ["one", "two", "three"]
type: posts
---

Here's some text for post 1!

## Post 1 section

Some more text for post 1's section
13 changes: 13 additions & 0 deletions doc/content/examples/blog/post2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Post title 2 with a longer title to compare in the UI
date: Jan 02, 2022
author: ["jupyter"]
tags: ["one", "two", "three", "four", "five", "six"]
type: posts
---

Here's some text for post 2!

## Post 2 section

Some more text for post 2's section
13 changes: 13 additions & 0 deletions doc/content/examples/blog/post3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Post three with a long-ish title we can use to compare
date: Jan 03, 2022
author: ["jupyter"]
tags: ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]
type: posts
---

Here's some text for post 3!

## Post 3 section

Some more text for post 3's section