Skip to content

Expose current page source file extension to layout #148

@edrex

Description

@edrex

I'm porting a Jekyll blog to Harp, and one feature of the current site which I don't think is possible to do with Harp currently is the edit this page link, which goes to the source file in a web based editing interface (eg github or prose.io).

current.path gives me everything but the source extension.

Any chance the source extension could be included in current somewhere? I recognize this breaks the abstraction somewhat, but I think that edit link is pretty useful.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions