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 = [
116 116
 ]
117 117
 
118 118
 PLUGINS = [
119
-    'sitemap',
120 119
     'gzip_cache',
120
+    'replacer',
121 121
     'simple_footnotes',
122
+    'sitemap',
122 123
 ]
123 124
 
124 125
 SITEMAP = {
@@ -134,3 +135,8 @@ SITEMAP = {
134 135
         'pages': 'weekly'
135 136
     },
136 137
 }
138
+
139
+REPLACES = (
140
+    (u'src="/media/', u'src="https://iabackstrom.b-cdn.net/share/'),
141
+    (u'href="/media/', u'href="https://iabackstrom.b-cdn.net/share/'),
142
+)

+ 0
- 4
publishconf.py View File

@@ -13,7 +13,3 @@ ENVIRONMENT = 'production'
13 13
 DELETE_OUTPUT_DIRECTORY = True
14 14
 
15 15
 RELATIVE_URLS = False
16
-
17
-REPLACES = (
18
-    (u'https://sixohthree.com/media/', u'https://iabackstrom.b-cdn.net/share/'),
19
-)

Loading…
Cancel
Save