Blogs – Email Growth Society

Blogs

{% assign featuredBlogs = 'Blog1,Blog2' | split:',' %} {%- for featuredBlog in featuredBlogs -%} {%- if blogs[featuredBlog].articles -%} {%- if featuredArticles != blank -%} {% assign featuredArticles = featuredArticles | concat:blogs[featuredBlog].articles %} {%- else -%} {% assign featuredArticles = blogs[featuredBlog].articles %} {%- endif -%} {%- endif -%} {%- endfor -%} {%- if featuredArticles -%} {%- assign featuredArticles = featuredArticles | sort:'published_at' | reverse -%} {%- assign whichblog = "Blog1" -%}{%- if article.url contains '/blog2/' -%}{%- assign whichblog = "Blog2" -%}{%- endif -%} {%- for article in featuredArticles -%} { {%- endfor -%} {%- endif -%}
Date Image Article Title Blog
{{ article.published_at | date: "%Y-%m-%d" }} {% if article.image %}{{ article.image.alt }}% endif %}{{ article.title }} {% if whichblog == "Blog1" %}{% else %}{% endif %}