Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
foo
  • Loading branch information
ralsina committed Aug 18, 2015
1 parent 1a81901 commit 1e65556
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nikola/nikola.py
Expand Up @@ -1059,8 +1059,13 @@ def render_template(self, template_name, output_name, context):

def rewrite_links(self, doc, src, lang):
"""Replace links in document to point to the right places."""

# First let lxml replace most of them
doc.rewrite_links(lambda dst: self.url_replacer(src, dst, lang), resolve_base_href=False)

# lxml ignores srcset in img and source elements, so do that by hand
import pdb; pdb.set_trace()

def url_replacer(self, src, dst, lang=None, url_type=None):
"""Mangle URLs.
Expand Down

0 comments on commit 1e65556

Please sign in to comment.