Brickspace Lab
Contact usContact ShopifyTry a theme
Keystone
Keystone
  • Keystone documentation
  • Getting started
    • Getting started with your theme
      • Theme basics
      • Theme Colors Setup
      • Theme Typography Setup
      • Theme Borders Setup
      • Product prices
  • Guides
    • Products
      • Product badges
      • Product subtitles
      • Custom content for tables
      • Replace "Add to cart"
      • Disable quick add
    • Wholesale
      • Wholesale basics
      • Account restrictions
    • Color and option swatches
    • Device specific visibility
    • Discount popups
  • Templates
    • Templates
      • Collection template
      • Product template
      • Blog template
      • Article template
  • Sections
    • Sections
      • Global Sections
        • Header
        • Footer
        • Navigation links
        • Announcement
        • Cart drawer
        • Account drawer
        • Search drawer
        • Menu drawer
      • Media & Promotional
        • Slideshow
        • Video
        • Split banner
        • Marquee
        • Image hotspot
        • Countdown
        • Discount
        • Banner
        • Slider
        • Testimonial slider
        • Search banner
      • Product & Collection Displays
        • Product grid
        • Product slider
        • Product table
        • Product comparison
        • Recently viewed
        • Collection list grid
        • Collection list slider
        • Featured product
        • Comparison table
      • Content & Marketing
        • Rich text
        • Blog posts grid
        • Testimonial grid
        • Logo list
        • Icon grid
        • Collapsible content
        • Tabs
        • Collage
      • Utility & Custom
        • Custom liquid
        • Tool tip
        • Store locater
      • Forms & CTAs
        • Email sign-up
        • Sign-up form
        • Contact form
  • General
    • General
      • Changelog
        • v1.3.0
        • v1.2.0
        • v1.1.0
        • v1.0.1
        • v1.0.0
      • Known issues and troubleshooting
      • Cloning a demo theme
Powered by GitBook
On this page
  • Keystone: Using the article template
  • Summary
  • Showing a Table of Contents
  • Create Metafield Definition
  • Update Metafield Values
  • Add Block
  • Update Headings

Was this helpful?

Edit on GitHub
  1. Templates
  2. Templates

Article template

Last updated 24 days ago

Was this helpful?

Keystone: Using the article template


Summary

The article template is used to showcase the content of a blog post. It includes features like a Table of Contents to improve navigation and readability.


Showing a Table of Contents

Create Metafield Definition

  1. Navigate to Settings > Custom Data > Blog Posts.

  2. Click Add Definition.

  3. In the Name field, type Table of contents.

  4. Ensure the Namespace and Key field is set to custom.table_of_contents.

  5. Click Select Type and choose Single line text.

  6. Select List of values.

  7. Click Save.

Update Metafield Values

  1. Navigate to the blog post you’d like to update.

  2. Scroll to the bottom and click Show all next to metafields.

  3. Enter values for each heading you want to appear in your table of contents.

Add Block

  1. In the Shopify Theme Editor, navigate to the Blog Post Template.

  2. Click Add Block under Article Main.

  3. Search and select Table of Contents.

Update Headings

  1. In Shopify, navigate to the blog post you’d like to update.

  2. Click the Show HTML icon on your blog content.

  3. Add id="HEADING-NAME" to your heading tags. The id attribute should match the table of contents.

    • Example: <h1 id="your-heading-text">Your Heading Text</h1>.

  4. Save your changes.