mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-22 08:22:40 +00:00
Adding support for tags + isso comments
This commit is contained in:
parent
1f204bb2d9
commit
38d243106e
@ -111,6 +111,13 @@ a {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #FF6600; }
|
color: #FF6600; }
|
||||||
|
|
||||||
|
.mg-tag {
|
||||||
|
margin: 0 .5rem;
|
||||||
|
color: #FF6600; }
|
||||||
|
.mg-tag:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #FF6600; }
|
||||||
|
|
||||||
.mg-list-title {
|
.mg-list-title {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
line-height: 42px;
|
line-height: 42px;
|
||||||
|
@ -74,6 +74,8 @@
|
|||||||
|
|
||||||
{% if not MG_DISABLE_SUMMARY %}<p class="uk-article-lead" itemprop="description">{{ article.summary|striptags }}</p>{% endif %}
|
{% if not MG_DISABLE_SUMMARY %}<p class="uk-article-lead" itemprop="description">{{ article.summary|striptags }}</p>{% endif %}
|
||||||
<section class="uk-article-content" itemprop="articleBody">{{ article.content }}</section>
|
<section class="uk-article-content" itemprop="articleBody">{{ article.content }}</section>
|
||||||
|
{% set bullet = joiner(" • ") %}
|
||||||
|
<div align="right" title="Tags">{% for tag in article.tags %}{{bullet()}}<a class="mg-tag" href="{{tag.url}}"><i class="uk-icon-tag"></i>{{tag.name}}</a>{% endfor %}</div>
|
||||||
<hr class="uk-article-divider">
|
<hr class="uk-article-divider">
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
@ -94,5 +96,10 @@
|
|||||||
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
|
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if ISSO_BASE_URL %}
|
||||||
|
<script data-isso="{{ ISSO_BASE_URL }}/" src="{{ ISSO_BASE_URL }}/js/embed.dev.js"></script>
|
||||||
|
<section id="isso-thread"></section>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
<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>
|
||||||
{% if not MG_DISABLE_SUMMARY %}<p class="uk-article-lead" itemprop="description">{{ article.summary|striptags|striptags }}</p>{% endif %}
|
{% if not MG_DISABLE_SUMMARY %}<p class="uk-article-lead" itemprop="description">{{ article.summary|striptags|striptags }}</p>{% endif %}
|
||||||
<section class="uk-article-content" itemprop="articleBody">{{ article.content }}</section>
|
<section class="uk-article-content" itemprop="articleBody">{{ article.content }}</section>
|
||||||
|
{% set bullet = joiner(" • ") %}
|
||||||
|
<div align="right" title="Tags">{% for tag in article.tags %}{{bullet()}}<a class="mg-tag" href="{{tag.url}}"><i class="uk-icon-tag"></i>{{tag.name}}</a>{% endfor %}</div>
|
||||||
<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>
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
<p class="uk-article-lead" itemprop="description">{{ article.summary|striptags|striptags }}</p>
|
<p class="uk-article-lead" itemprop="description">{{ article.summary|striptags|striptags }}</p>
|
||||||
{% if not MG_DISABLE_SUMMARY %}<p>{{ ' '.join(article.content.split(' ')[:SUMMARY_MAX_LENGTH ])|striptags|striptags }}...</p>{% endif %}
|
{% if not MG_DISABLE_SUMMARY %}<p>{{ ' '.join(article.content.split(' ')[:SUMMARY_MAX_LENGTH ])|striptags|striptags }}...</p>{% endif %}
|
||||||
<a href="{{ SITEURL }}/{{ article.url }}">Read More</a>
|
<a href="{{ SITEURL }}/{{ article.url }}">Read More</a>
|
||||||
|
{% set bullet = joiner(" • ") %}
|
||||||
|
<div align="right" title="Tags">{% for tag in article.tags %}{{bullet()}}<a class="mg-tag" href="{{tag.url}}"><i class="uk-icon-tag"></i>{{tag.name}}</a>{% endfor %}</div>
|
||||||
<hr class="uk-article-divider">
|
<hr class="uk-article-divider">
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user