Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
Use Poole v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ryzhovau committed Jun 16, 2017
1 parent f2049c3 commit 50423c0
Show file tree
Hide file tree
Showing 23 changed files with 513 additions and 474 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
_gh_pages
_site
.ruby-version
.sass-cache

# Numerous always-ignore extensions
*.diff
Expand Down
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

<div class="page">
<h1 class="page-title">404: Page not found</h1>
<p class="lead">Кажется, вы пришли по кривой ссылке. Самая прямая дорога — <a href="{{ site.baseurl }}">домой</a>.</p>
<p class="lead">Кажется, вы пришли по кривой ссылке. Самая прямая дорога — <a href="{{ site.baseurl }}/">домой</a>.</p>
</div>
18 changes: 12 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
# Dependencies
#markdown: redcarpet
highlighter: rouge

# Permalinks
permalink: pretty
#relative_permalinks: true

# Setup
title: Pimp my Keenetic
tagline: 'Стартуй! Прокачай!'
description: 'Использование роутера ZyXEL за пределами веб-интерфейса, в т.ч. вместе с дополнительным ПО из репозитория <a href="http://entware.net" target="_blank">Entware-ng</a>.'
tagline: Стартуй! Прокачай!
description: 'Использование роутера ZyXEL за пределами веб-интерфейса, в т.ч. вместе с ПО из репозитория <a href="http://entware.net" target="_blank">Entware-ng</a>.'
url: http://keenetic-gi.ga
baseurl: /
baseurl: ""

author:
name: 'Alexander Ryzhov'
url: https://github.com/ryzhovau
email: [email protected]

# Assets
#
# We specify the directory for Jekyll so we can use @imports.
sass:
sass_dir: _sass
style: :compressed

paginate: 5

# Custom vars
version: 2.1.0
version: 3.0.0
github:
repo: https://github.com/PimpMyKeenetic/PimpMyKeenetic.github.io

Expand Down
15 changes: 6 additions & 9 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<head>
<meta charset="UTF-8">
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">

<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>
{% if page.title == "Home" %}
Expand All @@ -15,15 +14,13 @@
</title>

<!-- CSS -->
<link rel="stylesheet" href="{{ site.baseurl }}public/css/poole.css">
<link rel="stylesheet" href="{{ site.baseurl }}public/css/syntax.css">
<link rel="stylesheet" href="{{ site.baseurl }}public/css/hyde.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">
<link rel="stylesheet" href="{{ site.baseurl }}/styles.css">

<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.baseurl }}public/apple-touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="{{ site.baseurl }}public/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.baseurl }}/public/apple-touch-icon-precomposed.png">
<link rel="shortcut icon" href="{{ site.baseurl }}/public/favicon.ico">

<!-- RSS -->
<link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ site.baseurl }}/atom.xml">
</head>
6 changes: 3 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!DOCTYPE html>
<html lang="en-us">
<html lang="en">

{% include head.html %}

<body>

{% include sidebar.html %}

<div class="content container">
<main class="container content">
{{ content }}
</div>
</main>

<!-- Yandex.Metrika counter -->
<script type="text/javascript">
Expand Down
4 changes: 2 additions & 2 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: default
---

<div class="page">
<article class="page">
<h1 class="page-title">{{ page.title }}</h1>
{{ content }}
</div>
</article>
16 changes: 9 additions & 7 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,26 @@
layout: default
---

<div class="post">
<article class="post">
<h1 class="post-title">{{ page.title }}</h1>
<span class="post-date">{{ page.date | date_to_string }}</span>
<time datetime="{{ page.date | date_to_xmlschema }}" class="post-date">{{ page.date | date_to_string }}</time>
{{ content }}
</div>
</article>

