No summary duplication + fixing tipue paths + not using Oswald font on articles content

This commit is contained in:
Lucas Cimon 2017-08-07 02:32:45 +02:00
parent 83ad438420
commit 33d690f035
5 changed files with 8 additions and 7 deletions

View File

@ -16,6 +16,9 @@ a {
.uk-article-meta > .uk-icon-comment { .uk-article-meta > .uk-icon-comment {
color: #444; } color: #444; }
.uk-article-content {
font: 400 14px / 20px "Helvetica Neue",Helvetica,Arial,sans-serif; }
.uk-icon-twitter { .uk-icon-twitter {
color: #00B0ED; } color: #00B0ED; }

View File

@ -10,6 +10,6 @@ $(document).ready(function() {
'showURL': false, 'showURL': false,
'descriptiveWords': 75, 'descriptiveWords': 75,
'highlightEveryTerm': true, 'highlightEveryTerm': true,
'contentLocation': '/tipue_search.json' 'contentLocation': './tipue_search.json'
}); });
}); });

View File

@ -73,7 +73,7 @@
{% endif %} {% endif %}
<p class="uk-article-lead" itemprop="description">{{ article.summary|striptags }}</p> <p class="uk-article-lead" itemprop="description">{{ article.summary|striptags }}</p>
<section itemprop="articleBody">{{ article.content }}</section> <section class="uk-article-content" itemprop="articleBody">{{ article.content }}</section>
<hr class="uk-article-divider"> <hr class="uk-article-divider">
</article> </article>

View File

@ -89,7 +89,7 @@
{% if not DISABLE_SEARCH %} {% if not DISABLE_SEARCH %}
<div class="uk-panel uk-panel-box"> <div class="uk-panel uk-panel-box">
<form class="uk-search" action="search.html" data-uk-search> <form class="uk-search" action="{{ SITEURL }}/search.html" data-uk-search>
<input class="uk-search-field tipue_search" type="search" name="q" id="tipue_search_input" autocomplete="off" placeholder="Search..."> <input class="uk-search-field tipue_search" type="search" name="q" id="tipue_search_input" autocomplete="off" placeholder="Search...">
</form> </form>
</div> </div>
@ -167,7 +167,7 @@
<div class="uk-offcanvas-bar"> <div class="uk-offcanvas-bar">
{% if not DISABLE_SEARCH %} {% if not DISABLE_SEARCH %}
<form class="uk-search" action="search.html" data-uk-search> <form class="uk-search" action="{{ SITEURL }}/search.html" data-uk-search>
<input class="uk-search-field" type="search" name="q" id="tipue_search_input" autocomplete="off" placeholder="Search..."> <input class="uk-search-field" type="search" name="q" id="tipue_search_input" autocomplete="off" placeholder="Search...">
</form> </form>
{% endif %} {% endif %}

View File

@ -11,8 +11,7 @@
<a href="{{ SITEURL }}/{{ article.url }}" class="uk-article-title uk-link-muted" itemprop="name">{{ article.title }}</a> <a href="{{ SITEURL }}/{{ article.url }}" class="uk-article-title uk-link-muted" itemprop="name">{{ article.title }}</a>
<p class="uk-article-meta"><time datetime="{{ article.date.strftime('%Y-%m-%d') }}" itemprop="datePublished">{{ article.locale_date }}</time><a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>{% if DISQUS_SITENAME %} • <br class="uk-visible-small"><i class="uk-icon-comment"></i> <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread" itemprop="discussionUrl"></a>{% endif %}</p> <p class="uk-article-meta"><time datetime="{{ article.date.strftime('%Y-%m-%d') }}" itemprop="datePublished">{{ article.locale_date }}</time><a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>{% if DISQUS_SITENAME %} • <br class="uk-visible-small"><i class="uk-icon-comment"></i> <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread" itemprop="discussionUrl"></a>{% endif %}</p>
</p> </p>
<p class="uk-article-lead" itemprop="description">{{ article.summary|striptags }}</p> <section class="uk-article-content" itemprop="articleBody">{{ article.content }}</section>
<section itemprop="articleBody">{{ article.content }}</section>
<a href="{{ SITEURL }}/{{ article.url }}#disqus_thread"></a> <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread"></a>
<hr class="uk-article-divider"> <hr class="uk-article-divider">
</article> </article>
@ -22,7 +21,6 @@
<p class="uk-article-meta"><time datetime="{{ article.date.strftime('%Y-%m-%d') }}" itemprop="datePublished">{{ article.locale_date }}</time><a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>{% if DISQUS_SITENAME %} • <br class="uk-visible-small"><i class="uk-icon-comment"></i> <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread" itemprop="discussionUrl"></a>{% endif %}</p> <p class="uk-article-meta"><time datetime="{{ article.date.strftime('%Y-%m-%d') }}" itemprop="datePublished">{{ article.locale_date }}</time><a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>{% if DISQUS_SITENAME %} • <br class="uk-visible-small"><i class="uk-icon-comment"></i> <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread" itemprop="discussionUrl"></a>{% endif %}</p>
</p> </p>
<p class="uk-article-lead" itemprop="description">{{ article.summary|striptags }}</p> <p class="uk-article-lead" itemprop="description">{{ article.summary|striptags }}</p>
<p>{{ ' '.join(article.content.split(' ')[0:75])|striptags }}...</p>
<a href="{{ SITEURL }}/{{ article.url }}">Read More</a> <a href="{{ SITEURL }}/{{ article.url }}">Read More</a>
<hr class="uk-article-divider"> <hr class="uk-article-divider">
</article> </article>