File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 121
121
122
122
if 'site' in package ['badges' ]:
123
123
if 'site' not in package :
124
- package ['site' ] = '{}.org' .format (package ['repo_name' ])
125
- package ['site_protocol' ] = 'https'
124
+ package ['site' ] = f'https://{ package ["repo_name" ]} .org'
126
125
else :
127
- package ['site_protocol' ], package [ ' site' ] = package ['site' ].rstrip ('/' ). split ( ':/ /' )
126
+ package ['site' ] = package ['site' ].rstrip ('/' )
128
127
129
128
template = Template ((here / 'template.rst' ).read_text ())
130
129
Original file line number Diff line number Diff line change 39
39
40
40
<td >
41
41
{% if 'site' in package.badges %}
42
- <a href =" {{ package.site_protocol}}://{{ package. site }}" >{{ package.name }}</a >
42
+ <a href =" {{ package.site }}" >{{ package.name }}</a >
43
43
{% else %}
44
44
<a href =" https://github.com/{{ package.repo }}" >{{ package.name }}</a >
45
45
{% endif %}
You can’t perform that action at this time.
0 commit comments