From bb811b0692b0d2366fd6befc2b5b4ccbfd773b57 Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Fri, 6 Jan 2017 15:16:09 +0800 Subject: [PATCH] feat(template): simplify thumbnail logic --- TODOS.md | 1 - _app/_includes/_amsf.html | 31 ++++++++++++++----- .../themes/curtana/includes/open-graph.html | 2 +- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/TODOS.md b/TODOS.md index 00cce28b0..2c9bde98f 100644 --- a/TODOS.md +++ b/TODOS.md @@ -1,4 +1,3 @@ # Todos - Try load-grunt-config -- Cleanup thumb fetching method for `amsf_page_thumb` in `_amsf.html` diff --git a/_app/_includes/_amsf.html b/_app/_includes/_amsf.html index beea2a650..275481101 100644 --- a/_app/_includes/_amsf.html +++ b/_app/_includes/_amsf.html @@ -199,11 +199,11 @@ {% endcapture %} {% comment %} - Page thumbnail + First image in post TODO: https://regex101.com/r/N2hoxV/1 {% endcomment %} {% assign amsf_site_logo = "/logo.png" | prepend: amsf_site_base %} -{% capture amsf_post_first_image %} +{% capture amsf_page_first_image %} {% assign hero_image = page.content | match_regex: ' - +