Skip to content

Commit

Permalink
Switch default to 160 (max recomended SEO length)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Dec 24, 2020
1 parent bc46d77 commit 0c7b832
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mkdocs_rss_plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

class GitRssPlugin(BasePlugin):
config_scheme = (
("abstract_chars_count", config_options.Type(int, default=150)),
("abstract_chars_count", config_options.Type(int, default=160)),
("category", config_options.Type(str, default=None)),
("date_from_meta", config_options.Type(dict, default=None)),
("feed_ttl", config_options.Type(int, default=1440)),
Expand Down Expand Up @@ -169,7 +169,7 @@ def on_page_markdown(
in_page=page,
source_date_creation=self.src_date_created,
source_date_update=self.src_date_updated,
meta_datetime_format=self.meta_datetime_format
meta_datetime_format=self.meta_datetime_format,
)

# append to list to be filtered later
Expand Down
5 changes: 2 additions & 3 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# ##################################

# Standard library
import logging
import unittest
from pathlib import Path

Expand Down Expand Up @@ -55,7 +54,7 @@ def tearDownClass(cls):
def test_plugin_config_defaults(self):
# default reference
expected = {
"abstract_chars_count": 150,
"abstract_chars_count": 160,
"category": None,
"date_from_meta": None,
"feed_ttl": 1440,
Expand All @@ -73,7 +72,7 @@ def test_plugin_config_defaults(self):
def test_plugin_config_image(self):
# reference
expected = {
"abstract_chars_count": 150,
"abstract_chars_count": 160,
"category": None,
"date_from_meta": None,
"feed_ttl": 1440,
Expand Down

0 comments on commit 0c7b832

Please sign in to comment.