Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
blog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mastodon
blog
Commits
e3bfe848
Commit
e3bfe848
authored
Jun 24, 2018
by
Eugen Rochko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve next/prev links
parent
35da0c9e
Pipeline
#48
passed with stages
in 0 seconds
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
22 deletions
+46
-22
entry_nav.html
layouts/partials/entry_nav.html
+12
-10
style.css
static/style.css
+16
-6
style.css.map
static/style.css.map
+1
-1
style.scss
static/style.scss
+17
-5
No files found.
layouts/partials/entry_nav.html
View file @
e3bfe848
{{ if gt ( len ( where .Site.RegularPages "Section" .Section ) ) 1 }}
<nav
class=
'entry-nav'
>
{{- if .PrevInSection -}}
<div
class=
'prev-entry sep-before'
>
<div
class=
'prev-entry sep-before'
>
{{- if .PrevInSection -}}
<a
href=
'{{ .PrevInSection.Permalink | relURL }}'
>
<i
class=
"fas fa-chevron-left"
></i>
Previous
<strong><i
class=
"fas fa-chevron-left"
></i>
Previous
</strong>
{{ .PrevInSection.Title }}
</a>
</div>
{{- end -}}
{{- end -}}
</div>
{{- if .NextInSection -}}
<div
class=
'next-entry sep-before'
>
<div
class=
'next-entry sep-before'
>
{{- if .NextInSection -}}
<a
href=
'{{ .NextInSection.Permalink | relURL }}'
>
Next
<i
class=
"fas fa-chevron-right"
></i>
<strong>
Next
<i
class=
"fas fa-chevron-right"
></i></strong>
{{ .NextInSection.Title }}
</a>
</div>
{{- end -}}
{{- end -}}
</div>
</nav>
{{ end }}
static/style.css
View file @
e3bfe848
...
...
@@ -364,20 +364,30 @@ body {
text-decoration
:
none
;
}
.entry-nav
{
overflow
:
hidden
;
display
:
flex
;
margin
:
0
-15px
;
margin-bottom
:
30px
;
}
.entry-nav
a
{
color
:
#79b9e7
;
display
:
inline-
block
;
display
:
block
;
border
:
1px
solid
#303643
;
padding
:
10px
14px
;
border-radius
:
4px
;
font-weight
:
500
;
text-decoration
:
none
;
}
.entry-nav
.prev-entry
{
float
:
left
;
}
text-decoration
:
none
;
font-size
:
12px
;
}
.entry-nav
a
strong
{
display
:
block
;
font-size
:
16px
;
margin-bottom
:
6px
;
}
.entry-nav
.prev-entry
,
.entry-nav
.next-entry
{
box-sizing
:
border-box
;
width
:
50%
;
flex
:
0
0
auto
;
padding
:
0
15px
;
}
.entry-nav
.next-entry
{
float
:
right
;
}
text-align
:
right
;
}
.pagination
{
display
:
-ms-flexbox
;
...
...
static/style.css.map
View file @
e3bfe848
This diff is collapsed.
Click to expand it.
static/style.scss
View file @
e3bfe848
...
...
@@ -514,25 +514,37 @@ body {
}
.entry-nav
{
overflow
:
hidden
;
display
:
flex
;
margin
:
0
-15px
;
margin-bottom
:
30px
;
a
{
color
:
lighten
(
$vibrant
,
18%
);
display
:
inline-
block
;
display
:
block
;
border
:
1px
solid
lighten
(
$darkest
,
8%
);
padding
:
10px
14px
;
border-radius
:
4px
;
font-weight
:
500
;
text-decoration
:
none
;
font-size
:
12px
;
strong
{
display
:
block
;
font-size
:
16px
;
margin-bottom
:
6px
;
}
}
.prev-entry
{
float
:
left
;
.prev-entry
,
.next-entry
{
box-sizing
:
border-box
;
width
:
50%
;
flex
:
0
0
auto
;
padding
:
0
15px
;
}
.next-entry
{
float
:
right
;
text-align
:
right
;
}
}
...
...
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