<div class="related">
{% if site.related_posts != empty %}
<aside class="related">
<h2>Related Posts</h2>
<ul class="related-posts">
{% for post in site.related_posts limit:3 %}
<li>
<h3>
<a href="{{ post.url }}">
<a href="{{ site.baseurl }}{{ post.url }}">
{{ post.title }}
<small>{{ post.date | date_to_string }}</small>
<small><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time></small>
</a>
</h3>
</li>
{% endfor %}
</ul>
</div>
</aside>
{% endif %}
78 changes: 78 additions & 0 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
// Body resets
//
// Update the foundational and global aspects of the page.

* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

html,
body {
margin: 0;
padding: 0;
}

html {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.5;

@media (min-width: 38em) {
font-size: 18px;
}
}

body {
color: #515151;
background-color: #fff;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}

// No `:visited` state is required by default (browsers will use `a`)
a {
color: #268bd2;
text-decoration: none;

// `:focus` is linked to `:hover` for basic accessibility
&:hover,
&:focus {
text-decoration: underline;
}

strong {
color: inherit;
}
}

img {
display: block;
max-width: 100%;
margin: 0 0 1rem;
border-radius: 5px;
}

table {
margin-bottom: 1rem;
width: 100%;
font-size: 85%;
border: 1px solid #e5e5e5;
border-collapse: collapse;
}

td,
th {
padding: .25rem .5rem;
border: 1px solid #e5e5e5;
}

th {
text-align: left;
}

tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th {
background-color: #f9f9f9;
}
78 changes: 78 additions & 0 deletions _sass/_code.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
// Code
//
// Inline and block-level code snippets. Includes tweaks to syntax highlighted
// snippets from Pygments/Rouge and Gist embeds.

code,
pre {
font-family: Menlo, Monaco, "Courier New", monospace;
}

code {
padding: .25em .5em;
font-size: 85%;
color: #bf616a;
background-color: #f9f9f9;
border-radius: 3px;
}

pre {
margin-top: 0;
margin-bottom: 1rem;
}

pre code {
padding: 0;
font-size: 100%;
color: inherit;
background-color: transparent;
}

// Pygments via Jekyll
.highlight {
padding: 1rem;
margin-bottom: 1rem;
font-size: .8rem;
line-height: 1.4;
background-color: #f9f9f9;
border-radius: .25rem;

pre {
margin-bottom: 0;
overflow-x: auto;
}

.lineno {
display: inline-block; // Ensures the null space also isn't selectable
padding-right: .75rem;
padding-left: .25rem;
color: #999;
// Make sure numbers aren't selectable
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
}


// Gist via GitHub Pages
// .gist .gist-file {
// font-family: Menlo, Monaco, "Courier New", monospace !important;
// }
// .gist .markdown-body {
// padding: 15px;
// }
// .gist pre {
// padding: 0;
// background-color: transparent;
// }
// .gist .gist-file .gist-data {
// font-size: .8rem !important;
// line-height: 1.4;
// }
// .gist code {
// padding: 0;
// color: inherit;
// background-color: transparent;
// border-radius: 0;
// }
File renamed without changes.
15 changes: 15 additions & 0 deletions _sass/_layout.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Layout
//
// Styles for managing the structural hierarchy of the site.

.container {
max-width: 38rem;
padding-left: 1.5rem;
padding-right: 1.5rem;
margin-left: auto;
margin-right: auto;
}

footer {
margin-bottom: 2rem;
}
26 changes: 26 additions & 0 deletions _sass/_masthead.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Masthead
//
// Super small header above the content for site name and short description.

.masthead {
padding-top: 1rem;
padding-bottom: 1rem;
margin-bottom: 3rem;
}

.masthead-title {
margin-top: 0;
margin-bottom: 0;
color: #505050;

a {
color: #505050;
}

small {
font-size: 75%;
font-weight: 400;
color: #c0c0c0;
letter-spacing: 0;
}
}
11 changes: 11 additions & 0 deletions _sass/_message.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Messages
//
// Show alert messages to users. You may add it to single elements like a `<p>`,
// or to a parent if there are multiple elements to show.

.message {
margin-bottom: 1rem;
padding: 1rem;
color: #717171;
background-color: #f9f9f9;
}
Loading

0 comments on commit 50423c0

Please sign in to comment.