Skip to content

Attached file issue with suffix slug and GitHub #156

Open

Description

@item4

For this issue, I made test repo. Please see /content/blog/first-post/ directory and /models/blog.ini file in src and gh-pages both branch.

I use suffix in slug. so my post url is like /2016-02-23/Hello_Website.html and attached file on /2016-02-23/_Hello_Website.html/.

There is some problem.

1. I want to attach my image in my post.

![img](logo.png)

But build result do not link correctly. respect ......./_Hello_Website.html/logo.png but ......./Hello_Website.html/logo.png given.

2. GitHub pages can not reach to files in filename-like-named directories.

See repo and real deploy url.


I need some solution for avoid this issue.

Activity

  1. mitsuhiko commented on Feb 23, 2016

    @mitsuhiko
    Member

    That is kinda expected behavior unfortunately. The markdown link resolver is not aware of attachments really, it just builds relative to the current URL. Not sure if it makes sense fixing this because it removes functionality I'm sure.

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

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