-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (93 loc) · 3.55 KB
/
index.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
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
---
# Note that this front matter is required for Liquid to run on this page
---
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Tomas Hubelbauer</title>
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="index.css" />
<link rel="icon" href="favicon.ico" />
<script type="module" src="index.js"></script>
</head>
<body>
<h1>Tomas Hubelbauer</h1>
<a href="https://github.com/TomasHubelbauer/hubelbauer.net/actions/workflows/pages/pages-build-deployment" target="_blank">
<img src="https://github.com/TomasHubelbauer/hubelbauer.net/actions/workflows/pages/pages-build-deployment/badge.svg" />
</a>
{%- capture text -%}{%- include_relative .gitmodules -%}{%- endcapture -%}
{%- assign lines = text | newline_to_br | strip_newlines | split: '<br />' | reverse -%}
{%- for rawLine in lines -%}
{%- assign line = rawLine | strip -%}
{%- assign pair = line | split: ' = ' -%}
{%- assign key = pair | first -%}
{%- assign value = pair | last -%}
{%- case key -%}
{%- when "path" -%}
{%- assign path = value -%}
{%- when "url" -%}
{%- assign url = value -%}
{%- when "title" -%}
{%- assign title = value -%}
{%- when "description" -%}
{%- assign description = value -%}
{%- when "created-at" -%}
{%- assign createdAt = value -%}
{%- when "updated-at" -%}
{%- assign updatedAt = value -%}
{%- when "pushed-at" -%}
{%- assign pushedAt = value -%}
{%- when "homepage" -%}
{%- assign homepage = value -%}
{%- when "archived" -%}
{%- assign archived = value -%}
{%- when "topics" -%}
{%- assign topics = value | split: ',' -%}
{%- endcase -%}
{%- assign maybeSubmodule = line | slice: 1, 9 -%}
{% if maybeSubmodule == 'submodule' %}
<div class="card">
<a href="{{ path }}">
<strong>{{ title | markdownify }}</strong>
{%- if description != empty %}
<div>
{{ description }}
</div>
{%- endif %}
</a>
<div>
{%- for topic in topics %}
<span>{{ topic }}</span>
{%- endfor %}
<a href="{{ url }}" target="_blank" title="{{ path }} source code on GitHub">
🗄️
</a>
{%- assign antiUrlNoSlash = 'https://hubelbauer.net/' | append: path -%}
{%- assign antiUrlSlash = 'https://hubelbauer.net/' | append: path | append: '/' -%}
<!-- "{{ antiUrl }}" -->
{%- if homepage != empty and homepage != antiUrlNoSlash and homepage != antiUrlSlash %}
<a href="{{ homepage }}" target="_blank" title="{{ path }} GitHub Pages web site">
🌍
</a>
{%- endif %}
</div>
</div>
{%- assign path = empty -%}
{%- assign url = empty -%}
{%- assign title = empty -%}
{%- assign description = empty -%}
{%- assign createdAt = empty -%}
{%- assign updatedAt = empty -%}
{%- assign pushedAt = empty -%}
{%- assign homepage = empty -%}
{%- assign archived = empty -%}
{%- assign topics = empty -%}
{%- endif -%}
{%- endfor %}
<hr />
<a href="https://github.com/TomasHubelbauer/hubelbauer.net" target="_blank" title="hubelbauer.net source code on GitHub">
<img src="https://github.com/favicon.ico" />
</a>
</body>
</html>