-isolated snippet assign gg_noindex_list = gg_noindex_handles | split: ',' assign gg_article_noindex = false if request.page_type == 'article' for gg_h in gg_noindex_list if request.path contains gg_h assign gg_article_noindex = true endif endfor endif if request.page_type == 'product' assign og_type = 'product' elsif request.page_type == 'article' assign og_type = 'article' # Topic-correct social image for blog articles (real featured image when set, else theme asset) capture gg_article_image render 'gauntlet-article-image-url', article: article, width: 1200 endcapture assign gg_article_image = gg_article_image | strip # Ensure an absolute https URL for crawlers (image_url returns a protocol-relative //cdn URL) assign gg_art_img_prefix = gg_article_image | slice: 0, 2 if gg_art_img_prefix == '//' assign gg_article_image = gg_article_image | prepend: 'https:' endif elsif request.page_type == 'password' assign og_url = request.origin endif %}