Skip to content

Commit 2d9df08

Browse files
committed
Renamed link text to be shorter.
1 parent df4320f commit 2d9df08

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

templates/layout.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<script type="text/javascript" src="{{ '/static/script.js'|url }}"></script>
1010
<title>{% block title %}Welcome{% endblock %} — Creative Commons on GitHub</title>
1111
<body>
12+
<<<<<<< Updated upstream
1213
<header class="main-header">
1314
<div class="container">
1415
<div class="row">
@@ -46,6 +47,39 @@
4647
</div>
4748
</li>
4849
</ul>
50+
=======
51+
<header>
52+
<nav class="navbar navbar-expand-md navbar-dark">
53+
{% set cc_logo = site.get('/').attachments.get('cclogo.svg') %}
54+
<a class="navbar-brand" href="#"><img src="{{ cc_logo|url }}"></a>
55+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
56+
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
57+
<span class="navbar-toggler-icon"></span>
58+
</button>
59+
60+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
61+
<ul class="navbar-nav">
62+
<li class="nav-item{% if this._path == '/' %} active{% endif
63+
%}"><a class="nav-link" href="{{ '/'|url }}">Home</a></li>
64+
{% for href, title in [
65+
['/projects', 'Projects'],
66+
['/community', 'Community'],
67+
] %}
68+
<li class="nav-item{% if this.is_child_of(href) %} active{% endif%}">
69+
<a class="nav-link" href="{{ href|url }}">{{ title }}</a>
70+
</li>
71+
{% endfor %}
72+
<li class="nav-item dropdown {% if this.is_child_of('/gsoc-2019') %} active{% endif%}">
73+
<a class="nav-link" href="/gsoc-2019/" id="navbarDropdown" role="button">GSoC 2019</a>
74+
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
75+
{% for href, title in [
76+
['/gsoc-2019/project-ideas/all', 'Project Ideas'],
77+
['/gsoc-2019/application-instructions', 'Application Instructions'],
78+
] %}
79+
<a class="dropdown-item" href="{{ href|url }}">{{ title }}</a>
80+
{% endfor %}
81+
<!-- <a class="dropdown-item" href="#">Action</a> -->
82+
>>>>>>> Stashed changes
4983
</div>
5084
</nav>
5185
</div>

0 commit comments

Comments
 (0)