@@ -99,7 +99,7 @@ class Tag(object):
def slug(self):
_slug = self.name.lower()
_slug = re.sub(r'[;:,. ]+', '-', _slug.lstrip(',.;:-'))
- return _slug
+ return _slug.lstrip('-')
@property
def posts(self):
@@ -268,3 +268,6 @@ def test_build():
with open(os.path.join(CONFIG['output_to'], 'archive', 'index.html')) as html_index:
soup = BeautifulSoup(html_index.read(), 'html.parser')
assert len(soup.find_all(class_='post')) == 12
+
+ # todo, check tag pages
+ # tag pages are not built properly