This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign blog = site | get_page: 1234 %} <!-- Change this ID to your blog_index page's ID --> | |
{% assign articles = blog.articles | filter_articles: tags: "dont-show-stuff-with-this-label", tags_match: "none", limit: 5 %} | |
{% if articles.length > 0 %} | |
<ul> | |
{% for article in articles.all %} | |
<li><a href="{{ article.url }}">{{ article.name }}</a></li> | |
{% endfor %} | |
</ul> | |
{% else %} | |
<p>No blog posts found. Try again later, perhaps?</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% liquid | |
assign background_image_small = site | first_random_image_tagged_with: label: "backpage-1-thumbnail" | image_url: size: "1780x580" | css_background_image | |
assign background_image_large = site | first_random_image_tagged_with: label: "backpage-1-thumbnail" | image_url: size: "1780x1780" | css_background_image | |
%} | |
<style> | |
.wvu-hero { | |
{{ background_image_small }} | |
} /* /.wvu-hero */ | |
@media (min-width: 501px) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign background1 = site | first_random_image_tagged_with: label: "backpage-1-hero" | image_url: size: "1780x580" %} | |
<style> | |
.example { | |
background-image: url('{{ background1 }}'); | |
} | |
</style> | |
<!-- OR: --> | |
{% assign background2 = site | first_random_image_tagged_with: label: "backpage-1-hero" | image_url: size: "1780x580" | css_background_image %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign blog = site | get_page: 123 %} <!-- Change this ID to your blog_index page's ID --> | |
{% assign articles = blog.articles | filter_articles: tags: "featured", limit: 1 %} | |
{% for article in articles.all %} | |
<h1>{{ article.name }}</h1> | |
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign blog = site | get_page: 1234 %} <!-- Change this ID to your blog_index page's ID --> | |
{% assign articles = blog.articles | filter_articles: tags: "featured", limit: 1 %} | |
{% for article in articles.all %} | |
<article class="wvu-article"> | |
<h2 class="wvu-article__title"><a href="{{ article.url }}">{{ article.name }}</a></h2> | |
<p class="wvu-article__meta"> | |
{{ article.author.full_name }} | | |
<time class="wvu-article__date" datetime="{{ article.published_at | date_iso8601 }}">{{ article.published_at | date: '%A, %B %d, %Y' }}</time> | |
</p> <!-- /.wvu-article__meta --> | |
<div class="wvu-article__body" itemprop="articleBody"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: default | |
--- | |
{% comment %} First, we must get the ID of the current profile_index page, then assign it to a "pages" variable: {% endcomment %} | |
{% assign pages = site | get_page: page.id %} | |
{% comment %} Then we take the "pages" variable, get the children from that variable and assign it to a "profiles" variable which we iterate through: {% endcomment %} | |
{% assign profiles = pages.children %} | |
{% for profile in profiles.all %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: default | |
--- | |
<div class="wvu-container"> | |
<div id="maincontent" class="main"> | |
<h1>{{ page.name }}</h1> | |
<ul class="wvu-profile"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: default | |
--- | |
<div class="wvu-container"> | |
<div id="maincontent" class="main"> | |
<h1 class="wvu-profile__name"> | |
{% editable_region_block name: "wvu-profile__name" type: "simple" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign blog = site | get_page: 1234 %} <!-- Change this ID to your blog_index page's ID --> | |
{% assign articles = blog.articles | filter_articles: limit: 5 %} | |
{% if articles.length > 0 %} | |
<ul> | |
{% for article in articles.all %} | |
<li> | |
<a href="{{ article.url }}">{{ article.name }}</a> | |
{{ article.content['article-body'] | select_html: css_selector: 'p', limit: 2 }} | |
</li> | |
{% endfor %} |
NewerOlder