mirror of
https://github.com/aljazceru/cryptoanarchywiki.github.io.git
synced 2025-12-17 05:04:21 +01:00
Release v0.0.4
This commit is contained in:
11
_layouts/compress.html
Normal file
11
_layouts/compress.html
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
# Jekyll layout that compresses HTML
|
||||
# v3.0.2
|
||||
# http://jch.penibelst.de/
|
||||
# https://github.com/penibelst/jekyll-compress-html
|
||||
# © 2014–2015 Anatol Broder
|
||||
# MIT License
|
||||
---
|
||||
|
||||
{% capture _LINE_FEED %}
|
||||
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
||||
@@ -1,166 +1,169 @@
|
||||
---
|
||||
layout: compress
|
||||
---
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="shortcut icon" href="/static/img/favicon.ico" />
|
||||
<title>{% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.author }}{% endif %}</title>
|
||||
<meta name="author" content="{{ site.author }}" />
|
||||
<meta name="description" content="{% if page.title %}{{ page.title }}{% else %}{{ site.description }}{% endif %}" />
|
||||
<meta name="keywords" content="{% if page.title %}{{ page.title }}, {{ site.title }}, {% for categ in page.categories %}{{ categ }}{% if forloop.last == false %}, {% endif %}{% endfor %}{% else %}{{ site.title }}, {% for category in site.categories %}{% capture categories_slug %}{{ category | first }}{% endcapture %}{% for categ in categories_slug %}{{ categ }}{% endfor %}{% if forloop.last == false %}, {% endif %}{% endfor %}{% endif %}" />
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed.xml">
|
||||
<meta content="{{ site.share.fb_appid }}" property="fb:app_id">
|
||||
<meta content="{{ site.title }}" property="og:site_name">
|
||||
|
||||
<link rel="shortcut icon" href="/static/img/favicon.ico" />
|
||||
<title>{% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.author }}{% endif %}</title>
|
||||
<meta name="author" content="{{ site.author }}" />
|
||||
<meta name="description" content="{% if page.title %}{{ page.title }}{% else %}{{ site.description }}{% endif %}" />
|
||||
<meta name="keywords" content="{% if page.title %}{{ page.title }}, {{ site.title }}, {% for categ in page.categories %}{{ categ }}{% if forloop.last == false %}, {% endif %}{% endfor %}{% else %}{{ site.title }}, {% for category in site.categories %}{% capture categories_slug %}{{ category | first }}{% endcapture %}{% for categ in categories_slug %}{{ categ }}{% endfor %}{% if forloop.last == false %}, {% endif %}{% endfor %}{% endif %}" />
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed.xml">
|
||||
{% if page.title %}
|
||||
<meta content="{{ page.title }}" property="og:title">
|
||||
<meta content="article" property="og:type">
|
||||
{% else %}
|
||||
<meta content="{{ site.title }}" property="og:title">
|
||||
<meta content="website" property="og:type">
|
||||
{% endif %}
|
||||
|
||||
<meta content="{{ site.share.fb_appid }}" property="fb:app_id">
|
||||
<meta content="{{ site.title }}" property="og:site_name">
|
||||
{% if page.title %}
|
||||
<meta content="{{ page.title }}" property="og:title">
|
||||
{% else %}
|
||||
<meta content="{{ site.title }}" property="og:title">
|
||||
{% endif %}
|
||||
{% if page.title %}
|
||||
<meta content="article" property="og:type">
|
||||
{% else %}
|
||||
<meta content="website" property="og:type">
|
||||
{% endif %}
|
||||
{% if page.description %}
|
||||
<meta content="{{ page.description }}" property="og:description">
|
||||
{% else %}
|
||||
<meta content="{{ site.description }}" property="og:description">
|
||||
{% endif %}
|
||||
{% if page.url %}
|
||||
<meta content="{{ site.url }}{{ page.url }}" property="og:url">
|
||||
{% endif %}
|
||||
{% if page.date %}
|
||||
<meta content="{{ page.date | date_to_xmlschema }}" property="article:published_time">
|
||||
<meta content="{{ site.url }}/about/" property="article:author">
|
||||
{% endif %}
|
||||
{% if page.image %}
|
||||
<meta content="{{ site.url }}/static/img/posts/{{ page.image }}" property="og:image">
|
||||
{% else %}
|
||||
<meta content="{{ site.url }}/static/img/logo-high-resolution.png" property="og:image">
|
||||
{% endif %}
|
||||
{% if page.categories %}
|
||||
{% for category in page.categories limit:1 %}
|
||||
<meta content="{{ category }}" property="article:section">
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if page.tags %}
|
||||
{% for tag in page.tags %}
|
||||
<meta content="{{ tag }}" property="article:tag">
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if page.description %}
|
||||
<meta content="{{ page.description }}" property="og:description">
|
||||
{% else %}
|
||||
<meta content="{{ site.description }}" property="og:description">
|
||||
{% endif %}
|
||||
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="@{{ site.share.twitter_username }}">
|
||||
<meta name="twitter:creator" content="@{{ site.share.twitter_username }}">
|
||||
{% if page.title %}
|
||||
<meta name="twitter:title" content="{{ page.title }}">
|
||||
{% else %}
|
||||
<meta name="twitter:title" content="{{ site.title }}">
|
||||
{% endif %}
|
||||
{% if page.url %}
|
||||
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}">
|
||||
{% endif %}
|
||||
{% if page.description %}
|
||||
<meta name="twitter:description" content="{{ page.description }}">
|
||||
{% else %}
|
||||
<meta name="twitter:description" content="{{ site.description }}">
|
||||
{% endif %}
|
||||
{% if page.header-img %}
|
||||
<meta name="twitter:image:src" content="{{ site.url }}/{{ page.header-img }}">
|
||||
{% endif %}
|
||||
{% if page.url %}
|
||||
<meta content="{{ site.url }}{{ page.url }}" property="og:url">
|
||||
{% endif %}
|
||||
|
||||
<!-- Font awesome icons -->
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
|
||||
{% if page.date %}
|
||||
<meta content="{{ page.date | date_to_xmlschema }}" property="article:published_time">
|
||||
<meta content="{{ site.url }}/about/" property="article:author">
|
||||
{% endif %}
|
||||
|
||||
<!-- syntax highlighting CSS -->
|
||||
<link rel="stylesheet" href="/static/css/syntax.css">
|
||||
{% if page.image %}
|
||||
<meta content="{{ site.url }}/static/img/posts/{{ page.image }}" property="og:image">
|
||||
{% else %}
|
||||
<meta content="{{ site.url }}/static/img/logo-high-resolution.png" property="og:image">
|
||||
{% endif %}
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
|
||||
{% if page.categories %}
|
||||
{% for category in page.categories limit:1 %}
|
||||
<meta content="{{ category }}" property="article:section">
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="//fonts.googleapis.com/css?family=Roboto+Condensed:400,300italic,300,400italic,700&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
||||
{% if page.tags %}
|
||||
{% for tag in page.tags %}
|
||||
<meta content="{{ tag }}" property="article:tag">
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="/static/css/super-search.css">
|
||||
<link rel="stylesheet" href="/static/css/thickbox.css">
|
||||
<link rel="stylesheet" href="/static/css/projects.css">
|
||||
<link rel="stylesheet" href="/static/css/main.css">
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="@{{ site.share.twitter_username }}">
|
||||
<meta name="twitter:creator" content="@{{ site.share.twitter_username }}">
|
||||
|
||||
<!-- Google Analytics -->
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', '{{ site.google_analytics }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
</head>
|
||||
{% if page.title %}
|
||||
<meta name="twitter:title" content="{{ page.title }}">
|
||||
{% else %}
|
||||
<meta name="twitter:title" content="{{ site.title }}">
|
||||
{% endif %}
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="col-sm-3">
|
||||
<div class="fixed-condition">
|
||||
<a href="/"><img id="about" src="/static/img/avatar.jpg" height="75px" width="75px" /></a>
|
||||
<h1 class="author-name">{{ site.author }}</h1>
|
||||
{% if site.about %}
|
||||
<div id="about">
|
||||
{{ site.about }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if page.url %}
|
||||
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}">
|
||||
{% endif %}
|
||||
|
||||
<div class="social">
|
||||
<ul>
|
||||
{% for link in site.social %}
|
||||
<li><a href="{{ link.link }}" target="_blank"><i class="fa {{ link.icon }}"></i></a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% if page.description %}
|
||||
<meta name="twitter:description" content="{{ page.description }}">
|
||||
{% else %}
|
||||
<meta name="twitter:description" content="{{ site.description }}">
|
||||
{% endif %}
|
||||
|
||||
<div class="search" id="js-search">
|
||||
<input type="text" placeholder="(sitemap)~$ type to search" class="search__input form-control" id="js-search__input">
|
||||
<ul class="search__results" id="js-search__results"></ul>
|
||||
</div>
|
||||
<hr />
|
||||
{% if page.header-img %}
|
||||
<meta name="twitter:image:src" content="{{ site.url }}/{{ page.header-img }}">
|
||||
{% endif %}
|
||||
|
||||
<strong>Navigation</strong><br />
|
||||
» <a href="/">Home</a> <br />
|
||||
{% for i in site.urls %}
|
||||
» <a class="about" href="{{ i.url }}">{{ i.text }}</a><br />
|
||||
{% endfor %}
|
||||
</div><!-- end /.fixed-condition -->
|
||||
<!-- Font awesome icons -->
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
|
||||
<!-- syntax highlighting CSS -->
|
||||
<link rel="stylesheet" href="/static/css/syntax.css">
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
|
||||
<!-- Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:400,300italic,300,400italic,700&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="/static/css/super-search.css">
|
||||
<link rel="stylesheet" href="/static/css/thickbox.css">
|
||||
<link rel="stylesheet" href="/static/css/projects.css">
|
||||
<link rel="stylesheet" href="/static/css/main.css">
|
||||
|
||||
<!-- Google Analytics -->
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', '{{ site.google_analytics }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="col-sm-3">
|
||||
<div class="fixed-condition">
|
||||
<a href="/"><img class="profile-avatar" src="/static/img/avatar.jpg" height="75px" width="75px" /></a>
|
||||
<h1 class="author-name">{{ site.author }}</h1>
|
||||
{% if site.about %}
|
||||
<div class="profile-about">
|
||||
{{ site.about }}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="social">
|
||||
<ul>
|
||||
{% for link in site.social %}
|
||||
<li><a href="{{ link.link }}" target="_blank"><i class="fa {{ link.icon }}"></i></a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="search" id="js-search">
|
||||
<input type="text" placeholder="(sitemap)~$ type to search" class="search__input form-control" id="js-search__input">
|
||||
<ul class="search__results" id="js-search__results"></ul>
|
||||
</div>
|
||||
<hr />
|
||||
<ul class="sidebar-nav">
|
||||
<strong>Navigation</strong>
|
||||
<li><a href="/">Home</a></li>
|
||||
{% for i in site.urls %}
|
||||
<li><a class="about" href="{{ i.url }}">{{ i.text }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<!-- end /.fixed-condition -->
|
||||
</div>
|
||||
<div class="col-sm-8 col-offset-1 main-layout">
|
||||
{{ content }}
|
||||
<footer>
|
||||
© {{ site.author }}
|
||||
{% if site.github %}
|
||||
- <a href="{{ site.github }}">{{ site.github }}</a> - Powered by Jekyll.
|
||||
{% endif %}
|
||||
<div class="btn-github" style="float:right;">
|
||||
<iframe src="https://ghbtns.com/github-btn.html?user=agusmakmun&repo=agusmakmun.github.io&type=star&count=true" frameborder="0" scrolling="0" width="85" height="20px"></iframe>
|
||||
<iframe src="https://ghbtns.com/github-btn.html?user=agusmakmun&repo=agusmakmun.github.io&type=fork&count=true" frameborder="0" scrolling="0" width="85" height="20px"></iframe>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- end /.col-sm-8 -->
|
||||
</div>
|
||||
<!-- end /.container -->
|
||||
|
||||
<div class="col-sm-8 col-offset-1">
|
||||
{{ content }}
|
||||
|
||||
<footer>
|
||||
© {{ site.author }}
|
||||
{% if site.github %}
|
||||
- <a href="{{ site.github }}">{{ site.github }}</a> - Powered by Jekyll.
|
||||
{% endif %}
|
||||
|
||||
<div class="btn-github" style="float:right;">
|
||||
<iframe src="https://ghbtns.com/github-btn.html?user=agusmakmun&repo=agusmakmun.github.io&type=star&count=true" frameborder="0" scrolling="0" width="85" height="20px"></iframe>
|
||||
<iframe src="https://ghbtns.com/github-btn.html?user=agusmakmun&repo=agusmakmun.github.io&type=fork&count=true" frameborder="0" scrolling="0" width="85" height="20px"></iframe>
|
||||
</div>
|
||||
</footer>
|
||||
</div><!-- end /.col-sm-8 -->
|
||||
</div><!-- end /.container -->
|
||||
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
|
||||
<script src="/static/js/bootstrap.min.js"></script>
|
||||
<script src="/static/js/super-search.js"></script>
|
||||
<script src="/static/js/thickbox-compressed.js"></script>
|
||||
<script src="/static/js/projects.js"></script>
|
||||
</body>
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
|
||||
<script src="/static/js/bootstrap.min.js"></script>
|
||||
<script src="/static/js/super-search.js"></script>
|
||||
<script src="/static/js/thickbox-compressed.js"></script>
|
||||
<script src="/static/js/projects.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -2,14 +2,11 @@
|
||||
layout: default
|
||||
---
|
||||
<article class="post">
|
||||
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ page.title }}</h1>
|
||||
<hr />
|
||||
</header>
|
||||
|
||||
<div class="post-content">
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1,49 +1,49 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<header id="post-header">
|
||||
<h1 id="post-subtitle">Articles by category: {{ page.categories }}</h1>
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">Articles by category: {{ page.categories }}</h1>
|
||||
</header>
|
||||
|
||||
<div id="post-content">
|
||||
<hr />
|
||||
{% for category in site.categories %}
|
||||
{% capture category_slug %}{{ category | first }}{% endcapture %}
|
||||
{% for c_slug in category_slug %}
|
||||
{% if c_slug == page.categories %}
|
||||
<button class="btn btn-sm btn-default active">{{ c_slug }}</button>
|
||||
{% else %}
|
||||
<a href="/category/{{ c_slug }}" class="btn btn-sm btn-default">{{ c_slug }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<div class="post-content">
|
||||
<hr />
|
||||
{% for category in site.categories %}
|
||||
{% capture category_slug %}{{ category | first }}{% endcapture %}
|
||||
{% for c_slug in category_slug %}
|
||||
{% if c_slug == page.categories %}
|
||||
<button class="btn btn-sm btn-default active">{{ c_slug }}</button>
|
||||
{% else %}
|
||||
<a href="/category/{{ c_slug }}" class="btn btn-sm btn-default">{{ c_slug }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<hr />
|
||||
{% endfor %}
|
||||
|
||||
{% if site.categories[page.categories] %}
|
||||
{% for post in site.categories[page.categories] %}
|
||||
{% capture post_year %}{{ post.date | date: '%Y' }}{% endcapture %}
|
||||
{% if forloop.first %}
|
||||
<h4>{{ post_year }}</h4><div class="list-group">
|
||||
{% endif %}
|
||||
|
||||
{% if forloop.first == false %}
|
||||
{% assign previous_index = forloop.index0 | minus: 1 %}
|
||||
{% capture previous_post_year %}{{ site.categories[page.categories][previous_index].date | date: '%Y' }}{% endcapture %}
|
||||
{% if post_year != previous_post_year %}
|
||||
</div><h4>{{ post_year }}</h4><div class="list-group">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<ul class="posts">
|
||||
<li><a href="{{ post.url }}">{{ post.title }}</a> » <i><span>{{ post.date | date_to_string }}</span></i></li>
|
||||
</ul>
|
||||
<hr />
|
||||
{% if site.categories[page.categories] %}
|
||||
{% for post in site.categories[page.categories] %}
|
||||
{% capture post_year %}{{ post.date | date: '%Y' }}{% endcapture %}
|
||||
{% if forloop.first %}
|
||||
<h4>{{ post_year }}</h4>
|
||||
<div class="list-group">
|
||||
{% endif %}
|
||||
|
||||
{% if forloop.last %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<p>There are no posts in this categories.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if forloop.first == false %}
|
||||
{% assign previous_index = forloop.index0 | minus: 1 %}
|
||||
{% capture previous_post_year %}{{ site.categories[page.categories][previous_index].date | date: '%Y' }}{% endcapture %}
|
||||
{% if post_year != previous_post_year %}
|
||||
</div>
|
||||
<h4>{{ post_year }}</h4>
|
||||
<div class="list-group">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<ul class="posts">
|
||||
<li><a href="{{ post.url }}">{{ post.title }}</a> » <i><span>{{ post.date | date_to_string }}</span></i></li>
|
||||
</ul>
|
||||
{% if forloop.last %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<p>There are no posts in this categories.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
layout: default
|
||||
---
|
||||
<article class="post">
|
||||
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ page.title }}</h1>
|
||||
<hr />
|
||||
@@ -13,51 +12,55 @@ layout: default
|
||||
|
||||
{% assign p_array = "" | split:"|" %}
|
||||
{% for project in site.project %}
|
||||
{% capture p_slug %}{{ project.url | split:"/" | last }},{{ project.url }}{% endcapture %}
|
||||
{% assign p_slug_arr = p_slug | split:"," %}
|
||||
{% assign p_array = p_array | push: p_slug_arr %}
|
||||
{% capture p_slug %}{{ project.url | split:"/" | last }},{{ project.url }}{% endcapture %}
|
||||
{% assign p_slug_arr = p_slug | split:"," %}
|
||||
{% assign p_array = p_array | push: p_slug_arr %}
|
||||
{% endfor %}
|
||||
|
||||
<div class="projects">
|
||||
{% include project_tags.html %}
|
||||
{% for i in site.data.projects %}
|
||||
<div class="project-item project-outer" data-tags='{{ i.tags | jsonify | downcase }}'>
|
||||
<div class="project-inner">
|
||||
<a href="/static/projects/{{ i.image }}" class="thickbox">
|
||||
<div class="project-img bordered" style="background-image: url('/static/projects/{{ i.image }}');"></div>
|
||||
</a>
|
||||
{% assign p_url = nil %}
|
||||
{% for pr in p_array %}
|
||||
{% if pr contains i.slug %}
|
||||
{% assign p_url = pr[1] %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if p_url == nil %}{% assign p_url = i.url %}{% endif %}
|
||||
{% if p_url %}<a class="project-detail" href="{{ p_url }}">{% endif %}
|
||||
<h3 class="project-headlines">{{ i.name }}</h3>
|
||||
{% if p_url %} </a> {% endif %}
|
||||
<div class="project-content">
|
||||
<div class="tag-holder">
|
||||
{% if i.tags %}
|
||||
{% for j in i.tags %}
|
||||
<span class="tags tag-filter" data-tag="{{ j | downcase }}"><a href="#{{ j }}">{{ j }}</a></span>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="project-footer">
|
||||
{% if i.url %}
|
||||
<a href="{{ i.url }}" class="project-link" target="_blank"><i class="fa fa-globe"></i> View</a>
|
||||
{% endif %}
|
||||
<span class="project-timeline">{{ i.date }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
</div>
|
||||
{% include project_tags.html %}
|
||||
|
||||
{% for i in site.data.projects %}
|
||||
<div class="project-item project-outer" data-tags='{{ i.tags | jsonify | downcase }}'>
|
||||
<div class="project-inner">
|
||||
<a href="/static/projects/{{ i.image }}" class="thickbox">
|
||||
<div class="project-img bordered" style="background-image: url('/static/projects/{{ i.image }}');"></div>
|
||||
</a>
|
||||
{% assign p_url = nil %}
|
||||
{% for pr in p_array %}
|
||||
{% if pr contains i.slug %}
|
||||
{% assign p_url = pr[1] %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% endfor %}
|
||||
{% if p_url == nil %}{% assign p_url = i.url %}{% endif %}
|
||||
{% if p_url %}
|
||||
<a class="project-detail" href="{{ p_url }}">
|
||||
{% endif %}
|
||||
<h3 class="project-headlines">{{ i.name }}</h3>
|
||||
{% if p_url %}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
<div class="project-content">
|
||||
<div class="tag-holder">
|
||||
{% if i.tags %}
|
||||
{% for j in i.tags %}
|
||||
<span class="tags tag-filter" data-tag="{{ j | downcase }}"><a href="#{{ j }}">{{ j }}</a></span>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="project-footer">
|
||||
{% if i.url %}
|
||||
<a href="{{ i.url }}" class="project-link" target="_blank"><i class="fa fa-globe"></i> View</a>
|
||||
{% endif %}
|
||||
<span class="project-timeline">{{ i.date }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
@@ -2,30 +2,27 @@
|
||||
layout: default
|
||||
---
|
||||
<article class="post">
|
||||
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ page.title }}</h1>
|
||||
{% for project in site.data.projects %}
|
||||
{% if project.slug == page.slug %}
|
||||
<span class="time">{{ project.date }}</span> »
|
||||
{% for tag in project.tags %}
|
||||
<span class="tags tag-filter">{{ tag }}</span>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if project.slug == page.slug %}
|
||||
<span class="time">{{ project.date }}</span> »
|
||||
{% for tag in project.tags %}
|
||||
<span class="tags tag-filter">{{ tag }}</span>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</header>
|
||||
|
||||
<div class="content">
|
||||
{% for project in site.data.projects %}
|
||||
{% if project.slug == page.slug %}
|
||||
<a href="/static/projects/{{ project.image }}" class="thickbox">
|
||||
<img src="/static/projects/{{ project.image }}" alt="{{ page.title }}" title="{{ page.title }}">
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if project.slug == page.slug %}
|
||||
<a href="/static/projects/{{ project.image }}" class="thickbox">
|
||||
<img src="/static/projects/{{ project.image }}" alt="{{ page.title }}" title="{{ page.title }}">
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<hr />
|
||||
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user