@@ -74,6 +74,34 @@ http://{{ caddy.addresses.main }}, http://{{ ansible_fqdn }} {
74
74
import subproject {{ site }}
75
75
{% endfor %}
76
76
77
+ # Moved matplotblog to Scientific Python blog.
78
+ ##############################################
79
+ # Top-level post listings go to matplotlib tag.
80
+ @matplotblog {
81
+ path /matplotblog
82
+ path /matplotblog/
83
+ path /matplotblog/index.html
84
+ path /matplotblog/posts
85
+ path /matplotblog/posts/
86
+ path /matplotblog/posts/index.html
87
+ path /matplotblog/page
88
+ path /matplotblog/page/*
89
+ }
90
+ redir @matplotblog https://blog.scientific-python.org/tags/matplotlib/
91
+ # New blog doesn't do any post-processing of images, so go to original image.
92
+ @matplotblog_processed_image {
93
+ path_regexp image /matplotblog/posts/(.*)_hu[a-z0-9]+_[0-9]+_(400x300_fit|800x0_resize)_(q75_lanczos|lanczos_3).(png|jpeg|jpg)
94
+ }
95
+ redir @matplotblog_processed_image https://blog.scientific-python.org/posts/matplotlib/{re.image.1}.{re.image.4}
96
+ # Special cases.
97
+ redir /matplotblog/posts/how-to-contribute https://blog.scientific-python.org/submitting/
98
+ redir /matplotblog/posts/how-to-contribute/* https://blog.scientific-python.org/submitting/
99
+ # Everything else is a post or its assets, so redirect to the right post page/asset.
100
+ @matplotblog_post {
101
+ path_regexp post /matplotblog/posts/(.*)
102
+ }
103
+ redir @matplotblog_post https://blog.scientific-python.org/posts/matplotlib/{re.post.1}
104
+
77
105
# Hide mpl-altair until the site is fixed.
78
106
redir /mpl-altair https://github.com/matplotlib/mpl-altair temporary
79
107
redir /mpl-altair/* https://github.com/matplotlib/mpl-altair temporary
0 commit comments