Github page clones from TETRIS-2000 repositionnary
This commit is contained in:
18
_includes/collecttags.html
Normal file
18
_includes/collecttags.html
Normal file
@ -0,0 +1,18 @@
|
||||
{% assign rawtags = "" %}
|
||||
{% for post in site.posts %}
|
||||
{% assign ttags = post.tags | join:'|' | append:'|' %}
|
||||
{% assign rawtags = rawtags | append:ttags %}
|
||||
{% endfor %}
|
||||
{% assign rawtags = rawtags | split:'|' | sort %}
|
||||
|
||||
{% assign site.tags = "" %}
|
||||
{% for tag in rawtags %}
|
||||
{% if tag != "" %}
|
||||
{% if tags == "" %}
|
||||
{% assign tags = tag | split:'|' %}
|
||||
{% endif %}
|
||||
{% unless tags contains tag %}
|
||||
{% assign tags = tags | join:'|' | append:'|' | append:tag | split:'|' %}
|
||||
{% endunless %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
18
_includes/disqus-comments.html
Normal file
18
_includes/disqus-comments.html
Normal file
@ -0,0 +1,18 @@
|
||||
{% if page.comments %}
|
||||
<!-- Add Disqus comments. -->
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
||||
var disqus_shortname = '{{ site.disqus }}'; // required: replace example with your forum shortname
|
||||
var disqus_identifier = "{{ page.url | replace:'index.html','' }}";
|
||||
|
||||
/* * * 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>
|
||||
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
|
||||
{% endif %}
|
12
_includes/disqus-counts.html
Normal file
12
_includes/disqus-counts.html
Normal file
@ -0,0 +1,12 @@
|
||||
{% if site.comments == true and site.disqus != '' %}
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = '{{ site.disqus }}';
|
||||
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
{% endif %}
|
9
_includes/footer.html
Normal file
9
_includes/footer.html
Normal file
@ -0,0 +1,9 @@
|
||||
<footer class="footer-distributed">
|
||||
<div class="container">
|
||||
<div class="footer">
|
||||
<p>{{ site.author }} © {{ site.copyright }}</p>
|
||||
<p> Theme: <a href="https://github.com/streetturtle/jekyll-clean-dark">jekyll-clean-dark by streetturtle</a></p>
|
||||
{% include social.html %}
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
15
_includes/google-analytics.html
Normal file
15
_includes/google-analytics.html
Normal file
@ -0,0 +1,15 @@
|
||||
{% if site.google_analytics_key %}
|
||||
<script type="text/javascript">
|
||||
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', '{{ site.google_analytics_key }}']);
|
||||
_gaq.push(['_trackPageview']);
|
||||
|
||||
(function() {
|
||||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
|
||||
</script>
|
||||
{% endif %}
|
61
_includes/header.html
Normal file
61
_includes/header.html
Normal file
@ -0,0 +1,61 @@
|
||||
{% if site.tags != "" %}
|
||||
{% include collecttags.html %}
|
||||
{% endif %}
|
||||
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{ site.name }}{% if page.title %} | {{ page.title }} {% endif %}</title>
|
||||
<meta name="theme-color" content="#222222"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script src="{{ '/assets/js/jquery.min.js' | relative_url }}"></script>
|
||||
<script src="{{ '/assets/js/popper.min.js' | relative_url }}"></script>
|
||||
<script src="{{ '/assets/js/bootstrap4.min.js' | relative_url }}"></script>
|
||||
<script src="{{ '/assets/js/header.js' | relative_url }}"></script>
|
||||
<script src="{{ '/assets/css/svg-with-js/js/fontawesome-all.js' | relative_url }}"></script>
|
||||
<link href="{{ '/assets/css/bootstrap4.min.css' | relative_url }}" rel="stylesheet">
|
||||
<link href="{{ '/assets/css/theme.css' | relative_url }}" rel="stylesheet">
|
||||
<link href="{{ '/assets/css/syntax.css' | relative_url }}" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
{% include google-analytics.html %}
|
||||
{% include yandex-metrica.html %}
|
||||
|
||||
<script type="text/javascript">
|
||||
WebFontConfig = {
|
||||
google: {
|
||||
families: ['Ubuntu::latin']
|
||||
}
|
||||
};
|
||||
(function () {
|
||||
var wf = document.createElement('script');
|
||||
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
|
||||
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
|
||||
wf.type = 'text/javascript';
|
||||
wf.async = 'true';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(wf, s);
|
||||
})();
|
||||
</script>
|
||||
|
||||
<nav class="navbar navbar-expand-lg fixed-top">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="{{ '' | relative_url }}/">{{ site.name }}</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse"
|
||||
data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup"
|
||||
aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
|
||||
<div class="navbar-nav">
|
||||
<a class="nav-item nav-link" href="{{ '' | relative_url }}/">/home</a>
|
||||
<a class="nav-item nav-link" href="{{ 'archive.html' | relative_url }}">/archive</a>
|
||||
<a class="nav-item nav-link" href="{{ 'tags.html' | relative_url }}">/tags</a>
|
||||
<a class="nav-item nav-link" href="{{ 'about.html' | relative_url }}">/about</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
74
_includes/share.html
Normal file
74
_includes/share.html
Normal file
@ -0,0 +1,74 @@
|
||||
{% if page.share == true %}
|
||||
|
||||
<div class="share-bar">
|
||||
<ul class="share-buttons">
|
||||
{% if site.share.facebook %}
|
||||
<li class="share-facebook">
|
||||
<a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url | append: page.url}}"
|
||||
target="_blank" title="Share on Facebook">
|
||||
<span class="fa-layers fa-fw fa-2x">
|
||||
<i class="far fa-square"></i>
|
||||
<i class="fab fa-facebook-f" data-fa-transform="shrink-8"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share.twitter %}
|
||||
<li class="share-twitter">
|
||||
<a href="https://twitter.com/intent/tweet?url={{ site.url | append: page.url }}&text={{page.title}}" target="_blank" title="Tweet">
|
||||
<span class="fa-layers fa-fw fa-2x">
|
||||
<i class="far fa-circle"></i>
|
||||
<i class="fab fa-twitter" data-fa-transform="shrink-8"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share.gplus %}
|
||||
<li class="share-google-plus">
|
||||
<a href="https://plus.google.com/share?url={{ site.url | append: page.url}}" target="_blank" title="Share on Google Plus">
|
||||
<span class="fa-layers fa-fw fa-2x">
|
||||
<i class="far fa-circle"></i>
|
||||
<i class="fab fa-google-plus-g" data-fa-transform="shrink-8"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share.linkedin %}
|
||||
<li class="share-linkedin">
|
||||
<a href="http://www.linkedin.com/shareArticle?mini=true&url={{ site.url | append: page.url }}&title={{page.title}}&summary={{page.description}}&source=" target="_blank" title="Share on LinkedIn">
|
||||
<span class="fa-layers fa-fw fa-2x">
|
||||
<i class="far fa-circle"></i>
|
||||
<i class="fab fa-linkedin-in" data-fa-transform="shrink-8"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share.pinterest %}
|
||||
<li class="share-pinterest">
|
||||
<a href="http://pinterest.com/pin/create/button/?url{{ site.url | append: page.url }}=&description={{page.description}}" target="_blank" title="Pin it">
|
||||
<span class="fa-layers fa-fw fa-2x">
|
||||
<i class="far fa-circle"></i>
|
||||
<i class="fab fa-pinterest-p" data-fa-transform="shrink-8"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share.email %}
|
||||
<li class="share-envelope">
|
||||
<a href="mailto:?&subject={{page.title}}&body={{page.description | append: ' ' | append: site.url | append: page.url}}" target="_blank" title="Email">
|
||||
<span class="fa-layers fa-fw fa-2x">
|
||||
<i class="far fa-circle"></i>
|
||||
<i class="far fa-envelope" data-fa-transform="shrink-8"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
20
_includes/sidebar.html
Normal file
20
_includes/sidebar.html
Normal file
@ -0,0 +1,20 @@
|
||||
<div class="sidebar ">
|
||||
<h2>Recent Posts</h2>
|
||||
<ul>
|
||||
{% for post in site.posts limit:5 %}
|
||||
<li><a href="{{ post.url | relative_url }}">{{ post.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="sidebar">
|
||||
<h2>Tags</h2>
|
||||
<ul class="sideBarTags">
|
||||
{% assign tags = (site.tags | sort:0) %}
|
||||
{% for tag in tags %}
|
||||
<li>
|
||||
<a href="{{ '/tag/' | append: tag[0] | relative_url }}" data-toggle="tooltip" data-placement="right" title="{{ tag[1].size }}">
|
||||
<span>{{tag[0] }}</span></a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
41
_includes/social.html
Normal file
41
_includes/social.html
Normal file
@ -0,0 +1,41 @@
|
||||
<h6>Follow me</h6>
|
||||
|
||||
<ul class="social-media">
|
||||
|
||||
{% if site.social.github %}
|
||||
<li>
|
||||
<a title="{{ site.social.github }} on Github" href="https://github.com/{{ site.social.github }}" target="_blank"><i class="fab fa-github fa-2x"></i></a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if site.social.stackoverflow %}
|
||||
<li>
|
||||
<a title="{{ site.social.stackoverflow }} on StackOverflow" href="https://stackoverflow.com/users/{{ site.social.stackoverflow }}" target="_blank"><i class="fab fa-stack-overflow fa-2x"></i></a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if site.social.linkedin %}
|
||||
<li>
|
||||
<a title="{{ site.social.linkedin }} on LinkedIn" href="https://www.linkedin.com/in/{{ site.social.linkedin }}" target="_blank"><i class="fab fa-linkedin fa-2x"></i></a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if site.social.instagram %}
|
||||
<li>
|
||||
<a title="{{ site.social.instagram }} on Instagram" href="https://instagram.com/{{ site.social.instagram }}" target="_blank"><i class="fab fa-instagram fa-2x"></i></a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if site.social.lastfm %}
|
||||
<li>
|
||||
<a title="{{ site.social.lastfm }} on Last.fm" href="https://www.lastfm.com/user/{{ site.social.lastfm }}" target="_blank"><i class="fab fa-lastfm fa-2x"></i></a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if site.social.rss %}
|
||||
<li>
|
||||
<a title="{{ site.social.rss }} RSS" href="{{ site.social.rss | relative_url }}" target="_blank"><i class="fas fa-rss fa-2x"></i></a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
</ul>
|
85
_includes/toc.html
Normal file
85
_includes/toc.html
Normal file
@ -0,0 +1,85 @@
|
||||
{% capture tocWorkspace %}
|
||||
{% comment %}
|
||||
Version 1.0.4
|
||||
https://github.com/allejo/jekyll-toc
|
||||
|
||||
"...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe
|
||||
|
||||
Usage:
|
||||
{% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %}
|
||||
|
||||
Parameters:
|
||||
* html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
|
||||
|
||||
Optional Parameters:
|
||||
* sanitize (bool) : false - when set to true, the headers will be stripped of any HTML in the TOC
|
||||
* class (string) : '' - a CSS class assigned to the TOC
|
||||
* id (string) : '' - an ID to assigned to the TOC
|
||||
* h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored
|
||||
* h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored
|
||||
* ordered (bool) : false - when set to true, an ordered list will be outputted instead of an unordered list
|
||||
* item_class (string) : '' - add custom class for each list item; has support for '%level%' placeholder, which is the current heading level
|
||||
|
||||
Output:
|
||||
An ordered or unordered list representing the table of contents of a markdown block. This snippet will only generate the table of contents and will NOT output the markdown given to it
|
||||
{% endcomment %}
|
||||
|
||||
{% capture my_toc %}{% endcapture %}
|
||||
{% assign orderedList = include.ordered | default: false %}
|
||||
{% assign minHeader = include.h_min | default: 1 %}
|
||||
{% assign maxHeader = include.h_max | default: 6 %}
|
||||
{% assign nodes = include.html | split: '<h' %}
|
||||
{% assign firstHeader = true %}
|
||||
|
||||
{% capture listModifier %}{% if orderedList %}1.{% else %}-{% endif %}{% endcapture %}
|
||||
|
||||
{% for node in nodes %}
|
||||
{% if node == "" %}
|
||||
{% continue %}
|
||||
{% endif %}
|
||||
|
||||
{% assign headerLevel = node | replace: '"', '' | slice: 0, 1 | times: 1 %}
|
||||
|
||||
{% if headerLevel < minHeader or headerLevel > maxHeader %}
|
||||
{% continue %}
|
||||
{% endif %}
|
||||
|
||||
{% if firstHeader %}
|
||||
{% assign firstHeader = false %}
|
||||
{% assign minHeader = headerLevel %}
|
||||
{% endif %}
|
||||
|
||||
{% assign indentAmount = headerLevel | minus: minHeader | add: 1 %}
|
||||
{% assign _workspace = node | split: '</h' %}
|
||||
|
||||
{% assign _idWorkspace = _workspace[0] | split: 'id="' %}
|
||||
{% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
|
||||
{% assign html_id = _idWorkspace[0] %}
|
||||
|
||||
{% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
|
||||
{% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
|
||||
|
||||
{% assign space = '' %}
|
||||
{% for i in (1..indentAmount) %}
|
||||
{% assign space = space | prepend: ' ' %}
|
||||
{% endfor %}
|
||||
|
||||
{% unless include.item_class == blank %}
|
||||
{% capture listItemClass %}{:.{{ include.item_class | replace: '%level%', headerLevel }}}{% endcapture %}
|
||||
{% endunless %}
|
||||
|
||||
{% capture my_toc %}{{ my_toc }}
|
||||
{{ space }}{{ listModifier }} {{ listItemClass }} [{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}](#{{ html_id }}){% endcapture %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% if include.class %}
|
||||
{% capture my_toc %}{:.{{ include.class }}}
|
||||
{{ my_toc | lstrip }}{% endcapture %}
|
||||
{% endif %}
|
||||
|
||||
{% if include.id %}
|
||||
{% capture my_toc %}{: #{{ include.id }}}
|
||||
{{ my_toc | lstrip }}{% endcapture %}
|
||||
{% endif %}
|
||||
{% endcapture %}{% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }}
|
3
_includes/yandex-metrica.html
Normal file
3
_includes/yandex-metrica.html
Normal file
@ -0,0 +1,3 @@
|
||||
{% if site.yandex_metrica %}
|
||||
<!-- Your counter code should go here -->
|
||||
{% endif %}
|
Reference in New Issue
Block a user