Your sites Log in Sign up Menu

How can I post images without... POSTing images?

I want to upload images to embed within posts. I DON'T want these images to appear as their own posts! I figured moving them into the Files folder would achieve this, but... apparently no such luck!


2 years ago, 5 replies   Improve this question

Disregard, I figured it out. If there is another way to do it without changing the filename though, I'd love to know!

Answered 2 years ago · Improve this answer

Folders whose name starts with an underscore are ignored. Just put all your images in e.g. "_Media" and you should be good.

Answered 2 years ago · Improve this answer

One feature that could be useful would be a customizable list of files/folders to ignore, beyond the default rule which ignores files or folders whose name starts with an underscore. For example, you could do something like:

Files
*.png
Assets

Which would ignore anything in a folder called Assets or Files, as well as any PNG files. This ignore list would follow similar rules to a gitignore.

What are your thoughts? I'm willing to consider adding this. There are aesthetic benefits to such a list (I find underscores ugly).

The main downside would be that folders might no longer be interoperable (i.e. sharable between people, producing the same result on different blogs) unless the configuration was stored in the folder, which I'm reluctant to do for aesthetic reasons. Is this a significant downside? Maybe not but worth thinking about.

Answered 2 years ago · Improve this answer

Agreed with the idea that we can have another option to ignore without setting underscore!

Answered 2 years ago · Improve this answer

The main downside would be that folders might no longer be interoperable (i.e. sharable between people, producing the same result on different blogs)

Wouldn't this be a prime candidate for package.json or another .json in the templates directory? I understand that this would change the dynamic based on the template used, but that'd be a feature, not a bug. If I am switching to, say, an album/photos template I might want entirely different handling

Answered 2 years ago · Improve this answer