mirror of
https://github.com/aljazceru/cryptoanarchywiki.github.io.git
synced 2025-12-17 21:24:20 +01:00
Release v0.0.4
This commit is contained in:
@@ -1,45 +1,48 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<h1>{{ page.title }}</h1>
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ page.title }}</h1>
|
||||
</header>
|
||||
|
||||
<span class="time">{{ page.date | date_to_string }}</span>
|
||||
{% if page.categories %}
|
||||
<span class="categories">
|
||||
<span class="categories">
|
||||
» {% for category in page.categories %}<a href="/category/{{ category }}">{{ category }}</a>{% if forloop.last == false %}, {% endif %}{% endfor %}
|
||||
</span>
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
<div class="content">
|
||||
<div class="post">{{ content }}</div>
|
||||
{% include share-page.html %}
|
||||
<div class="post">{{ content }}</div>
|
||||
{% include share-page.html %}
|
||||
</div>
|
||||
|
||||
{% assign hasSimilar = '' %}
|
||||
{% for post in site.posts %}
|
||||
{% for post in site.posts %}
|
||||
{% assign postHasSimilar = false %}
|
||||
{% for tag in post.categories %}
|
||||
{% for tag in post.categories %}
|
||||
{% for thisTag in page.categories %}
|
||||
{% if postHasSimilar == false and hasSimilar.size < 6 and post != page and tag == thisTag %}
|
||||
{% if hasSimilar.size == 0 %}
|
||||
<div class="panel-body">
|
||||
<h4>Related Posts</h4>
|
||||
<ul>
|
||||
{% endif %}
|
||||
<li class="relatedPost">
|
||||
<a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a>
|
||||
{% if post.categories %}
|
||||
(Categories: {% for category in post.categories %}<a href="/category/{{ category }}">{{ category }}</a>{% if forloop.last == false %}, {% endif %}{% endfor %})
|
||||
{% endif %}
|
||||
</li>
|
||||
{% capture hasSimilar %}{{ hasSimilar }}*{% endcapture %}
|
||||
{% assign postHasSimilar = true %}
|
||||
{% if postHasSimilar == false and hasSimilar.size < 6 and post != page and tag == thisTag %}
|
||||
{% if hasSimilar.size == 0 %}
|
||||
<div class="panel-body">
|
||||
<h4>Related Posts</h4>
|
||||
<ul>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<li class="relatedPost">
|
||||
<a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a>
|
||||
{% if post.categories %}
|
||||
(Categories: {% for category in post.categories %}<a href="/category/{{ category }}">{{ category }}</a>{% if forloop.last == false %}, {% endif %}{% endfor %})
|
||||
{% endif %}
|
||||
</li>
|
||||
{% capture hasSimilar %}{{ hasSimilar }}*{% endcapture %}
|
||||
{% assign postHasSimilar = true %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% if hasSimilar.size > 0 %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% if hasSimilar.size > 0 %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="PageNavigation">
|
||||
@@ -51,22 +54,20 @@ layout: default
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="disqus-comments">
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
/* <![CDATA[ */
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
/* <![CDATA[ */
|
||||
var disqus_shortname = "{{ site.disqus_shortname }}";
|
||||
var disqus_identifier = "{{ site.url }}_{{ page.title }}";
|
||||
var disqus_title = "{{ page.title }}";
|
||||
|
||||
var disqus_shortname = "{{ site.disqus_shortname }}";
|
||||
var disqus_identifier = "{{ site.url }}_{{ page.title }}";
|
||||
var disqus_title = "{{ page.title }}";
|
||||
|
||||
/* * * DON'T EDIT BELOW THIS LINE * * */
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
/* * * DON'T EDIT BELOW THIS LINE * * */
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
/* ]]> */
|
||||
</script>
|
||||
</div>
|
||||
</script>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user