Log in Sign up

Sorting the posts in a [tagged] folder?

I have a bunch of images from a trip to Bali in a folder tagged [Bali]. I tried adding a markdown file in the same folder (tagged "Bali" in the meta data) in order to add a headline and some textual information. It is actually rendered, however, only at the end of the page underneath the images.

Is there a way to push the text from the markdown file to the top of the page? I tried changing the date to be more recent than the images, but images seem to automatically have render priority.


a year ago, 2 replies   posts   metadata   tags   Edit question

I partly "solved" my own problem : you have to move the file that you want to sit on top (the markdown in this case) as the last file into the [tagged] folder. I assume backend-wise a date stamp is created for every file once you add a file to an archived or tagged folder.

This also means, however, that any additional asset that you add to that folder will push any prior (date stamped) content down. I tried to use the "sticky" method described elsewhere but it apparently doesn't work with the original blog template which I am using.

Answered a year ago · Edit answer

At the moment, posts are ordered by date – you managed to solve this problem yourself by manipulating the dates of the posts in the tag folder.

Perhaps a more robust way to do this is to encode the date in the file name, e.g.

0000-00-01 Caption three.jpg
0000-00-02 Caption two.jpg
0000-00-03 Caption one.jpg

Note that the 'most recent' post will appear first. I eventually plan to add other ways to sort posts (e.g. by file name) but this is not yet ready

Answered a year ago · Edit answer