Blog Post Excerpt All

Open
#167 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
content

Research direction

Start by locating the implementation and configuration for post_auto_excerpt, then inspect how excerpts and the main page's default five posts are rendered. Define the full-post behavior, including how it interacts with excerpts, and verify the result on a blog main page.

Written by the indexing model from the issue text.

Description

Enhancement Help Wanted
Describe the feature

post_auto_excerpt defaults to 1 and shows the first paragraph of each post. 0 doesn't show anything, just a link.

Many blogs show the full post on the main page, which isn't unreasonable for the default 5 posts.

I set this to 100, so it basically does that, but this also seems like a typical use case, so it might help to have something easy to handle this. Everything I found related to excerpts assumed that I either wanted a short excerpt or no excerpt at all. Maybe useful for subpages, but seems odd for the main page.

I have a work around for now as mentioned, but looking at Google Analytics, it was obvious this was confusing the vast majority of people.

Proposed solution

I think there are probably a few ways to handle this, but not knowing the internals it is hard to say. Even an option like :fullposts: might make sense (though you'd need to decide what to do when someone does that and :excerpts:)

A

Dominant language
Python
Stars
196
Forks
64
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sunpy/ablog

All issues in sunpy/ablog

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.