diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-13 23:46:55 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-13 23:46:55 (GMT) |
commit | ecd1edf23b263e5a88107179489b433742fb17c9 (patch) | |
tree | 6dedda8b5a155ec95be8db72e53b72e0ba48a9e8 /etc | |
parent | cc385d0de440e66615d3488850d11f0eee44a9b4 (diff) | |
download | site-ecd1edf23b263e5a88107179489b433742fb17c9.tar.gz |
Add an actual News page
Initial support for News pages had been committed already, this commit
completes that support and adds an actual News page. News pages (with
up to ten articles) are auto-created from any pages that have the "date"
attribute set.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/nginx/site.conf | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/nginx/site.conf b/etc/nginx/site.conf index 90ceaea..eb8c5e8 100644 --- a/etc/nginx/site.conf +++ b/etc/nginx/site.conf | |||
@@ -68,6 +68,9 @@ server { | |||
68 | location ^~ /taxonomy/term/2 { | 68 | location ^~ /taxonomy/term/2 { |
69 | return 301 /doc/presentation.html; | 69 | return 301 /doc/presentation.html; |
70 | } | 70 | } |
71 | location ~ ^/doc/release-notes/(.*)$ { | ||
72 | return 301 /news/release-$1; | ||
73 | } | ||
71 | location ~ ^/(?:man.*|guidelines|extra-opts)$ { | 74 | location ~ ^/(?:man.*|guidelines|extra-opts)$ { |
72 | return 301 /doc$request_uri.html; | 75 | return 301 /doc$request_uri.html; |
73 | } | 76 | } |