From 49ca9df209fa771fec8eb2ca57617643948d0f31 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 27 Oct 2010 11:22:39 -0500 Subject: Allow index and donate page to use resources from CDN The index page is obviously hit more than just about every other page, so this will benefit the most from moving the sponsor images to a different domain. The donate page uses the same images. Signed-off-by: Dan McGee --- templates/public/donate.html | 11 ++++++----- templates/public/index.html | 21 ++++++++++++++------- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/templates/public/donate.html b/templates/public/donate.html index d8fa8847..b5fc43df 100644 --- a/templates/public/donate.html +++ b/templates/public/donate.html @@ -1,10 +1,11 @@ {% extends "base.html" %} {% load cache %} +{% load cdn %} {% block title %}Arch Linux - Donate{% endblock %} {% block content %} -{% cache 600 donations %} +{% cache 600 donations secure %}

Donate to Arch Linux

@@ -57,18 +58,18 @@ in a server rack, bandwidth, and electricity for our main server.

We also wish to extend a special Thank You to SevenL Networks for their generous and ongoing contribution of a dedicated Arch Linux - server . You too can have a dedicated Arch Linux server hosted by SevenL... + server. You too can have a dedicated Arch Linux server hosted by SevenL... head over to their website for more details.

@@ -76,7 +77,7 @@ title="AirVM.com">AirVM.com for contributing a VMWare-based Virtual Machine.

Past donors

diff --git a/templates/public/index.html b/templates/public/index.html index aa3f5c08..ace7bd31 100644 --- a/templates/public/index.html +++ b/templates/public/index.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% load markup %} {% load cache %} +{% load cdn %} {% block head %} @@ -8,7 +9,7 @@ {% endblock %} {% block content_left %} -{% cache 300 main-page-left %} +{% cache 300 main-page-left secure %}

A simple, lightweight distribution

@@ -41,7 +42,7 @@ title="Browse the news archives">more) RSS Feed + class="rss-icon">RSS Feed {% for news in news_updates %}

@@ -73,7 +74,7 @@ title="Browse all of the latest packages">more)

RSS Feed + class="rss-icon">RSS Feed {% for update in pkg_updates %} @@ -207,9 +208,15 @@
- Velocity Network - It's about time - We would like to express our thanks to SevenL Networks for their generous contribution - AirVM.com - Your Green Technology Partner + + Velocity Network - It's about time + + + We would like to express our thanks to SevenL Networks for their generous contribution + + + AirVM.com - Your Green Technology Partner +
{% endcache %} -- cgit v1.2.3-2-g168b