aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.html
blob: 82c4cc57dd33c0e8326a0c5526a9fc01a878ecea (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
---
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
projects:
  - url: https://egort.name/status/
    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://egort.name/git/
    description: More...
---
<h1>{{ site.settings.author.name }}</h1>
<hr/>

<div class="row">

  <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 }}">
          <h4 class="list-group-item-heading">{{ name }}</h4>
        {% if desc %}
          <p class="list-group-item-text">{{ desc }}</p>
        {% endif %}
        </a>
      {% endfor %}
    {% endif %}
  </div>

  </div>

{% 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 project in page.projects %}
      <a class="list-group-item" href="{{ project.url }}">
      {% if project.name %}
        <h4 class="list-group-item-heading">{{ project.name }}</h4>
      {% endif %}
      {% if project.description %}
        <p class="list-group-item-text">{{ project.description }}</p>
      {% endif %}
      </a>
    {% endfor %}
  </div>

  </div>
{% endif %}

</div>