Type something to search...

Step 2: Advanced Features

Collections, formatting, stock images, and customization options

Tip

Prerequisites: Complete Step 1: Getting Started first. You should have a working local site before continuing.

What You’ll Learn

By the end of this guide, you’ll know how to:

  • ✅ Create media collections (audio, images, video)
  • ✅ Customize collection display with indexStyle
  • ✅ Use stock images for development
  • ✅ Customize CTAText and collection defaults
  • ✅ Understand all available options

Time Required: 20-30 minutes


Creating Collections

Collections organize related content - blog posts, photo galleries, audio mixes, or videos.

Add a Collection

The easiest way to create collections:

  1. In the Explorer sidebar, find your .astrolock folder
  2. Right-click on .astrolock
  3. Select “Astrolock: Create New Collection”
  4. Follow the interactive wizard
Collection name (e.g., "mixes", "photos"): photos
Display name (shown in menus): Photo Gallery

Content type:
  › Text - Blog posts and articles
    Audio - Music, podcasts, mixes
    Images - Photos and galleries
    Video - Tutorials, vlogs

File extension (e.g., jpg, mp3): jpg

When you finish, Astrolock automatically:

  • Creates content/photos/ directory
  • Registers the collection in .astrolock/astrolock.yaml
  • Creates content/photos/-index.md (collection index page)
  • Creates content/photos/sample-photos.md (example to get you started)