Compare commits
No commits in common. "f797e1718b5c9e50128063ce516a1042a58909dd" and "acb99ca6f169b2bf7bb11f8ebabde959190b457d" have entirely different histories.
f797e1718b
...
acb99ca6f1
@ -5,6 +5,16 @@ sculpin:
|
|||||||
sculpin_content_types:
|
sculpin_content_types:
|
||||||
posts:
|
posts:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
albums:
|
||||||
|
type: path
|
||||||
|
path: _albums
|
||||||
|
singular_name: album
|
||||||
|
layout: internal
|
||||||
|
permalink: albums/:basename/
|
||||||
|
publish_drafts: false
|
||||||
|
enabled: true
|
||||||
|
taxonomies:
|
||||||
|
- tags
|
||||||
articles:
|
articles:
|
||||||
type: path
|
type: path
|
||||||
path: _articles
|
path: _articles
|
||||||
|
@ -85,7 +85,7 @@ class SiteMapGenerator implements DataProviderInterface, EventSubscriberInterfac
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists('draft', $data) && $data['draft']) {
|
if ($data['draft']) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
61
source/_albums/white-sea.html.twig
Normal file
61
source/_albums/white-sea.html.twig
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
---
|
||||||
|
title: Белое море - 2011, 2013 года
|
||||||
|
description: Фотографии с поездок на Белое море в самую короткую ночь в году
|
||||||
|
---
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/9222/46045840.28/0_98765_7fc8895f_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/9222/46045840.28/0_98765_7fc8895f_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/9312/46045840.28/0_98748_e6ab013e_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/9312/46045840.28/0_98748_e6ab013e_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/9231/46045840.28/0_98749_b4fb46a9_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/9231/46045840.28/0_98749_b4fb46a9_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/9305/46045840.28/0_9874a_afbf859b_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/9305/46045840.28/0_9874a_afbf859b_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/9171/46045840.28/0_98747_7d4ca4c9_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/9171/46045840.28/0_98747_7d4ca4c9_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/9217/46045840.28/0_9874b_e42da6b4_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/9217/46045840.28/0_9874b_e42da6b4_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/9228/46045840.28/0_9874f_9af8aa8f_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/9228/46045840.28/0_9874f_9af8aa8f_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/9301/46045840.28/0_9875a_d96bfbd7_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/9301/46045840.28/0_9875a_d96bfbd7_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/9324/46045840.28/0_98756_13fee051_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/9324/46045840.28/0_98756_13fee051_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
{% endblock %}
|
67
source/_albums/winter-fog.html.twig
Normal file
67
source/_albums/winter-fog.html.twig
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
---
|
||||||
|
title: Зимний туман
|
||||||
|
description: Фотографи набережной Седова, сделанные в туманный зимний день
|
||||||
|
---
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/5821/46045840.24/0_6f263_3e1f58f6_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/5821/46045840.24/0_6f263_3e1f58f6_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/4419/46045840.24/0_6f25c_397758c6_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/4419/46045840.24/0_6f25c_397758c6_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/5313/46045840.24/0_6f256_e62604eb_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/5313/46045840.24/0_6f256_e62604eb_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/5313/46045840.24/0_6f257_5eaf214c_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/5313/46045840.24/0_6f257_5eaf214c_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/4614/46045840.24/0_6f259_3caa7abe_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/4614/46045840.24/0_6f259_3caa7abe_XXXL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a class="photo-link" href="https://img-fotki.yandex.ru/get/4419/46045840.24/0_6f25a_4f1fa9ef_XXXL.jpg">
|
||||||
|
<img class="photo-image" src="https://img-fotki.yandex.ru/get/4419/46045840.24/0_6f25a_4f1fa9ef_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/4614/46045840.24/0_6f25b_8a14fb24_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/4614/46045840.24/0_6f25b_8a14fb24_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/4419/46045840.24/0_6f25d_b4fd58d3_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/4419/46045840.24/0_6f25d_b4fd58d3_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/4614/46045840.24/0_6f25f_b60733cd_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/4614/46045840.24/0_6f25f_b60733cd_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://img-fotki.yandex.ru/get/4418/46045840.24/0_6f255_c458f69c_XXXL.jpg">
|
||||||
|
<img src="https://img-fotki.yandex.ru/get/4418/46045840.24/0_6f255_c458f69c_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
{% endblock %}
|
78
source/_assets/about/about.vue
Normal file
78
source/_assets/about/about.vue
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
<template>
|
||||||
|
<section class="app">
|
||||||
|
<p class="fact-index">Факт {{ factIndex }}</p>
|
||||||
|
<p class="note">{{ fact }}</p>
|
||||||
|
<button @click.prevent="next" class="button-next">
|
||||||
|
Узнать чуть лучше
|
||||||
|
</button>
|
||||||
|
</section>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import _ from 'underscore';
|
||||||
|
|
||||||
|
const NOTES = [
|
||||||
|
'Люблю фильм "Три идиота".',
|
||||||
|
'Люблю кататься на велосипеде.',
|
||||||
|
'Люблю читать фантастические книги.',
|
||||||
|
'Люблю шоколад.',
|
||||||
|
'На день рождения ко мне можно прийти без подарка.',
|
||||||
|
'Не люблю пьяных людей.',
|
||||||
|
'Предпочитаю ходить в кино на 2D-сеансы.',
|
||||||
|
'Проехал на велосипеде 200 километров за день.',
|
||||||
|
'Работаю программистом.',
|
||||||
|
'Хотел бы побывать в горах.',
|
||||||
|
];
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
notes: NOTES,
|
||||||
|
shown: [],
|
||||||
|
fact: '',
|
||||||
|
factIndex: null,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.pick();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
next() {
|
||||||
|
this.pick();
|
||||||
|
},
|
||||||
|
pick() {
|
||||||
|
let available = _.difference(this.notes, this.shown);
|
||||||
|
if (_.size(available) === 0) {
|
||||||
|
available = this.notes;
|
||||||
|
this.shown = [];
|
||||||
|
}
|
||||||
|
const fact = _.sample(available);
|
||||||
|
this.shown.push(fact);
|
||||||
|
this.fact = fact;
|
||||||
|
this.factIndex = _.indexOf(NOTES, fact) + 1;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@import '../components/button';
|
||||||
|
.app {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fact-index {
|
||||||
|
margin-top: 3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.note {
|
||||||
|
display: block;
|
||||||
|
font-size: 160%;
|
||||||
|
margin: 0 auto 2em;
|
||||||
|
min-height: 3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-next {
|
||||||
|
@extend %button;
|
||||||
|
}
|
||||||
|
</style>
|
7
source/_assets/about/index.js
Normal file
7
source/_assets/about/index.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import Vue from 'vue';
|
||||||
|
import About from './about.vue';
|
||||||
|
|
||||||
|
new Vue({
|
||||||
|
el: '#app',
|
||||||
|
render: h => h(About),
|
||||||
|
});
|
19
source/about.html.twig
Normal file
19
source/about.html.twig
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
layout: internal
|
||||||
|
title: Обо мне
|
||||||
|
description: Несколько фактов об авторе
|
||||||
|
---
|
||||||
|
|
||||||
|
{% block js %}
|
||||||
|
{{ parent() }}
|
||||||
|
<script async src="{{ hashed_asset('/static/about.js') }}"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block css %}
|
||||||
|
{{ parent() }}
|
||||||
|
<link rel="stylesheet" href="{{ hashed_asset('/static/about.css') }}">
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<div id="app"></div>
|
||||||
|
{% endblock %}
|
25
source/albums.html.twig
Normal file
25
source/albums.html.twig
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
layout: internal
|
||||||
|
title: Фотоальбомы
|
||||||
|
description: Фотоальбомы
|
||||||
|
use: [albums]
|
||||||
|
---
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<h1>{{ page.title }}</h1>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
{% for album in data.albums %}
|
||||||
|
<li>
|
||||||
|
<p>
|
||||||
|
<a href="{{ album.url }}">{{ album.title }}</a>
|
||||||
|
{% if album.description %}
|
||||||
|
<br>
|
||||||
|
{{ album.description }}
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
{% endblock %}
|
@ -25,6 +25,7 @@ use: [articles]
|
|||||||
Работаю в <a href="https://playkot.com/" target="_blank">Playkot</a>.
|
Работаю в <a href="https://playkot.com/" target="_blank">Playkot</a>.
|
||||||
Пишу на PHP.
|
Пишу на PHP.
|
||||||
Разбираюсь в back-end, экспериментирую с front-end, интересуюсь функциональным программированием.
|
Разбираюсь в back-end, экспериментирую с front-end, интересуюсь функциональным программированием.
|
||||||
|
Иногда <a href="/albums/">фотографирую</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<span class="hr-line"></span>
|
<span class="hr-line"></span>
|
||||||
@ -44,6 +45,21 @@ use: [articles]
|
|||||||
<i class="fab fa-git-square"></i>
|
<i class="fab fa-git-square"></i>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="social__item">
|
||||||
|
<a class="social__link" href="https://www.linkedin.com/in/anton-vakhrushev" target="_blank" title="Профиль на Линкедин">
|
||||||
|
<i class="fab fa-linkedin"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="social__item">
|
||||||
|
<a class="social__link" href="https://instagram.com/anwinged" target="_blank" title="Фотографии в Инстаграме">
|
||||||
|
<i class="fab fa-instagram"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="social__item">
|
||||||
|
<a class="social__link" href="/about/" target="_blank" title="Об авторе">
|
||||||
|
<i class="fas fa-ghost"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li class="social__item">
|
<li class="social__item">
|
||||||
<a class="social__link" href="https://www.notion.so/6cbeaaa60dd146ba8d1d001a322e0139" target="_blank" title="Вишлист">
|
<a class="social__link" href="https://www.notion.so/6cbeaaa60dd146ba8d1d001a322e0139" target="_blank" title="Вишлист">
|
||||||
<i class="fas fa-socks"></i>
|
<i class="fas fa-socks"></i>
|
||||||
|
Loading…
Reference in New Issue
Block a user