Simplify and organize _config.yml variables
This commit is contained in:
@ -16,9 +16,7 @@
|
||||
{% if page.image.feature %}
|
||||
<div class="image-wrap">
|
||||
<img src=
|
||||
{% if page.image.feature contains 'http://' %}
|
||||
"{{ page.image.feature }}"
|
||||
{% elsif page.image.feature contains 'https://' %}
|
||||
{% if page.image.feature contains 'http' %}
|
||||
"{{ page.image.feature }}"
|
||||
{% else %}
|
||||
"{{ site.url }}/images/{{ page.image.feature }}"
|
||||
@ -42,7 +40,7 @@
|
||||
<h2 class="link-post"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="fa fa-link"></i></h2>
|
||||
{% else %}
|
||||
<h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
|
||||
<p>{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>
|
||||
<p>{{ post.excerpt | strip_html | truncate: 160 }}</p>
|
||||
{% endif %}
|
||||
</article>
|
||||
{% endfor %}
|
||||
|
@ -16,9 +16,7 @@
|
||||
{% if page.image.feature %}
|
||||
<div class="image-wrap">
|
||||
<img src=
|
||||
{% if page.image.feature contains 'http://' %}
|
||||
"{{ page.image.feature }}"
|
||||
{% elsif page.image.feature contains 'https://' %}
|
||||
{% if page.image.feature contains 'http' %}
|
||||
"{{ page.image.feature }}"
|
||||
{% else %}
|
||||
"{{ site.url }}/images/{{ page.image.feature }}"
|
||||
@ -39,7 +37,7 @@
|
||||
<div class="article-wrap">
|
||||
{{ content }}
|
||||
</div><!-- /.article-wrap -->
|
||||
{% if site.disqus_shortname and page.comments %}
|
||||
{% if site.owner.disqus-shortname and page.comments == true %}
|
||||
<section id="disqus_thread"></section><!-- /#disqus_thread -->
|
||||
{% endif %}
|
||||
</article>
|
||||
|
@ -16,9 +16,7 @@
|
||||
{% if page.image.feature %}
|
||||
<div class="image-wrap">
|
||||
<img src=
|
||||
{% if page.image.feature contains 'http://' %}
|
||||
"{{ page.image.feature }}"
|
||||
{% elsif page.image.feature contains 'https://' %}
|
||||
{% if page.image.feature contains 'http' %}
|
||||
"{{ page.image.feature }}"
|
||||
{% else %}
|
||||
"{{ site.url }}/images/{{ page.image.feature }}"
|
||||
@ -51,7 +49,7 @@
|
||||
<h2 class="link-post"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="fa fa-link"></i></h2>
|
||||
{% else %}
|
||||
<h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
|
||||
<p>{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>
|
||||
<p>{{ post.excerpt | strip_html | truncate: 160 }}</p>
|
||||
{% endif %}
|
||||
</article>
|
||||
{% endfor %}
|
||||
|
@ -16,9 +16,7 @@
|
||||
{% if page.image.feature %}
|
||||
<div class="image-wrap">
|
||||
<img src=
|
||||
{% if page.image.feature contains 'http://' %}
|
||||
"{{ page.image.feature }}"
|
||||
{% elsif page.image.feature contains 'https://' %}
|
||||
{% if page.image.feature contains 'http' %}
|
||||
"{{ page.image.feature }}"
|
||||
{% else %}
|
||||
"{{ site.url }}/images/{{ page.image.feature }}"
|
||||
@ -49,10 +47,10 @@
|
||||
<div class="article-author-bottom">
|
||||
{% include _author-bio.html %}
|
||||
</div>
|
||||
<p class="byline"><strong>{{ page.title }}</strong> was published on <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time>{% if page.modified %} and last modified on <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time>{% endif %} by <a href="{{ site.url }}/about" title="About {{ site.owner.name }}">{{ site.owner.name }}</a>.</p>
|
||||
<p class="byline"><strong>{{ page.title }}</strong> was published on <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time>{% if page.modified %} and last modified on <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time>{% endif %}.</p>
|
||||
</footer>
|
||||
</div><!-- /.article-wrap -->
|
||||
{% if site.disqus_shortname and page.comments %}
|
||||
{% if site.owner.disqus-shortname and page.comments == true %}
|
||||
<section id="disqus_thread"></section><!-- /#disqus_thread -->
|
||||
{% endif %}
|
||||
</article>
|
||||
|
Reference in New Issue
Block a user