Skip to content

Commit 404dcf5

Browse files
committed
Arreglar los permalinks para que sean relativos
1 parent 0cca2fa commit 404dcf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/flexsearch_plugin/flexsearch_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def build_index():
5151
index[post.meta('slug')] = {
5252
'title': post.title(),
5353
'content': post.text(strip_html=True),
54-
'url': post.permalink()
54+
'url': post.permalink(absolute=False)
5555
}
5656
with open(index_file_path, 'w', encoding='utf-8') as f:
5757
json.dump(index, f, ensure_ascii=False)

0 commit comments

Comments
 (0)