Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

Serve static files from the pages directory structure #10

Open
tardisx opened this issue Jan 3, 2014 · 8 comments
Open

Serve static files from the pages directory structure #10

tardisx opened this issue Jan 3, 2014 · 8 comments

Comments

@tardisx
Copy link

tardisx commented Jan 3, 2014

I'd like to store static files (images) with the documents that refer to them, and be able to refer to them without any path specification:

<img src="cat.gif">
@memowe
Copy link
Owner

memowe commented Jan 3, 2014

The dump command copies static files (by default in public) in the dump directory. See Contenticious::Commands line 21. :)

@memowe memowe closed this as completed Jan 3, 2014
@tardisx
Copy link
Author

tardisx commented Jan 3, 2014

OK, I think I did not make myself very clear :-)

If I have pages/blog/2014/01/04/amazing-cat-I-saw-today.md which has a reference to 'cat.gif', it would be nice to be able to store cat.gif in pages/blog/2014/01/04 and then be able to use a relative link like:

<img src="cat.gif">

Rather than having to remember what files in public are referenced by which pages.

@memowe
Copy link
Owner

memowe commented Jan 3, 2014

Do you have an easy way to implement this?

@tardisx
Copy link
Author

tardisx commented Jan 3, 2014

I haven't looked, but I'm happy to do so, if you don't feel I'm barking up the wrong tree here in terms of the idea.

@memowe
Copy link
Owner

memowe commented Jan 3, 2014

Feel free to fork and try things out! If I like it, I'll merge it back. :)

@tardisx
Copy link
Author

tardisx commented Jan 4, 2014

Hi,

This is pretty rough and ready:

tardisx/contenticious@memowe:master...master

But it does work.

Unless you hate it for some reason, I will keep going and fix up the unit tests and documentation :-)

@memowe
Copy link
Owner

memowe commented Jan 4, 2014

Hi! I'm a bit unsure about the new complexity but don't stop, it looks interesting! :) Go on, fix the tests and try it out. Contenticious isn't my main focus these days so don't be sad if I don't pull it immediately.

@memowe
Copy link
Owner

memowe commented Nov 14, 2018

@tardisx Any news about tests and documentation? :) I'll open a pull request for discussion.

@memowe memowe reopened this Nov 14, 2018
@memowe memowe changed the title It would be nice to be able to store static files in the pages/ directory structure Serve static files from the pages directory structure Feb 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants