aboutsummaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorSergey Nazaryev <sergey@nazaryev.ru>2016-11-11 22:11:04 +0300
committerSergey Nazaryev <sergey@nazaryev.ru>2016-11-11 23:02:00 +0300
commit585a141866bafe5dbb41208abf8f24b91e7e1154 (patch)
tree09a5c362cb4c59301ee751cc5982d6b980985cb1 /_layouts
downloadportfolio-585a141866bafe5dbb41208abf8f24b91e7e1154.zip
portfolio-585a141866bafe5dbb41208abf8f24b91e7e1154.tar.gz
portfolio-585a141866bafe5dbb41208abf8f24b91e7e1154.tar.bz2
Initial release
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/articles.html12
-rw-r--r--_layouts/default.html22
-rw-r--r--_layouts/page.html9
-rw-r--r--_layouts/post.html12
-rw-r--r--_layouts/projects.html72
5 files changed, 127 insertions, 0 deletions
diff --git a/_layouts/articles.html b/_layouts/articles.html
new file mode 100644
index 0000000..970a0af
--- /dev/null
+++ b/_layouts/articles.html
@@ -0,0 +1,12 @@
+---
+layout: page
+---
+
+{{ content }}
+<ul>
+{% for post in site.posts %}
+ <li>
+ <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
+ </li>
+{% endfor %}
+</ul>
diff --git a/_layouts/default.html b/_layouts/default.html
new file mode 100644
index 0000000..fb2c1d9
--- /dev/null
+++ b/_layouts/default.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8" />
+
+ <title>{% if page.title %}{{ page.title | escape }} ≡ {% endif %}{{ site.name }}</title>
+ <meta name="description" content="{{ description }}" />
+
+ <link rel="stylesheet" href="{{ "/assets/style.css" | relative_url }}">
+ <link href="{{ "/assets/favicon.ico" | relative_url }}" rel="shortcut icon" type="image/x-icon" />
+
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ </head>
+ <body>
+ <div class="page">
+ {% include nav.html %}
+ {{ content }}
+ </div>
+ <div class="clear"></div>
+ <script type="text/javascript" src={{ "/assets/age.js" | relative_url }}></script>
+ </body>
+</html>
diff --git a/_layouts/page.html b/_layouts/page.html
new file mode 100644
index 0000000..8213ddb
--- /dev/null
+++ b/_layouts/page.html
@@ -0,0 +1,9 @@
+---
+layout: default
+---
+
+<main>
+ <article class="post">
+ {{ content }}
+ </article>
+</main>
diff --git a/_layouts/post.html b/_layouts/post.html
new file mode 100644
index 0000000..5cecdd7
--- /dev/null
+++ b/_layouts/post.html
@@ -0,0 +1,12 @@
+---
+layout: default
+---
+
+<main>
+ <article class="post">
+ <header class="post-header">
+ <h1 class="post-title" itemprop="name headline">{{ page.title | escape }}</h1>
+ </header>
+ {{ content }}
+ </article>
+</main>
diff --git a/_layouts/projects.html b/_layouts/projects.html
new file mode 100644
index 0000000..909cb93
--- /dev/null
+++ b/_layouts/projects.html
@@ -0,0 +1,72 @@
+---
+layout: default
+---
+
+<main>
+ <div class="products">
+ <div class="products-inner">
+ {% for product in site.products %}
+ <section class="products__item">
+ <div class="product-photo">
+ <img src="{{ screenshot }}" />
+ <div class="product-tags">
+ {% for tag in product.tags %}
+ <span class="product-tag">{{ tag }}</span>
+ {% endfor %}
+ </div>
+ </div>
+ <div class="product-info">
+ <div class="product-header">
+ <img class="product-icon" src="{{ product.icon }}" />
+ <span class="product-title">{{ product.title }}</span>
+ </div>
+ <div class="product-description">{{ product.description }}</div>
+ <div class="product-link">
+ {% if product.url == "unknown" %}
+ <a target="_blank" class="product-link-passive">Недоступно</a>
+ {% else %}
+ <a href="{{ product.url }}" target="_blank" class="product-link-active">Перейти на сайт</a>
+ {% endif %}
+ </div>
+ </div>
+ </section>
+ {% endfor %}
+ <div class="clear"></div>
+ </div>
+ </div>
+ <div class="clear"></div>
+</main>
+<footer>
+ <div class="information">
+ <div class="additional">
+ <h2>
+ А также…
+ </h2>
+ <ul class="left">
+ <li>несколько сервисов:
+ <ul>
+ {% for service in site.services %}
+ <li><a class="product-link-active" target="_blank" href="{{ service.url }}">{{ service.title }}</a></li>
+ {% endfor %}
+ </ul>
+ </li>
+ </ul>
+ <ul class="right">
+ <li>множество мелких и/или неопубликованных сайтов:
+ <ul>
+ {% for item in site.sites %}
+ <li><a class="product-link-active" target="_blank" href="{{ item.url }}">{{ item.title }}</a></li>
+ {% endfor %}
+ </ul>
+ </li>
+ </ul>
+ <div class="clear"></div>
+ </div>
+ </div>
+ <iframe src="http://game.nazaryev.ru/game.html" id="game" class="game"></iframe>
+ <script>
+ document.querySelector("#game").onload = function() {
+ this.contentWindow.focus();
+ }
+ </script>
+</footer>