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

fix: duplicate titles #60

Closed
wants to merge 1 commit into from
Closed

fix: duplicate titles #60

wants to merge 1 commit into from

Conversation

leohhhn
Copy link
Collaborator

@leohhhn leohhhn commented Jan 10, 2024

Description

This PR fixes duplicate titles.

Duplicate titles appear because gnoblog-cli extracts the title of the post from the frontmatter and displays it at the top of the page - the fix is to remove the title from all post bodies, and just have it in the frontmatter. below is an example of how the issue looks on test3.

Screenshot 2024-01-10 at 18 37 02

@leohhhn leohhhn requested review from moul and a team as code owners January 10, 2024 17:38
Copy link
Contributor

@waymobetta waymobetta left a comment

Choose a reason for hiding this comment

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

Just need to fix a few broken links but looks good otherwise

@leohhhn
Copy link
Collaborator Author

leohhhn commented Jan 19, 2024

Do not merge this PR: blocking it to first handle #56, #62 & #63.

Copy link
Member

@moul moul left a comment

Choose a reason for hiding this comment

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

LGTM, but I prefer removing the title from front matter and extracting it from markdown. This will improve the default rendering of markdown files.

Let's merge your current fix, but I'll open an issue to make the opposite move.

Edit: see #56

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

Successfully merging this pull request may close these issues.

3 participants