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

sourceuri shows targeturi #729

Open
bmarwell opened this issue Oct 9, 2021 · 1 comment
Open

sourceuri shows targeturi #729

bmarwell opened this issue Oct 9, 2021 · 1 comment

Comments

@bmarwell
Copy link

bmarwell commented Oct 9, 2021

Hi,

sourceuri shows the relative path to the generated file, not to the source file, e.g.:
sourceuri: blog/2021/v1.8.0.html

I'd expect:
sourceuri: blog/2021/v1.8.0.adoc

@bmarwell
Copy link
Author

bmarwell commented Oct 9, 2021

Workaround (freemarker):

          <#if (content.sourceuri)??>
            <#assign
              extension="${content.file[content.file?last_index_of('.')..]}"
              sourcefile="${content.sourceuri?replace('.html', extension)}"
            />

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

No branches or pull requests

1 participant