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

Overwriting blog/index.html #293

Open
liborjelinek opened this issue Oct 21, 2024 · 0 comments
Open

Overwriting blog/index.html #293

liborjelinek opened this issue Oct 21, 2024 · 0 comments

Comments

@liborjelinek
Copy link
Contributor

Describe the bug

I am happy Ablog user, but recently I'have noticed possible bug. Let me to explain.

Custom landing page

I wish custom blog landing page with "pinned" (topped) posts first, followed by all posts. I created blog/index.md with two postlist directives.

# Tech writer at work blog

<div class="top-posts">
:::{postlist} 5
:category: top
:excerpts:
:format: "{title} on {date} 🏷️ {tags}"
:::
</div>

## Recent Posts

<div class="recent-posts">
:::{postlist}
:excerpts:
:format: "{title} on {date} 🏷️ {tags}"
:::
</div>

So this is our Tech writer at work blog homepage:

CleanShot 2024-10-21 at 12 30 55@2x

Custom landing page is overwritten

All is fine, but recently, I was playing with blog_path. When set to blog (or omitted since blog is its default value), my custom blog/index.html is overwritten with some default landing page with "All Posts" heading.

CleanShot 2024-10-21 at 12 38 58@2x

Is it a bug?

I am not sure that this is expected behavior. If so, is it documented? Where is template which controls this default landing page?

To Reproduce

No response

Screenshots

No response

System Details

dependencies = [
    "ablog==0.11.11",
    "sphinx==8.1.3",
    "myst-parser[linkify]==4.0.0",
    "sphinx-sitemap==2.6.0",
    "sphinx-design==0.6.1",
    "sphinx_reredirects==0.1.5"
]

Installation method

No response

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

No branches or pull requests

2 participants