Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
content
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Monitor
Service Desk
Analyze
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
ok1kvk.cz
content
Commits
39250df3
Commit
39250df3
authored
5 years ago
by
Isabella Skořepová
Browse files
Options
Downloads
Patches
Plain Diff
Fix few urls
parent
266ef468
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theme-source/partials/list.js
+17
-5
17 additions, 5 deletions
theme-source/partials/list.js
theme-source/partials/paginator.js
+1
-1
1 addition, 1 deletion
theme-source/partials/paginator.js
with
18 additions
and
6 deletions
theme-source/partials/list.js
+
17
−
5
View file @
39250df3
...
@@ -83,6 +83,15 @@ function dateFilter(date, format) {
...
@@ -83,6 +83,15 @@ function dateFilter(date, format) {
return
result
return
result
}
}
function
relURL
(
filename
,
dir_
)
{
let
dir
=
dir_
if
(
filename
.
substr
(
0
,
1
)
===
'
/
'
||
filename
.
match
(
'
://
'
))
return
filename
if
(
dir
.
substr
(
0
,
1
)
!==
'
/
'
)
dir
=
`/
${
dir
}
`
if
(
filename
.
match
(
/
\/
$/
))
return
dir
+
filename
if
(
dir
.
match
(
/
\/
$/
))
return
dir
+
filename
return
`
${
dir
}
/
${
filename
}
`
}
export
function
List
({
subtags
,
tag
,
content
,
metadata
,
file
,
config
})
{
export
function
List
({
subtags
,
tag
,
content
,
metadata
,
file
,
config
})
{
return
(
return
(
<
div
id
=
"
content
"
class
=
"
container
"
>
<
div
id
=
"
content
"
class
=
"
container
"
>
...
@@ -93,7 +102,7 @@ export function List({ subtags, tag, content, metadata, file, config }) {
...
@@ -93,7 +102,7 @@ export function List({ subtags, tag, content, metadata, file, config }) {
{
subtags
&&
{
subtags
&&
subtags
.
map
(
subtag
=>
(
subtags
.
map
(
subtag
=>
(
<
a
<
a
href
=
"
{{
config.baseurl
}}/{{
subtag.url
}}
"
href
=
{
`
${
config
.
baseurl
}
/
${
subtag
.
url
}
`
}
class
=
"
chip
"
class
=
"
chip
"
key
=
{
subtag
.
url
}
key
=
{
subtag
.
url
}
>
>
...
@@ -106,19 +115,22 @@ export function List({ subtags, tag, content, metadata, file, config }) {
...
@@ -106,19 +115,22 @@ export function List({ subtags, tag, content, metadata, file, config }) {
{
content
.
map
(
page
=>
(
{
content
.
map
(
page
=>
(
<
div
class
=
"
col s12 m6 l4
"
key
=
{
page
.
file
}
>
<
div
class
=
"
col s12 m6 l4
"
key
=
{
page
.
file
}
>
<
div
class
=
"
block article
"
>
<
div
class
=
"
block article
"
>
<
a
href
=
"
{{
config.baseurl
}}/{{
page.file
}}
"
>
<
a
href
=
{
`
${
config
.
baseurl
}
/
${
page
.
file
}
`
}
>
<
div
<
div
style
=
{{
style
=
{{
height
:
120
,
height
:
120
,
backgroundImage
:
page
.
metadata
.
image
backgroundImage
:
page
.
metadata
.
image
?
`url('{{ config.baseurl }}{{ page.metadata.image | relURL(page.file) }}')`
?
`url('
${
config
.
baseurl
}${
relURL
(
page
.
metadata
.
image
,
page
.
file
,
)}
')`
:
undefined
,
:
undefined
,
}}
}}
className
=
"
leadimage light-blue darken-2
"
className
=
"
leadimage light-blue darken-2
"
><
/div
>
><
/div
>
<
/a
>
<
/a
>
<
div
class
=
"
head-title
"
>
<
div
class
=
"
head-title
"
>
<
a
href
=
"
{{
config.baseurl
}}/{{
page.file
}}
"
>
<
a
href
=
{
`
${
config
.
baseurl
}
/
${
page
.
file
}
`
}
>
<
h5
class
=
"
center
"
>
{
page
.
metadata
.
title
}
<
/h5
>
<
h5
class
=
"
center
"
>
{
page
.
metadata
.
title
}
<
/h5
>
<
/a
>
<
/a
>
<
/div
>
<
/div
>
...
@@ -151,7 +163,7 @@ export function List({ subtags, tag, content, metadata, file, config }) {
...
@@ -151,7 +163,7 @@ export function List({ subtags, tag, content, metadata, file, config }) {
display
:
'
inline-block
'
,
display
:
'
inline-block
'
,
width
:
'
25%
'
,
width
:
'
25%
'
,
}}
}}
href
=
"
{{
config.baseurl
}}/{{
page.file
}}
"
href
=
{
`
${
config
.
baseurl
}
/
${
page
.
file
}
`
}
>
>
Číst
&
nbsp
;
dál
Číst
&
nbsp
;
dál
<
/a
>
<
/a
>
...
...
This diff is collapsed.
Click to expand it.
theme-source/partials/paginator.js
+
1
−
1
View file @
39250df3
...
@@ -63,7 +63,7 @@ export function Paginator({ metadata, file, config }) {
...
@@ -63,7 +63,7 @@ export function Paginator({ metadata, file, config }) {
<
/li
>
<
/li
>
)
:
(
)
:
(
<
li
class
=
"
waves-effect
"
key
=
{
page
.
pagenumber
}
>
<
li
class
=
"
waves-effect
"
key
=
{
page
.
pagenumber
}
>
<
a
href
=
"
{{
config.baseurl
}}/{{
page.file
}}
"
>
<
a
href
=
{
`
${
config
.
baseurl
}
/
${
page
.
file
}
`
}
>
{
page
.
metadata
.
pagenumber
}
{
page
.
metadata
.
pagenumber
}
<
/a
>
<
/a
>
<
/li
>
<
/li
>
...
...
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