Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MostafaMollaali
dynamic
Commits
a147dd7a
Commit
a147dd7a
authored
8 years ago
by
Lars Bilke
Committed by
Lars Bilke
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[web] Added ugly navigation.
parent
c069f7f6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
web/layouts/index.html
+13
-4
13 additions, 4 deletions
web/layouts/index.html
web/layouts/partials/header.html
+3
-0
3 additions, 0 deletions
web/layouts/partials/header.html
with
16 additions
and
4 deletions
web/layouts/index.html
+
13
−
4
View file @
a147dd7a
{{ partial "header.html" . }}
{{ partial "header.html" . }}
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
>
<h1>
docs
</h1>
<h2>
docs
</h1>
<ul>
{{ range first 10 .Data.Pages }}
{{ range first 10 .Data.Pages }}
{{ if eq .Type "docs"}}
{{ if eq .Type "docs"}}
<
h2
><a
href=
"{{ .Permalink }}"
>
{{ .Title }}
</a></
h2
>
<
li
><a
href=
"{{ .Permalink }}"
>
{{ .Title }}
</a></
li
>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</ul>
<h1>
pages
</h1>
<h2>
pages
</h1>
<ul>
{{ range .Data.Pages }}
{{ range .Data.Pages }}
{{ if eq .Type "page" }}
{{ if eq .Type "page" }}
<
h2
><a
href=
"{{ .Permalink }}"
>
{{ .Title }}
</a></
h2
>
<
li
><a
href=
"{{ .Permalink }}"
>
{{ .Title }}
</a></
li
>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</ul>
<h2>
Contentful
</h2>
<ul>
<li><a
href=
"/news"
>
News
</a></li>
</ul>
</div>
</div>
{{ partial "footer.html" . }}
{{ partial "footer.html" . }}
This diff is collapsed.
Click to expand it.
web/layouts/partials/header.html
+
3
−
0
View file @
a147dd7a
...
@@ -26,3 +26,6 @@
...
@@ -26,3 +26,6 @@
<body>
<body>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"nav"
><a
href=
"/"
>
Home
</a>
|
<a
href=
"/news"
>
News
</a>
|
<a
href=
"/about"
>
About
</a>
|
<a
href=
"/docs"
>
Docs
</a></div>
</div>
<div
class=
"row"
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment