Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
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
Container registry
Model registry
Operate
Environments
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
TO
Maják
Commits
657e3a7c
Commit
657e3a7c
authored
3 years ago
by
Ondrej Rehounek
Committed by
jan.bednarik
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
district: split image path from hash...
parent
6c167d00
Branches
Branches containing commit
No related tags found
2 merge requests
!442
Release
,
!432
Feature/majak imports
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
district/jekyll_import.py
+1
-1
1 addition, 1 deletion
district/jekyll_import.py
with
1 addition
and
1 deletion
district/jekyll_import.py
+
1
−
1
View file @
657e3a7c
...
@@ -225,7 +225,7 @@ def get_or_create_image(path, file_path, collection, repo_name) -> Image or None
...
@@ -225,7 +225,7 @@ def get_or_create_image(path, file_path, collection, repo_name) -> Image or None
img_name
=
file_path
.
split
(
"
/
"
)[
-
1
]
img_name
=
file_path
.
split
(
"
/
"
)[
-
1
]
img_assets_folder
=
repo_name
.
split
(
"
.
"
)[
0
]
# TODO make as form field
img_assets_folder
=
repo_name
.
split
(
"
.
"
)[
0
]
# TODO make as form field
img_url
=
"
https://a.pirati.cz/{}/img/{}
"
.
format
(
img_url
=
"
https://a.pirati.cz/{}/img/{}
"
.
format
(
img_assets_folder
,
file_path
img_assets_folder
,
file_path
.
split
(
"
#
"
)[
0
]
)
)
img_path
=
os
.
path
.
join
(
path
,
img_name
)
img_path
=
os
.
path
.
join
(
path
,
img_name
)
try
:
try
:
...
...
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