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
ae9f5fb0
Commit
ae9f5fb0
authored
Nov 02, 2015
by
Yohan Jarosz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nicer header
parent
2d6e9e05
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
_includes/header.html
_includes/header.html
+2
-10
_sass/_base.scss
_sass/_base.scss
+1
-0
index.html
index.html
+9
-0
No files found.
_includes/header.html
View file @
ae9f5fb0
<header
class=
"site-header"
>
<nav
class=
"navbar navbar-inverse"
>
<div
class=
"container-fluid"
>
<a
class=
"navbar-brand"
href=
"{{ site.baseurl }}/
"
>
R3lab
</a>
<a
class=
"navbar-brand"
href=
"{{ site.baseurl }}/
projects/{{page.index}}"
>
{{page.index | capitalize}}
</a>
<ul
class=
"nav navbar-nav"
>
{% for navpage in site.pages %}
{% if navpage.title and navpage.type == 'nav' %}
<li
class=
"{% if page.url contains 'projects'%}active{% endif %}"
><a
href=
"{{ navpage.url | prepend: site.baseurl }}"
>
{{ navpage.title }}
</a></li>
{% endif %}
{% endfor %}
</ul>
{% if page.nav %}
<ul
class=
"nav navbar-nav navbar-right"
>
{% assign navs = page.nav | split:"," %}
{% for nav in navs %}
<li
class=
"{% if page.url contains nav %}active{% endif %}"
><a
href=
"{{nav}}.html"
>
{{ nav }}
</a></li>
<li
class=
"{% if page.url contains nav %}active{% endif %}"
><a
href=
"{{nav}}.html"
>
{{ nav
| capitalize
}}
</a></li>
{% endfor %}
</ul>
{% endif %}
...
...
_sass/_base.scss
View file @
ae9f5fb0
...
...
@@ -21,4 +21,5 @@
body
{
padding-top
:
60px
;
padding-bottom
:
130px
;
}
index.html
View file @
ae9f5fb0
---
layout: default
---
<dl
class=
"dl-horizontal"
>
{% for project in site.pages %}
{% if project.type == 'project' %}
<dt><a
class=
"project-link"
href=
"{{ project.url | prepend: site.baseurl }}"
>
{{ project.title }}
</a><dt>
<dd>
{{project.description}}
</dd>
{% endif %}
{% endfor %}
</dl>
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