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

Repeated title annoyance #92

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

rdenadai
Copy link
Contributor

Sorry, had to open a small fix for this ... I added the trim_start_matches at the end of the options, but probably would be better to become first and then truncate (just to keep the 100 chars correct).

Also, if you find it useful I create this branch which checks for a description field in the metadata of .md (just like title). I don't like because it needs to reprocess the html to get the description.

But ...
https://github.com/rochacbruno/marmite/compare/main...rdenadai:repeated-title-annoyance-complex?expand=1

@rochacbruno rochacbruno merged commit 0e2be0c into rochacbruno:main Oct 29, 2024
1 check passed
@rochacbruno
Copy link
Owner

Regarding the description, it can be added as an optional field to the content Option, if not defined it is None.

On template we can check for description, or if None, use the current approach of taking the excerpt.

We can move that to a template macro if becomes too complex.

Some SSGs also have the concept of stop marks

# Title 

This is the description of the content,

<-- more -->

Content continues.

Then on processing it splits the part before the marker to
ahow on the home page.

@rdenadai
Copy link
Contributor Author

Ok, cool ... I'll fix the branch to follow the approach you comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants