diff --git a/scripts/blog.py b/scripts/blog.py index 1e48008..9ba6cd0 100644 --- a/scripts/blog.py +++ b/scripts/blog.py @@ -296,15 +296,6 @@ def summarize(doc): for child in summary.children: result.append(child) - # Update summary links and hrefs - for v in result.find_all('video') + result.find_all('image'): - if 'src' in v.attrs and ':' not in v['src']: - v['src'] = '/blog/' + v['src'].lstrip('/') - - for v in result.find_all('a'): - if 'href' in v.attrs and ':' not in v['href']: - v['href'] = '/blog/' + v['href'].lstrip('/') - return result def render_index(docs, dest_top):