aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.html
blob: 87fd3b21ac1b43c252186591357b1d7f5aac81e3 (plain) (blame)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
title: Main page
layout: plain
main:
  - email
  - url: /blog/
    name: blog
  - url: /cv/cv.pdf
    name: cv
  - github
  - url: https://egort.name/
    name: egort.name
    description: My other place on the web
projects:
  - url: https://github.com/egor-tensin/cgitize
    name: cgitize
    description: Self-host your repositories using cgit
  - url: https://github.com/egor-tensin/config-links
    name: config-links
    description: Configuration file sharing
  - url: https://status.egort.name/
    name: linux-status
    description: Simple Linux server monitoring
  - url: /sorting-algorithms/
    name: sorting-algorithms
    description: Getting the hang out of (sorting) algorithms
  - url: /wireguard-config/
    name: wireguard-config
    description: Generate WireGuard configuration files
  - url: https://git.egort.name/
    description: More...
---
<h1>{{ site.settings.author.name }}</h1>
<hr/>

{% capture links %}
  <div class="col-sm-5 col-md-4 col-lg-3">

  <div class="list-group">
    <div class="list-group-item disabled">
      <h4 class="list-group-item-heading">links</h4>
    </div>
    {% if page.main %}
      {% for link in page.main %}
        {% if link == 'email' %}
          {% assign url = 'mailto:' | append: site.settings.author.email %}
          {% assign name = site.settings.author.email | downcase %}
        {% elsif link == 'github' %}
          {% assign url = site.github.owner_url %}
          {% assign name = 'github' %}
        {% else %}
          {% assign url = link.url %}
          {% assign name = link.name %}
        {% endif %}
        {% assign desc = link.description %}

        <a class="list-group-item" href="{{ url }}">
        {% if name %}
          <h4 class="list-group-item-heading">{{ name }}</h4>
        {% endif %}
        {% if desc %}
          <p class="list-group-item-text small">{{ desc }}</p>
        {% endif %}
        </a>
      {% endfor %}
    {% endif %}
  </div>

  </div>
{% endcapture %}

{% capture projects %}
{% if page.projects %}
  <div class="col-sm-6 col-md-5 col-lg-4">

  <div class="list-group">
    <div class="list-group-item disabled">
      <h4 class="list-group-item-heading">projects</h4>
    </div>
    {% for link in page.projects %}
      {% assign url = link.url %}
      {% assign name = link.name %}
      {% assign desc = link.description %}
      <a class="list-group-item" href="{{ url }}">
      {% if name %}
        <h4 class="list-group-item-heading">{{ name }}</h4>
      {% endif %}
      {% if desc %}
        <p class="list-group-item-text small">{{ desc }}</p>
      {% endif %}
      </a>
    {% endfor %}
  </div>

  </div>
{% endif %}
{% endcapture %}

<div class="row">
{{ links }}
{{ projects }}
</div>