diff --git a/risonia_theme/plugins/classes/plugin.py b/risonia_theme/plugins/classes/plugin.py index 4ae187b..173bc48 100644 --- a/risonia_theme/plugins/classes/plugin.py +++ b/risonia_theme/plugins/classes/plugin.py @@ -56,6 +56,7 @@ def on_page_content(self, html, page, config, files): #send external links to new tab? if 'extblank' in config['theme']._vars and config['theme']._vars['extblank']: for link_tag in soup.find_all('a'): + href = link_tag['href'] if href.startswith('http://') or href.startswith('https://'): if not 'target' in link_tag: link_tag['target'] = '_blank'