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

Create separate permalink option for media files #30

Closed
pmarsceill opened this issue Mar 15, 2018 · 2 comments
Closed

Create separate permalink option for media files #30

pmarsceill opened this issue Mar 15, 2018 · 2 comments

Comments

@pmarsceill
Copy link

I host my site's source files in src/, so my media filename env var is:
MICROPUB_MEDIA_FILES_STYLE=\"src/assets/microblog/:year-:month-:day-:filesslug\"

but when the site is compiled, the media files are available via URL at this kind of format:
https://example.com/assets/microblog/:year-:month-:day-:filesslug

The current implementation assumes that these two are equivalent and uses the former in the YAML frontmatter of the post file that it generates, when I would like it to use the latter. It would be nice if there were two options (similar to MICROPUB_FILENAME_STYLE and MICROPUB_PERMALINK_STYLE) for media files... One for the filename (used when uploading media) and one for the permalink (used for referencing the files via URL after the site is deployed).

@keithjgrant
Copy link
Contributor

I would love to have this, too

@voxpelli
Copy link
Owner

Related: voxpelli/node-format-microformat#3

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

3 participants