Skip to content

Commit eabbcde

Browse files
authored
Link license badge to project license (#1149)
1 parent 810d108 commit eabbcde

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

{{cookiecutter.project_name}}/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
[pypi_]: https://pypi.org/project/{{cookiecutter.project_name}}/
1616
[status]: https://pypi.org/project/{{cookiecutter.project_name}}/
1717
[python version]: https://pypi.org/project/{{cookiecutter.project_name}}
18-
[license]: https://opensource.org/licenses/{{cookiecutter.license}}
1918
[read the docs]: https://{{cookiecutter.project_name}}.readthedocs.io/
2019
[tests]: https://github.com/{{cookiecutter.github_user}}/{{cookiecutter.project_name}}/actions?workflow=Tests
2120
[codecov]: https://app.codecov.io/gh/{{cookiecutter.github_user}}/{{cookiecutter.project_name}}
@@ -49,7 +48,7 @@ To learn more, see the [Contributor Guide].
4948

5049
## License
5150

52-
Distributed under the terms of the [{{cookiecutter.license.replace("-", " ")}} license],
51+
Distributed under the terms of the [{{cookiecutter.license.replace("-", " ")}} license][license],
5352
_{{cookiecutter.friendly_name}}_ is free and open source software.
5453

5554
## Issues
@@ -69,6 +68,6 @@ This project was generated from [@cjolowicz]'s [Hypermodern Python Cookiecutter]
6968

7069
<!-- github-only -->
7170

72-
[{{cookiecutter.license.replace("-", " ").lower()}} license]: https://github.com/{{cookiecutter.github_user}}/{{cookiecutter.project_name}}/blob/main/LICENSE
71+
[license]: https://github.com/{{cookiecutter.github_user}}/{{cookiecutter.project_name}}/blob/main/LICENSE
7372
[contributor guide]: https://github.com/{{cookiecutter.github_user}}/{{cookiecutter.project_name}}/blob/main/CONTRIBUTING.md
7473
[command-line reference]: https://{{cookiecutter.project_name}}.readthedocs.io/en/latest/usage.html

{{cookiecutter.project_name}}/docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ end-before: <!-- github-only -->
44
---
55
```
66

7-
[{{cookiecutter.license.replace("-", " ").lower()}} license]: license
7+
[license]: license
88
[contributor guide]: contributing
99
[command-line reference]: usage
1010

0 commit comments

Comments
 (0)