Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
static-site
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Wei Gu
static-site
Commits
c0b78fd9
Commit
c0b78fd9
authored
Nov 19, 2015
by
Yohan Jarosz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add active class in headers
parent
00d93676
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
_includes/header.html
_includes/header.html
+2
-2
No files found.
_includes/header.html
View file @
c0b78fd9
...
...
@@ -18,9 +18,9 @@
{% assign link = nav | split:"$" %}
{% assign myurl = link[0] %}
{% if myurl contains '://' %}
<li
class=
"{% if page.url contains
nav
%}active{% endif %}"
><a
href=
"{{myurl}}"
>
{{link[1]}}
</a></li>
<li
class=
"{% if page.url contains
myurl
%}active{% endif %}"
><a
href=
"{{myurl}}"
>
{{link[1]}}
</a></li>
{% else %}
<li
class=
"{% if page.url contains
nav
%}active{% endif %}"
><a
href=
"{{myurl}}.html"
>
{{link[1]}}
</a></li>
<li
class=
"{% if page.url contains
myurl
%}active{% endif %}"
><a
href=
"{{myurl}}.html"
>
{{link[1]}}
</a></li>
{% endif %}
{% endfor %}
</ul>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment