From 4dd4793a7d6b26f5c15be58a7a18377b2ff589fd Mon Sep 17 00:00:00 2001 From: Florian Wilhelm Date: Sat, 10 Aug 2024 21:54:16 +0200 Subject: [PATCH] Fix mkdocs jinja2 script again --- {{cookiecutter.project_slug}}/mkdocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/mkdocs.yml b/{{cookiecutter.project_slug}}/mkdocs.yml index 7ea1097..0379659 100644 --- a/{{cookiecutter.project_slug}}/mkdocs.yml +++ b/{{cookiecutter.project_slug}}/mkdocs.yml @@ -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 }}