Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Overwriting blog/index.html #293

@liborjelinek

Description

@liborjelinek

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions