Browse Source

replace media links with cdn

pull/1/head
Annika Backstrom 1 year ago
parent
commit
abcb6378aa
2 changed files with 7 additions and 5 deletions
  1. 7
    1
      pelicanconf.py
  2. 0
    4
      publishconf.py

+ 7
- 1
pelicanconf.py View File

@@ -116,9 +116,10 @@ PLUGIN_PATHS = [
]

PLUGINS = [
'sitemap',
'gzip_cache',
'replacer',
'simple_footnotes',
'sitemap',
]

SITEMAP = {
@@ -134,3 +135,8 @@ SITEMAP = {
'pages': 'weekly'
},
}

REPLACES = (
(u'src="/media/', u'src="https://iabackstrom.b-cdn.net/share/'),
(u'href="/media/', u'href="https://iabackstrom.b-cdn.net/share/'),
)

+ 0
- 4
publishconf.py View File

@@ -13,7 +13,3 @@ ENVIRONMENT = 'production'
DELETE_OUTPUT_DIRECTORY = True

RELATIVE_URLS = False

REPLACES = (
(u'https://sixohthree.com/media/', u'https://iabackstrom.b-cdn.net/share/'),
)

Loading…
Cancel
Save