aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/index.html
blob: 7219a9871883489893c4422a9ce46cf6df76ca65 (plain) (tree)
1
2
3
4
5
6
7
8
9
   
                
             
     
         

               
                   
            
          
         





                                                       
                                   

                                               
                             

                                                             
                           

                                                       
                                
                        
   
                                        
     
 
                   


                                          
                                          
                                                    
          

                                 












                                                                           
                     
                                                             
                   
                     
                                                              
                   


                  

        
        
                
 
                      






                                                       






                                                           
                 
                   
                                                            






                 
                
 


                 
      
---
title: Main page
layout: plain
main:
  - email
  - url: /blog/
    name: blog
  - url: /cv/cv.pdf
    name: cv
  - github
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>