Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
osuny
Theme
Commits
77e5f158
Commit
77e5f158
authored
2 years ago
by
alexisben
Browse files
Options
Downloads
Patches
Plain Diff
add breadcrumb position option
parent
54cd348f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
assets/sass/_theme/design-system/hero.sass
+4
-11
4 additions, 11 deletions
assets/sass/_theme/design-system/hero.sass
config.yaml
+2
-0
2 additions, 0 deletions
config.yaml
layouts/partials/header/hero.html
+17
-2
17 additions, 2 deletions
layouts/partials/header/hero.html
with
23 additions
and
13 deletions
assets/sass/_theme/design-system/hero.sass
+
4
−
11
View file @
77e5f158
...
...
@@ -19,6 +19,7 @@
padding-top
:
$spacing3
>
h1
,
>
hgroup
margin-top
:
$spacing3
h1
+
p
margin-top
:
$spacing1
figure
...
...
@@ -30,18 +31,10 @@
height
:
auto
@include
collapsed-figcaption
nav
+
.content
.breadcrumb-
nav
+
.content
padding-top
:
0
// TODO : handle hero with image
@if
$breadcrumb-below-h1
.container
:first-child
display
:
flex
flex-direction
:
column
nav
+
.content
margin-top
:
0
.breadcrumb-nav
order
:
3
margin-top
:
$spacing3
.content
+
.breadcrumb-nav
margin-top
:
$spacing3
@include
media-breakpoint-down
(
desktop
)
.breadcrumb-nav
...
...
This diff is collapsed.
Click to expand it.
config.yaml
+
2
−
0
View file @
77e5f158
...
...
@@ -4,6 +4,8 @@ params:
enable
:
false
blank
:
true
page
:
https://gdpr.eu/cookies/
breadcrumb
:
position
:
hero-start
# hero-start | hero-end | after-hero
posts
:
list
:
show_categories
:
false
...
...
This diff is collapsed.
Click to expand it.
layouts/partials/header/hero.html
+
17
−
2
View file @
77e5f158
...
...
@@ -5,8 +5,10 @@
<header
class=
"hero {{ if .image -}}hero--with-image hero--image-{{- $direction -}}{{- end -}}"
>
<div
class=
"container"
>
{{- if .breadcrumb | default true -}}
{{ partial "header/breadcrumbs.html" .context }}
{{- if eq site.Params.breadcrumb.position "hero-start" -}}
{{- if .breadcrumb | default true -}}
{{ partial "header/breadcrumbs.html" .context }}
{{- end -}}
{{- end -}}
<div
class=
"content"
>
{{- if .subtitle -}}
...
...
@@ -41,5 +43,18 @@
</figure>
{{ end -}}
</div>
{{- if eq site.Params.breadcrumb.position "hero-end" -}}
{{- if .breadcrumb | default true -}}
{{ partial "header/breadcrumbs.html" .context }}
{{- end -}}
{{- end -}}
</div>
</header>
{{- if eq site.Params.breadcrumb.position "after-hero" -}}
{{- if .breadcrumb | default true -}}
<div
class=
"container"
>
{{ partial "header/breadcrumbs.html" .context }}
</div>
{{- end -}}
{{- end -}}
\ No newline at end of file
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