diff options
Diffstat (limited to '')
25 files changed, 5 insertions, 415 deletions
diff --git a/_config.yml b/_config.yml index 5290a16..1586d2e 100644 --- a/_config.yml +++ b/_config.yml @@ -1,6 +1,9 @@ plugins: - jekyll-paginate - jekyll-github-metadata + - jekyll-remote-theme + +remote_theme: egor-tensin/jekyll-theme exclude: - .travis.yml diff --git a/_includes/common/bootstrap_css.html b/_includes/common/bootstrap_css.html deleted file mode 100644 index f47b856..0000000 --- a/_includes/common/bootstrap_css.html +++ /dev/null @@ -1,5 +0,0 @@ -{% if site.minified_externals %} - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/{{ site.bootstrap_version }}/css/bootstrap.min.css"> -{% else %} - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/{{ site.bootstrap_version }}/css/bootstrap.css"> -{% endif %} diff --git a/_includes/common/bootstrap_js.html b/_includes/common/bootstrap_js.html deleted file mode 100644 index e724257..0000000 --- a/_includes/common/bootstrap_js.html +++ /dev/null @@ -1,5 +0,0 @@ -{% if site.minified_externals %} - <script src="https://maxcdn.bootstrapcdn.com/bootstrap/{{ site.bootstrap_version }}/js/bootstrap.min.js"></script> -{% else %} - <script src="https://maxcdn.bootstrapcdn.com/bootstrap/{{ site.bootstrap_version }}/js/bootstrap.js"></script> -{% endif %} diff --git a/_includes/common/footer.html b/_includes/common/footer.html deleted file mode 100644 index c1d80e2..0000000 --- a/_includes/common/footer.html +++ /dev/null @@ -1,25 +0,0 @@ - </div> - </div> - <div class="footer-wrapper-collapse"> - <footer class="navbar-default"> - <div class="container"> - <div style="display: table; width: 100%;"> - <div style="display: table-row;"> - <div style="display: table-cell;"> - <div class="text-center text-muted"><small>This project is licensed under the terms of the MIT License. See <a href="{{ site.github.repository_url }}/blob/gh-pages/README.md#license">License</a> for details.</small></div> - </div> - </div> - <div style="display: table-row;"> - <div style="display: table-cell;"> - <div class="text-center text-muted"><small>This version of the page was generated on {{ site.time | date: '%-d %B %Y' }}.</small></div> - </div> - </div> - </div> - </div> - </footer> - </div> - </div> - {% include common/jquery.html %} - {% include common/bootstrap_js.html %} - </body> -</html> diff --git a/_includes/common/header.html b/_includes/common/header.html deleted file mode 100644 index a17ea71..0000000 --- a/_includes/common/header.html +++ /dev/null @@ -1,30 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <meta charset="utf-8"> - <meta http-equiv="X-UA-Compatible" content="IE=edge"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - - <title>{{ page.title }} - {{ site.project.name }} - {{ site.personal_info.name }}</title> - - {% include common/bootstrap_css.html %} - - <link rel="stylesheet" href="{{ site.baseurl }}/css/common/footer.css"> - <link rel="stylesheet" href="{{ site.baseurl }}/css/common/misc.css"> - - {% if page.custom_css %} - {% for css in page.custom_css %} - <link rel="stylesheet" href="{{ site.baseurl }}/css/{{ css }}"/> - {% endfor %} - {% endif %} - - {% include common/ie_compat.html %} - {% include common/mathjax.html %} - </head> - <body> - <div class="top-level-footer-wrapper"> - <div class="footer-wrapper-collapse"> - {% include common/navbar.html %} - </div> - <div class="footer-wrapper-expand"> - <div class="container"> diff --git a/_includes/common/ie_compat.html b/_includes/common/ie_compat.html deleted file mode 100644 index 3cef67d..0000000 --- a/_includes/common/ie_compat.html +++ /dev/null @@ -1,11 +0,0 @@ -{% if site.minified_externals %} - <!--[if lt IE 9]> - <script src="https://oss.maxcdn.com/html5shiv/{{ site.html5shiv_version }}/html5shiv.min.js"></script> - <script src="https://oss.maxcdn.com/respond/{{ site.respond_version }}/respond.min.js"></script> - <![endif]--> -{% else %} - <!--[if lt IE 9]> - <script src="https://oss.maxcdn.com/html5shiv/{{ site.html5shiv_version }}/html5shiv.js"></script> - <script src="https://oss.maxcdn.com/respond/{{ site.respond_version }}/respond.js"></script> - <![endif]--> -{% endif %} diff --git a/_includes/common/jquery.html b/_includes/common/jquery.html deleted file mode 100644 index aa6d2fd..0000000 --- a/_includes/common/jquery.html +++ /dev/null @@ -1,5 +0,0 @@ -{% if site.minified_externals %} - <script src="https://code.jquery.com/jquery-{{ site.jquery_version }}.min.js"></script> -{% else %} - <script src="https://code.jquery.com/jquery-{{ site.jquery_version }}.js"></script> -{% endif %} diff --git a/_includes/common/mathjax.html b/_includes/common/mathjax.html deleted file mode 100644 index 7110f57..0000000 --- a/_includes/common/mathjax.html +++ /dev/null @@ -1,12 +0,0 @@ -{% if page.mathjax %} - <script> -// See the README.md for explanation: -MathJax = { - tex: { - inlineMath: [['$', '$']] - } -}; - </script> - <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> - <script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script> -{% endif %} diff --git a/_includes/common/mathjax_workaround.md b/_includes/common/mathjax_workaround.md deleted file mode 100644 index 9d0a77d..0000000 --- a/_includes/common/mathjax_workaround.md +++ /dev/null @@ -1 +0,0 @@ -{::options math_engine="+nil+" /} diff --git a/_includes/common/navbar.html b/_includes/common/navbar.html deleted file mode 100644 index 6cf0e74..0000000 --- a/_includes/common/navbar.html +++ /dev/null @@ -1,33 +0,0 @@ -<nav class="navbar navbar-default navbar-static-top"> - <div class="container"> - <div class="navbar-header"> - <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> - <span class="sr-only">Toggle navigation</span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </button> - <a class="navbar-brand" href="/">{{ site.personal_info.name }}</a> - </div> - <div class="navbar-collapse collapse"> - <ul class="nav navbar-nav"> - {% assign page_list = site.pages | sort: "navbar_priority" %} - {% for node in page_list %} - {% if node.root_page %} - {% if navbar_has_root_page %} - {% continue %} - {% endif %} - {% assign navbar_has_root_page = true %} - {% endif %} - {% if node.groups contains 'navbar' %} - {% if page.url == node.url %} - <li class="active"><a href="{{ site.baseurl }}{{ node.url }}" class="active">{{ node.navbar_link }}</a></li> - {% else %} - <li><a href="{{ site.baseurl }}{{ node.url }}">{{ node.navbar_link }}</a></li> - {% endif %} - {% endif %} - {% endfor %} - </ul> - </div> - </div> -</nav> diff --git a/_includes/common/paginator.html b/_includes/common/paginator.html deleted file mode 100644 index aaad762..0000000 --- a/_includes/common/paginator.html +++ /dev/null @@ -1,23 +0,0 @@ -{% if site.posts.size != 0 %} -<ul class="pagination"> - {% if paginator.previous_page %} - <li><a href="{{ site.baseurl }}{{ paginator.previous_page_path }}"><span class="glyphicon glyphicon-chevron-left"></span> Prev</a></li> - {% else %} - <li class="disabled"><a href="#"><span class="glyphicon glyphicon-chevron-left"></span> Prev</a></li> - {% endif %} - {% for page_number in (1..paginator.total_pages) %} - {% if page_number == paginator.page %} - <li class="active"><a href="#">{{ page_number }}</a></li> - {% elsif page_number == 1 %} - <li><a href="{{ site.baseurl }}/">{{ page_number }}</a></li> - {% else %} - <li><a href="{{ site.baseurl }}{{ site.paginate_path | replace: ':num', page_number }}">{{ page_number }}</a></li> - {% endif %} - {% endfor %} - {% if paginator.next_page %} - <li><a href="{{ site.baseurl }}{{ paginator.next_page_path }}">Next <span class="glyphicon glyphicon-chevron-right"></span></a></li> - {% else %} - <li class="disabled"><a href="#">Next <span class="glyphicon glyphicon-chevron-right"></span></a></li> - {% endif %} -</ul> -{% endif %} diff --git a/_includes/common/sidebar.html b/_includes/common/sidebar.html deleted file mode 100644 index 76cced0..0000000 --- a/_includes/common/sidebar.html +++ /dev/null @@ -1,25 +0,0 @@ -<div class="row"> - <div class="col-xs-12 col-sm-6 col-md-12"> - <h2 class="h4">About</h2> - <p>{{ site.project.description }}. Feel free to contribute or contact me.</p> - <div class="list-group wide-enough"> - <a class="list-group-item" href="{{ site.github.repository_url }}"><span class="glyphicon glyphicon-home"></span> GitHub repository</a> - <a class="list-group-item" href="mailto:{{ site.personal_info.email }}"><span class="glyphicon glyphicon-envelope"></span> {{ site.personal_info.email }}</a> - </div> - </div> - <div class="col-xs-12 col-sm-6 col-md-12"> - <h2 class="h4">Latest posts</h2> - {% if site.posts.size == 0 %} - <p>Sorry, there're no posts yet.</p> - {% else %} - <div class="list-group wide-enough"> - {% for post in site.posts limit: 5 %} - <a class="list-group-item" href="{{ site.baseurl }}{{ post.url }}"> - <span class="badge"><span class="glyphicon glyphicon-time"></span> {{ post.date | date: '%-d %b %Y' }}</span> - <span class="glyphicon glyphicon-file"></span> {{ post.title }} - </a> - {% endfor %} - </div> - {% endif %} - </div> -</div> diff --git a/_includes/snippets/footer.html b/_includes/snippets/footer.html deleted file mode 100644 index d60469c..0000000 --- a/_includes/snippets/footer.html +++ /dev/null @@ -1,5 +0,0 @@ - </div> - {% if page.snippets_collapsible %} - </div> - {% endif %} -</div> diff --git a/_includes/snippets/header.html b/_includes/snippets/header.html deleted file mode 100644 index 673fc5a..0000000 --- a/_includes/snippets/header.html +++ /dev/null @@ -1,14 +0,0 @@ -{% capture snippet_basename %}{{ include.snippet_path | split:"/" | last }}{% endcapture %} -{% capture snippet_id %}{{ include.snippet_path | replace:'/','_' | replace:'.','_' }}{% endcapture %} -<div class="panel panel-default"> - <div class="panel-heading"> - {% if page.snippets_collapsible %} - <a id="{{ snippet_id }}" data-toggle="collapse" data-parent="#accordion_{{ include.section_id }}" href="#collapse_{{ snippet_id }}">{{ snippet_basename }}</a> - {% else %} - <div id="{{ snippet_id }}">{{ snippet_basename }}</div> - {% endif %} - </div> - {% if page.snippets_collapsible %} - <div id="collapse_{{ snippet_id }}" class="panel-collapse collapse"> - {% endif %} - <div class="panel-body"> diff --git a/_includes/snippets/section.html b/_includes/snippets/section.html deleted file mode 100644 index cbb778f..0000000 --- a/_includes/snippets/section.html +++ /dev/null @@ -1,25 +0,0 @@ -{% if page.snippets_collapsible %} -<div class="panel-group" id="accordion_{{ include.section_id }}"> -{% else %} -<div class="panel-group"> -{% endif %} - -{% for i in page.snippets[include.section_id] %} - {% include snippets/header.html snippet_path=i section_id=include.section_id %} - -{% capture snippet %} -```{{ page.snippets_language }} -{% include_relative {{ page.snippets_root_directory }}/{{ i }} %}``` -{% endcapture %} - -{{ snippet | markdownify }} - - {% include snippets/footer.html %} -{% endfor %} - -</div> - -{% for i in page.snippets[include.section_id] %} - {% capture snippet_id %}{{ i | replace:"/","_" | replace:".","_" }}{% endcapture %} -[{{ i }}]: #{{ snippet_id }} -{% endfor %} diff --git a/_layouts/category.html b/_layouts/category.html deleted file mode 100644 index efb34db..0000000 --- a/_layouts/category.html +++ /dev/null @@ -1,14 +0,0 @@ ---- -layout: default ---- -<h1>{{ page.title }}</h1> -<hr/> -<p>This is a list of posts in category "{{ page.category }}".</p> -{% if site.categories[page.category].size > 0 %} - <ul> - {% for post in site.categories[page.category] %} - <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%Y-%m-%d" }} — {{ post.title }}</a></li> - {% endfor %} - </ul> -{% endif %} -<p>For a complete list of posts grouped by category, please see <a href="{{ site.baseurl }}/all/">this page</a>.</p> diff --git a/_layouts/default.html b/_layouts/default.html deleted file mode 100644 index f151314..0000000 --- a/_layouts/default.html +++ /dev/null @@ -1,10 +0,0 @@ -{% include common/header.html %} -<div class="row"> - <div class="col-md-8"> - {{ content }} - </div> - <div class="col-md-4"> - {% include common/sidebar.html %} - </div> -</div> -{% include common/footer.html %} diff --git a/_layouts/note.html b/_layouts/note.html deleted file mode 100644 index 090100f..0000000 --- a/_layouts/note.html +++ /dev/null @@ -1,6 +0,0 @@ ---- -layout: default ---- -<h1>{{ page.title }}</h1> -<hr/> -{{ content }} diff --git a/_layouts/post.html b/_layouts/post.html deleted file mode 100644 index c539244..0000000 --- a/_layouts/post.html +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default ---- -<h1>{{ page.title }}</h1> -<p class="text-muted"> - <span class="glyphicon glyphicon-time"></span> Posted on {{ page.date | date: '%-d %B %Y' }} - {%- if page.category %} in <span class="glyphicon glyphicon-folder-open"></span> <a class="category" href="{{ site.baseurl }}/categories/{{ page.category | slugify: 'pretty' }}/">{{ page.category }}</a>{% endif %} -</p> -{{ content }} -<hr/> diff --git a/_posts/2020-02-24-ssh-tunnel-windows.md b/_posts/2020-02-24-ssh-tunnel-windows.md index a847ff4..3e53e22 100644 --- a/_posts/2020-02-24-ssh-tunnel-windows.md +++ b/_posts/2020-02-24-ssh-tunnel-windows.md @@ -145,8 +145,8 @@ service to restart if `ssh` fails: <div class="row"> <div class="col-xs-12 col-sm-8 col-md-6"> - <a href="{{ site.baseurl }}/img/ssh_tunnel_services.png" class="thumbnail"> - <img class="img-responsive" alt="services.msc" src="{{ site.baseurl }}/img/ssh_tunnel_services.png"> + <a href="{{ site.baseurl }}/assets/img/ssh_tunnel_services.png" class="thumbnail"> + <img class="img-responsive" alt="services.msc" src="{{ site.baseurl }}/assets/img/ssh_tunnel_services.png"> </a> </div> </div> diff --git a/img/ssh_tunnel_services.png b/assets/img/ssh_tunnel_services.png Binary files differindex 163cb24..163cb24 100644 --- a/img/ssh_tunnel_services.png +++ b/assets/img/ssh_tunnel_services.png diff --git a/css/common/footer.css b/css/common/footer.css deleted file mode 100644 index 1e05c57..0000000 --- a/css/common/footer.css +++ /dev/null @@ -1,30 +0,0 @@ -html, body { - height: 100%; - width: 100%; -} -.top-level-footer-wrapper { - height: 100%; - width: 100%; - display: table; - - /* - * Without this property, scrollbars inside <pre> elements don't work if - * display's width is less than 750px. - * God, I hate CSS. - */ - table-layout: fixed; -} -.footer-wrapper-collapse { - display: table-row; - height: 1px; -} -.footer-wrapper-expand { - display: table-row; - height: auto; -} -footer { - margin-top: 20px; - padding: 15px 0 15px; - border-width: 1px 0; - border-style: solid; -} diff --git a/css/common/misc.css b/css/common/misc.css deleted file mode 100644 index 4bf362b..0000000 --- a/css/common/misc.css +++ /dev/null @@ -1,50 +0,0 @@ -/* Utility classes to prevent blocks from expanding unreasonably. */ -.wide-enough { - max-width: 400px; -} -.wider { - max-width: 600px; -} -/* Links become blue inside of <hN> elements otherwise. */ -h1 a, -h2 a, -h3 a, -h4 a, -h5 a, -h6 a { - color: inherit; -} -/* Link captions might become too close to badges on the sidebar. */ -span.badge { - margin-left: .5em; -} -/* Add horizontal scrollbars to <pre>s and don't wrap the code inside. */ -pre { - overflow-x: auto; -} -pre code { - white-space: pre; - word-wrap: normal; -} -/* Lighter background for <pre> and <code> elements. */ -pre { - font-size: inherit; - background-color: #fbfbfb; -} -.highlight { - background-color: #fbfbfb !important; -} -code { - color: inherit; - background-color: #fbfbfb; - font-size: inherit; -} -/* Prevent <code> elements from standing out from alerts. */ -.alert code { - padding: 0; - background-color: inherit; -} -/* Don't color category links blue. */ -.text-muted a.category { - color: inherit; -} diff --git a/css/snippets.css b/css/snippets.css deleted file mode 100644 index 78fa9e9..0000000 --- a/css/snippets.css +++ /dev/null @@ -1,8 +0,0 @@ -div.panel-body pre { - margin: 0; - border: none; - border-radius: 0 0 4px 4px; -} -div.panel-body { - padding: 0; -} diff --git a/css/syntax.css b/css/syntax.css deleted file mode 100644 index 855ae2c..0000000 --- a/css/syntax.css +++ /dev/null @@ -1,66 +0,0 @@ -.highlight .hll { background-color: #ffffcc } -.highlight { background: #ffffff; } -.highlight .c { color: #aaaaaa; font-style: italic } /* Comment */ -.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ -.highlight .k { color: #0000aa } /* Keyword */ -.highlight .ch { color: #aaaaaa; font-style: italic } /* Comment.Hashbang */ -.highlight .cm { color: #aaaaaa; font-style: italic } /* Comment.Multiline */ -.highlight .cp { color: #4c8317 } /* Comment.Preproc */ -.highlight .cpf { color: #aaaaaa; font-style: italic } /* Comment.PreprocFile */ -.highlight .c1 { color: #aaaaaa; font-style: italic } /* Comment.Single */ -.highlight .cs { color: #0000aa; font-style: italic } /* Comment.Special */ -.highlight .gd { color: #aa0000 } /* Generic.Deleted */ -.highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gr { color: #aa0000 } /* Generic.Error */ -.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ -.highlight .gi { color: #00aa00 } /* Generic.Inserted */ -.highlight .go { color: #888888 } /* Generic.Output */ -.highlight .gp { color: #555555 } /* Generic.Prompt */ -.highlight .gs { font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ -.highlight .gt { color: #aa0000 } /* Generic.Traceback */ -.highlight .kc { color: #0000aa } /* Keyword.Constant */ -.highlight .kd { color: #0000aa } /* Keyword.Declaration */ -.highlight .kn { color: #0000aa } /* Keyword.Namespace */ -.highlight .kp { color: #0000aa } /* Keyword.Pseudo */ -.highlight .kr { color: #0000aa } /* Keyword.Reserved */ -.highlight .kt { color: #00aaaa } /* Keyword.Type */ -.highlight .m { color: #009999 } /* Literal.Number */ -.highlight .s { color: #aa5500 } /* Literal.String */ -.highlight .na { color: #1e90ff } /* Name.Attribute */ -.highlight .nb { color: #00aaaa } /* Name.Builtin */ -.highlight .nc { color: #00aa00; text-decoration: underline } /* Name.Class */ -.highlight .no { color: #aa0000 } /* Name.Constant */ -.highlight .nd { color: #888888 } /* Name.Decorator */ -.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ -.highlight .nf { color: #00aa00 } /* Name.Function */ -.highlight .nn { color: #00aaaa; text-decoration: underline } /* Name.Namespace */ -.highlight .nt { color: #1e90ff; font-weight: bold } /* Name.Tag */ -.highlight .nv { color: #aa0000 } /* Name.Variable */ -.highlight .ow { color: #0000aa } /* Operator.Word */ -.highlight .w { color: #bbbbbb } /* Text.Whitespace */ -.highlight .mb { color: #009999 } /* Literal.Number.Bin */ -.highlight .mf { color: #009999 } /* Literal.Number.Float */ -.highlight .mh { color: #009999 } /* Literal.Number.Hex */ -.highlight .mi { color: #009999 } /* Literal.Number.Integer */ -.highlight .mo { color: #009999 } /* Literal.Number.Oct */ -.highlight .sa { color: #aa5500 } /* Literal.String.Affix */ -.highlight .sb { color: #aa5500 } /* Literal.String.Backtick */ -.highlight .sc { color: #aa5500 } /* Literal.String.Char */ -.highlight .dl { color: #aa5500 } /* Literal.String.Delimiter */ -.highlight .sd { color: #aa5500 } /* Literal.String.Doc */ -.highlight .s2 { color: #aa5500 } /* Literal.String.Double */ -.highlight .se { color: #aa5500 } /* Literal.String.Escape */ -.highlight .sh { color: #aa5500 } /* Literal.String.Heredoc */ -.highlight .si { color: #aa5500 } /* Literal.String.Interpol */ -.highlight .sx { color: #aa5500 } /* Literal.String.Other */ -.highlight .sr { color: #009999 } /* Literal.String.Regex */ -.highlight .s1 { color: #aa5500 } /* Literal.String.Single */ -.highlight .ss { color: #0000aa } /* Literal.String.Symbol */ -.highlight .bp { color: #00aaaa } /* Name.Builtin.Pseudo */ -.highlight .fm { color: #00aa00 } /* Name.Function.Magic */ -.highlight .vc { color: #aa0000 } /* Name.Variable.Class */ -.highlight .vg { color: #aa0000 } /* Name.Variable.Global */ -.highlight .vi { color: #aa0000 } /* Name.Variable.Instance */ -.highlight .vm { color: #aa0000 } /* Name.Variable.Magic */ -.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ |