Commit Graph

58 Commits

Author SHA1 Message Date
02027ffe16 Updated current I2P version to 0.9.6 2013-06-11 14:00:58 +00:00
ba5d1df89f Added HighlightExtension from https://pypi.python.org/pypi/jinja2-highlight/0.4.0 (GPLv3) 2013-04-25 03:49:55 +00:00
dd7a9e64ce 0.9.5 2013-03-17 19:49:50 +00:00
b0ba9ab98c Disable the languages with no translations (for now) 2013-03-01 21:02:19 +00:00
de4e51e0b6 Factor out blog posts per feed as a constant, halve number of blog posts per page 2013-02-03 03:12:31 +00:00
f063149ab3 Migrated other themes: style.css -> desktop.css 2013-01-21 14:38:50 +00:00
c74b8a5947 Moved themes into subdirs 2013-01-21 10:54:24 +00:00
7ee91521c0 Initialized the cache so that caching decorators can be added
The cache is by default a NullCache - a cache that doesn't cache. Server
operators should configure the cache appropriately, as per the guide at
http://packages.python.org/Flask-Cache/#configuring-flask-cache
2013-01-16 11:23:33 +00:00
2acc8bc433 Blog entries -> Blog posts 2013-01-09 00:32:32 +00:00
a6a39fcb36 Add sitemap generation
Initially the rel="alternate" hreflang="xx" links in the sitemap caused the
size of the file to increase exponentially as additional languages were added.
The current implementation has a single sitemap.xml for each language, with a
sitemap_index.xml at the root.
2013-01-04 12:38:49 +00:00
e9e453a506 Temporarily enable loading of an externally-hosted CSS file 2012-12-21 05:15:42 +00:00
8fbf352b64 Rearranged constants and added comments 2012-12-20 04:49:25 +00:00
d7bce01288 Removed unnecessary block at end of __init__.py 2012-12-19 21:32:10 +00:00
d633b4a704 Split off urls 2012-12-19 21:30:06 +00:00
9def101b32 Split of template functions into a separate file 2012-12-19 13:02:16 +00:00
53d9e40303 Split off downloads code 2012-12-19 12:52:05 +00:00
7701835ece Moved root file views into i2p2www.views, and committed this file (which was missed earlier) 2012-12-19 12:39:53 +00:00
c7b8d77da0 Made change_theme() more stable (so 404 pages render properly) 2012-12-19 12:25:19 +00:00
bc57b82753 Added shorthand functions to make language handling more stable 2012-12-19 12:13:51 +00:00
2ce24d59d3 Removed unused imports 2012-12-19 12:00:12 +00:00
91a70314e3 Added regionalization support to LangConverter 2012-12-19 11:55:05 +00:00
66dca619d7 Moved site_url macro into context processor so could use hasattr(g, 'lang') to fix a bug 2012-12-19 11:43:40 +00:00
487e9ae935 Added / to the end of the base legacy url route
This is required because Flask is forcing (via 301) / to be appended to the url
which previously resulted in no rule matching legacy pages. We could disable
strict_slashes to fix this, but it might cause issues elsewhere.
2012-12-19 11:37:11 +00:00
3da2868589 Added LangConverter so that /en/ can be distinguished from legacy urls like /faq
This is required because "site/" was removed from the urls, but a little backend
trickery is usually necessary to get the urls looking right ^_^
2012-12-19 11:29:33 +00:00
7dbf4a35bd Split off legacy support code 2012-12-19 10:30:49 +00:00
5a088b76c7 Split off meetings code 2012-12-19 07:59:22 +00:00
3ff5e146dc Moved meetings/* to meetings/logs/ (ready for splitting out meetings code) 2012-12-19 06:58:07 +00:00
785f627d7a Reorganized site and blog views and helpers to use LazyView
This increases the speed of the site by not requiring the site and blog code to
be imported on every request - just those that are relevant. It also splits the
code into modules which are easier to work with.
2012-12-19 06:53:59 +00:00
254fab592c Removed "site/" from the main site URLs
It seems that Werkzeug doesn't get confused between /en/blog/ and /en/<path:page>
2012-12-19 04:58:44 +00:00
c9a4c5e77c Add canonical link to <head> of each page 2012-12-19 04:51:36 +00:00
262040fd30 Tweaked mirror code so mirror urls can contain the current I2P version, added Launchpad as HTTPS mirror
NOTE: this enables mirrors that require a version string to download the current version
of files. Older file versions will *not* be downloadable (that would require parsing the
requested filename to try and find a version). Hey, it's better than no support at all =)
2012-12-17 21:59:41 +00:00
f7c84f3473 Removed duplicate links from footer, and added theme changing links 2012-12-15 21:57:32 +00:00
7775b8ed48 Missed __init__.py in last commit 2012-12-15 13:01:09 +00:00
0c837b7a05 forum.i2p2.i2p is currently not clearnet-hosted 2012-12-15 11:28:34 +00:00
b6809fd093 Fixed custom theme loader 2012-12-14 21:51:45 +00:00
fe76f20f0c Implemented pagination for meetings and blog entries 2012-12-14 06:26:21 +00:00
3f19792df7 Use Werkzeug route level defaults to ensure unique urls 2012-12-14 05:27:03 +00:00
8b608ea750 Prepare meetings_index() for pagination 2012-12-14 05:18:40 +00:00
55cda206d9 Migrated hosts.txt and robots.txt 2012-12-11 08:37:35 +00:00
769d983dc3 Dynamically generate meeting index 2012-12-06 23:28:08 +00:00
c7c5623eab Added an Atom meetings feed 2012-12-06 20:15:47 +00:00
fa4d3d413d Adjusted RSS feed url to accept a language 2012-12-05 10:55:05 +00:00
26a3851d69 Finished implementing Atom blog feed
TODO: Only output beginning of each blog entry
2012-12-05 10:51:08 +00:00
b32f13add1 Started implementing Atom blog feed 2012-12-05 05:02:55 +00:00
bedc34b009 Migrated mirroring code into i2p2www 2012-12-05 01:21:34 +00:00
ceb822e2f4 Get I2P/clearnet url conversion working
For reference: a context processor was used to add the function in because this
needs to be evaluated on every request, but the output from a template filter
of a hard-coded string gets cached.
2012-12-03 10:45:35 +00:00
d9bec35b61 Moved debian page into downloads, hard-coded it into downloads_select() 2012-11-10 05:53:24 +00:00
618107505a Dynamically generate latest blog entries
TODO: this should probably be cached somewhere
2012-11-09 00:44:57 +00:00
63133d532b Convert underscores to spaces when using blog entry slugs as link text 2012-09-19 14:11:41 +00:00
0eab5f512a Prevent lang flag being appended to static urls 2012-09-17 21:31:08 +00:00