Jump to content

How would one code a page that shows a randomized product block or blog entry?

Recommended Posts

Hi, here's a brief description of the experience I'm hoping to create:

  • Visitor goes to a page where you they see a random post.
    • Posts have the following components
      • Post ID
      • Media (text, image, livestream, video, music, etc)
      • Source Link (if applicable, opens in new tab)
      • Backlinks  to associated posts
      • Tags - each navigates to a randomized associated post
  • From there, the visitor can only navigate using the links and tags within each piece of content.

Ideally, I would like to upload posts as MD files and just have the page display one of those at a time. If that's not possible, it seems like I could use blog pages or maybe product blocks to achieve this same thing (I would just have to take all my MD files I already have and input them one-at-a-time... which would suuuuuck).

My questions are:

  • Is there a way to make a page that just shows a randomized post?
  • Is there a way to make said post be a markdown block that pulls from an archive of markdown files?
  • How would I make a tag link point towards a randomized post with that tag?

 

Link to comment
  • Replies 0
  • Views 216
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.