Brickspace Lab
Contact usContact ShopifyTry a theme
Keystone
Keystone
  • Keystone documentation
  • Getting started
    • Theme basics
    • Theme settings
      • Colors
      • Typography
      • Borders
      • Prices
      • Quick add
  • Guides
    • Products
      • Product badges
      • Product subtitles
      • Custom content for tables
      • Replace "Add to cart"
      • Disable quick add
      • Product template
    • Collections
      • Collection template
    • Sitewide
      • Color and option swatches
      • Device specific visibility
      • Discount popups
      • Article template
      • Blog template
    • Wholesale
      • Wholesale basics
      • Account restrictions
  • Sections
    • Sitewide
      • Header
      • Footer
      • Announcement
      • Cart drawer
      • Search drawer
      • Menu drawer
      • Discount
      • Account drawer
      • Custom liquid
      • Store locater
    • Navigation
      • Navigation links
    • Content and Media
      • Banner
      • Image hotspot
      • Slideshow
      • Countdown
      • Slider
      • Video
      • Split banner
      • Testimonial slider
      • Search banner
      • Marquee
      • Rich text
      • Blog posts grid
      • Logo list
      • Icon grid
      • Collapsible content
      • Tabs
      • Collage
      • Testimonial grid
    • Products and Collections
      • Product grid
      • Product slider
      • Product table
      • Product comparison
      • Recently viewed
      • Collection list grid
      • Collection list slider
      • Featured product
      • Comparison table
    • Forms
      • Contact form
      • Email sign-up
      • Sign-up form
      • Tool tip
  • 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
      • Knit
      • Kingpin
      • Kindred
      • Kettle
      • Kaleidoscope
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. Guides
  2. Sitewide

Article template

Last updated 1 month 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.