forked from raviriley/agency-jekyll-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
navheader.html
108 lines (107 loc) · 3.66 KB
/
navheader.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark fixed-top" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="#page-top">
{%- if site.logo -%}
<img
height="{{ site.logo.height | default: 52 }}"
src="{{ site.logo.path }}"
/>
{%- else -%} {{ site.title }} {%- endif -%}
</a>
<button
class="navbar-toggler navbar-toggler-right"
type="button"
data-toggle="collapse"
data-target="#navbarResponsive"
aria-controls="navbarResponsive"
aria-expanded="false"
aria-label="Toggle navigation"
>
Menu
<i class="fas fa-bars"></i>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav text-uppercase ml-auto">
{% if site.locale and site.locale != "" and site.locale != nil %} {% for
link in site.data.navigation[site.locale].nav %}
<li class="nav-item">
{%- if link.url -%}
<a class="nav-link js-scroll-trigger" href="{{ link.url }}"
>{{ link.title }}</a
>
{%- elsif link.section -%}
<a class="nav-link js-scroll-trigger" href="#{{ link.section }}"
>{{ link.title }}</a
>
{%- else -%}
<a class="nav-link js-scroll-trigger" href="#">{{ link.title }}</a>
{%- endif -%}
</li>
{% endfor %} {% else %} {% for link in site.data.navigation.nav %}
<li class="nav-item">
{%- if link.url -%}
<a class="nav-link js-scroll-trigger" href="{{ link.url }}"
>{{ link.title }}</a
>
{%- elsif link.section -%}
<a class="nav-link js-scroll-trigger" href="#{{ link.section }}"
>{{ link.title }}</a
>
{%- else -%}
<a class="nav-link js-scroll-trigger" href="#">{{ link.title }}</a>
{%- endif -%}
</li>
{% endfor %} {% endif %}
</ul>
</div>
</div>
</nav>
<!-- End Navigation -->
<!-- Header -->
{% if site.locale and site.locale != "" and site.locale != nil %}
<header class="masthead">
<div class="container">
<div class="intro-text">
{%- if site.data.sitetext[site.locale].header.title -%}
<div class="intro-lead-in">
{{ site.data.sitetext[site.locale].header.title | markdownify }}
</div>
{%- endif -%} {%- if site.data.sitetext[site.locale].header.text -%}
<div class="intro-heading text-uppercase">
{{ site.data.sitetext[site.locale].header.text | markdownify }}
</div>
{%- endif -%} {%- if site.data.sitetext[site.locale].header.button -%}
<a
class="btn btn-primary btn-xl text-uppercase js-scroll-trigger"
href="{{ site.data.sitetext[site.locale].header.buttonlink }}"
>{{ site.data.sitetext[site.locale].header.button }}</a
>
{%- endif -%}
</div>
</div>
</header>
{% else %}
<header class="masthead">
<div class="container">
<div class="intro-text">
{%- if site.data.sitetext.header.title -%}
<div class="intro-lead-in">
{{ site.data.sitetext.header.title | markdownify }}
</div>
{%- endif -%} {%- if site.data.sitetext.header.text -%}
<div class="intro-heading text-uppercase">
{{ site.data.sitetext.header.text | markdownify }}
</div>
{%- endif -%} {%- if site.data.sitetext.header.button -%}
<a
class="btn btn-primary btn-xl text-uppercase js-scroll-trigger"
href="{{ site.data.sitetext.header.buttonlink }}"
>{{ site.data.sitetext.header.button }}</a
>
{%- endif -%}
</div>
</div>
</header>
{% endif %}
<!-- End Header -->