We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 539fd94 commit 6821055Copy full SHA for 6821055
fetch_blogs.py
@@ -114,7 +114,8 @@ def main() :
114
title = remove_date_from_title(content_file.name[:-3])
115
# Check if permalink exists in front matter, otherwise construct from filename
116
if 'permalink' in first_lines and first_lines['permalink']:
117
- repo_url = f"https://xrdocs.io{first_lines['permalink']}"
+ # Permalink is relative, prepend repo name
118
+ repo_url = f"https://xrdocs.io/{repo_name}{first_lines['permalink']}"
119
else:
120
repo_url = f'https://xrdocs.io/{repo_name}/{directory[1:]}/{content_file.name[:-3]}/'
121
description = first_lines.get('excerpt', '')
0 commit comments