-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
70 lines (61 loc) · 2.54 KB
/
main.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
---
---
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: 'en' }}">
{%- include head.html -%}
<body>
<!-- necessary as specifying collection order in _config.yml is not possible in Jekyll 3 -->
{% assign sorted_sections = site.sections | sort: 'order' %}
<!-- navbar -->
<nav class="nav-bar" aria-label="Navigation Bar">
{% for section in sorted_sections %}
{% if section.anchor %}
<a class="nav-item" href="{{ section.anchor | prepend: '#' | relative_url }}">
{{ section.title | markdownify | strip_html }}
</a>
{% endif %}
{% endfor %}
</nav>
<main class="container-fluid">
<!-- intro -->
<div class="row">
<div class="intro col-sm-8" aria-label="Intro">
<div class="intro-title">{{ site.intro_title | markdownify }}</div>
<div class="intro-content">{{ site.intro_content | markdownify }}</div>
{%- if site.github_url -%}
<a href="{{ site.github_url }}" class="fa fa-github" title="GitHub profile"></a>
{%- endif -%}
{%- if site.stack_overflow_url -%}
<a href="{{ site.stack_overflow_url }}" class="fa fa-stack-overflow" title="Stack Overflow profile"></a>
{%- endif -%}
{%- if site.linkedin_url -%}
<a href="{{ site.linkedin_url }}" class="fa fa-linkedin" title="LinkedIn profile"></a>
{%- endif -%}
{%- if site.facebook_url -%}
<a href="{{ site.facebook_url }}" class="fa fa-facebook" title="Facebook profile"></a>
{%- endif -%}
{%- if site.twitter_url -%}
<a href="{{ site.twitter_url }}" class="fa fa-twitter" title="Twitter profile"></a>
{%- endif -%}
{%- if site.youtube_url -%}
<a href="{{ site.youtube_url }}" class="fa fa-youtube" title="YouTube profile"></a>
{%- endif -%}
{%- if site.email -%}
<a href="mailto:{{ site.email }}" class="fa fa-envelope" title="Email"></a>
{%- endif -%}
</div>
</div>
<!-- sections -->
{% for section in sorted_sections %}
<div class="section row" aria-label="Sections">
<div id="{{ section.anchor }}" class="section-title col-sm-5">{{ section.title | markdownify }}</div>
<div class="section-content col-sm-7">{{ section.content | markdownify }}</div>
</div>
{% endfor %}
</main>
<!-- footer -->
{%- include footer.html -%}
</body>
<!-- dark mode -->
{%- include dark_mode.html -%}
</html>