-
Notifications
You must be signed in to change notification settings - Fork 0
/
patterns.html
55 lines (45 loc) · 1.47 KB
/
patterns.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
layout: default
title: Паттерны
subtitle: Вёрстка сумм, номеров телефонов, копирайта и многое другое
---
<div class="container pt-5">
<div class="row">
<div class="col">
<h1>{{page.title}}</h1>
<h4 class="light">{{page.subtitle}}</h4>
</div>
</div>
</div>
<div class="container py-5">
{% if site.patterns.size > 0 %}
<div class="row text">
{% assign sortedsections = site.patterns | sort: 'title' %}
<div class="col-md-7 col-lg-8 col-lg-9 py-4">
{% for section in sortedsections %}
<div class="section mb-5">
{% if section.anchor %}
<h2 id="{{section.anchor}}" class="light"><a href="#{{section.anchor}}" class="section-anchor-link">#</a>{{section.title}}</h2>
{% else %}
<h2>{{section.title}}</h2>
{% endif %}
{{ section.content | markdownify }}
</div>
{% endfor %}
</div>
<div class="d-none d-md-block col-md-4 col-lg-3 col-xl-2 col-md-offset-1">
<ul class="section-nav sticky-top list-unstyled py-4">
{% for section in sortedsections %}
<li class="border-left pl-3 py-1">{% if section.anchor %}<a href="#{{section.anchor}}" class="border-0">{{section.title}}</a>{% else %}{{section.title}}{% endif %}</li>
{% endfor %}
</ul>
</div>
</div>
{% else %}
<div class="row">
<div class="col">
Здесь пока пусто
</div>
</div>
{% endif %}
</div>