Skip to content

Commit

Permalink
Fix mkdocs jinja2 script again
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWilhelm committed Aug 10, 2024
1 parent 793837f commit 4dd4793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ markdown_extensions:
social_url_shorthand: true
normalize_issue_symbols: true
{% set parts = cookiecutter.project_repo.split('/') -%}
{% set domain_parts = parts.split('.') if parts|length > 2 else [] -%}
{% set domain_parts = parts[-3].split('.') if parts|length > 2 else [] -%}
provider: {{ domain_parts[-2] if domain_parts|length > 2 else 'github' }}
user: {{ parts[-2] if parts|length > 2 else cookiecutter.github_username }}
repo: {{ parts[-1] if parts|length > 2 else cookiecutter.project_slug }}
Expand Down

0 comments on commit 4dd4793

Please sign in to comment.