Добавлена страница с альбомами
This commit is contained in:
parent
f9ceb23b65
commit
28215491ca
1
Makefile
1
Makefile
@ -22,7 +22,6 @@ format:
|
|||||||
./tools/npm run format-js
|
./tools/npm run format-js
|
||||||
./tools/npm run format-vue
|
./tools/npm run format-vue
|
||||||
./tools/npm run format-style
|
./tools/npm run format-style
|
||||||
./tools/npm run format-md
|
|
||||||
|
|
||||||
format-php:
|
format-php:
|
||||||
./tools/php-cs-fixer fix
|
./tools/php-cs-fixer fix
|
||||||
|
@ -9,7 +9,7 @@ sculpin_content_types:
|
|||||||
type: path
|
type: path
|
||||||
path: _albums
|
path: _albums
|
||||||
singular_name: album
|
singular_name: album
|
||||||
layout: internal
|
layout: album
|
||||||
permalink: albums/:basename/
|
permalink: albums/:basename/
|
||||||
enabled: true
|
enabled: true
|
||||||
taxonomies:
|
taxonomies:
|
||||||
|
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 %}
|
||||||
|
|
||||||
|
<center>
|
||||||
|
<a href="http://img-fotki.yandex.ru/get/9222/46045840.28/0_98765_7fc8895f_XXXL.jpg">
|
||||||
|
<img src="http://img-fotki.yandex.ru/get/9222/46045840.28/0_98765_7fc8895f_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</center>
|
||||||
|
|
||||||
|
<center>
|
||||||
|
<a href="http://img-fotki.yandex.ru/get/9312/46045840.28/0_98748_e6ab013e_XXXL.jpg">
|
||||||
|
<img src="http://img-fotki.yandex.ru/get/9312/46045840.28/0_98748_e6ab013e_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</center>
|
||||||
|
|
||||||
|
<center>
|
||||||
|
<a href="http://img-fotki.yandex.ru/get/9231/46045840.28/0_98749_b4fb46a9_XXXL.jpg">
|
||||||
|
<img src="http://img-fotki.yandex.ru/get/9231/46045840.28/0_98749_b4fb46a9_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</center>
|
||||||
|
|
||||||
|
<center>
|
||||||
|
<a href="http://img-fotki.yandex.ru/get/9305/46045840.28/0_9874a_afbf859b_XXXL.jpg">
|
||||||
|
<img src="http://img-fotki.yandex.ru/get/9305/46045840.28/0_9874a_afbf859b_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</center>
|
||||||
|
|
||||||
|
<center>
|
||||||
|
<a href="http://img-fotki.yandex.ru/get/9171/46045840.28/0_98747_7d4ca4c9_XXXL.jpg">
|
||||||
|
<img src="http://img-fotki.yandex.ru/get/9171/46045840.28/0_98747_7d4ca4c9_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</center>
|
||||||
|
|
||||||
|
<center>
|
||||||
|
<a href="http://img-fotki.yandex.ru/get/9217/46045840.28/0_9874b_e42da6b4_XXXL.jpg">
|
||||||
|
<img src="http://img-fotki.yandex.ru/get/9217/46045840.28/0_9874b_e42da6b4_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</center>
|
||||||
|
|
||||||
|
<center>
|
||||||
|
<a href="http://img-fotki.yandex.ru/get/9228/46045840.28/0_9874f_9af8aa8f_XXXL.jpg">
|
||||||
|
<img src="http://img-fotki.yandex.ru/get/9228/46045840.28/0_9874f_9af8aa8f_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</center>
|
||||||
|
|
||||||
|
<center>
|
||||||
|
<a href="http://img-fotki.yandex.ru/get/9301/46045840.28/0_9875a_d96bfbd7_XXXL.jpg">
|
||||||
|
<img src="http://img-fotki.yandex.ru/get/9301/46045840.28/0_9875a_d96bfbd7_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</center>
|
||||||
|
|
||||||
|
<center>
|
||||||
|
<a href="http://img-fotki.yandex.ru/get/9324/46045840.28/0_98756_13fee051_XXXL.jpg">
|
||||||
|
<img src="http://img-fotki.yandex.ru/get/9324/46045840.28/0_98756_13fee051_XL.jpg"/>
|
||||||
|
</a>
|
||||||
|
</center>
|
||||||
|
|
||||||
|
{% endblock %}
|
8
source/_assets/layout_album/style.scss
Normal file
8
source/_assets/layout_album/style.scss
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
@import '../vars';
|
||||||
|
@import '../base_style';
|
||||||
|
|
||||||
|
.album-content {
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
.navigation {
|
.navigation {
|
||||||
display: block;
|
display: block;
|
||||||
border-bottom: 1px solid #eee;
|
border-bottom: 1px solid #eee;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
|
||||||
&__actions {
|
&__actions {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
@ -13,6 +14,7 @@
|
|||||||
margin: {
|
margin: {
|
||||||
top: 1em;
|
top: 1em;
|
||||||
bottom: 1em;
|
bottom: 1em;
|
||||||
|
right: 1em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,5 +3,8 @@
|
|||||||
<li class="navigation__action">
|
<li class="navigation__action">
|
||||||
<a class="navigation__link" href="/">Главная</a>
|
<a class="navigation__link" href="/">Главная</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="navigation__action">
|
||||||
|
<a class="navigation__link" href="/albums/">Альбомы</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
11
source/_layouts/album.html.twig
Normal file
11
source/_layouts/album.html.twig
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{% extends 'internal.html.twig' %}
|
||||||
|
|
||||||
|
{% block css %}
|
||||||
|
<link rel="stylesheet" href="/static/layout_album.css?v={{ date().timestamp }}">
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block main %}
|
||||||
|
<main class="content album-content">
|
||||||
|
{% block content %}{% endblock %}
|
||||||
|
</main>
|
||||||
|
{% endblock %}
|
@ -13,9 +13,11 @@
|
|||||||
|
|
||||||
{% include 'navigation.twig' %}
|
{% include 'navigation.twig' %}
|
||||||
|
|
||||||
<main class="content">
|
{% block main %}
|
||||||
{% block content %}{% endblock %}
|
<main class="content">
|
||||||
</main>
|
{% block content %}{% endblock %}
|
||||||
|
</main>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
17
source/albums.html.twig
Normal file
17
source/albums.html.twig
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
layout: internal
|
||||||
|
title: Фотоальбомы
|
||||||
|
description: Фотоальбомы
|
||||||
|
use: [albums]
|
||||||
|
---
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<h1>{{ title }}</h1>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
{% for album in data.albums %}
|
||||||
|
<li><a href="{{ album.url }}">{{ album.title }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
{% endblock %}
|
@ -20,6 +20,13 @@ description: Личный сайт Антона Вахрушева
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<h2 class="heading">Смотреть</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="/albums/">альбомы с фотографиями</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<h2 class="heading">Читать</h2>
|
<h2 class="heading">Читать</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
|
@ -62,6 +62,7 @@ module.exports = (env = {}) => {
|
|||||||
entry: {
|
entry: {
|
||||||
layout_default: './source/_assets/layout_default/style.scss',
|
layout_default: './source/_assets/layout_default/style.scss',
|
||||||
layout_internal: './source/_assets/layout_internal/style.scss',
|
layout_internal: './source/_assets/layout_internal/style.scss',
|
||||||
|
layout_album: './source/_assets/layout_album/style.scss',
|
||||||
index: './source/_assets/index/index.js',
|
index: './source/_assets/index/index.js',
|
||||||
about_me: './source/_assets/about_me/index.js',
|
about_me: './source/_assets/about_me/index.js',
|
||||||
predictor: './source/_assets/predictor/index.js',
|
predictor: './source/_assets/predictor/index.js',
|
||||||
|
Loading…
Reference in New Issue
Block a user