Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 1, 2024
1 parent ec9a0f6 commit 45414b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pelican/plugins/sitemap/sitemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ def is_excluded(item):
content_type = (
"articles"
if isinstance(obj, contents.Article)
else "pages"
if isinstance(obj, contents.Page)
else "indexes"
else "pages" if isinstance(obj, contents.Page) else "indexes"
)
changefreq = changefreqs[content_type]
priority = float(priorities[content_type])
Expand Down

0 comments on commit 45414b5

Please sign in to comment.