str4d
e9e453a506
Temporarily enable loading of an externally-hosted CSS file
2012-12-21 05:15:42 +00:00
str4d
8fbf352b64
Rearranged constants and added comments
2012-12-20 04:49:25 +00:00
str4d
d7bce01288
Removed unnecessary block at end of __init__.py
2012-12-19 21:32:10 +00:00
str4d
d633b4a704
Split off urls
2012-12-19 21:30:06 +00:00
str4d
9def101b32
Split of template functions into a separate file
2012-12-19 13:02:16 +00:00
str4d
53d9e40303
Split off downloads code
2012-12-19 12:52:05 +00:00
str4d
7701835ece
Moved root file views into i2p2www.views, and committed this file (which was missed earlier)
2012-12-19 12:39:53 +00:00
str4d
c7b8d77da0
Made change_theme() more stable (so 404 pages render properly)
2012-12-19 12:25:19 +00:00
str4d
bc57b82753
Added shorthand functions to make language handling more stable
2012-12-19 12:13:51 +00:00
str4d
2ce24d59d3
Removed unused imports
2012-12-19 12:00:12 +00:00
str4d
91a70314e3
Added regionalization support to LangConverter
2012-12-19 11:55:05 +00:00
str4d
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
str4d
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
str4d
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
str4d
7dbf4a35bd
Split off legacy support code
2012-12-19 10:30:49 +00:00
str4d
5a088b76c7
Split off meetings code
2012-12-19 07:59:22 +00:00
str4d
3ff5e146dc
Moved meetings/* to meetings/logs/ (ready for splitting out meetings code)
2012-12-19 06:58:07 +00:00
str4d
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
str4d
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
str4d
c9a4c5e77c
Add canonical link to <head> of each page
2012-12-19 04:51:36 +00:00
str4d
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
str4d
f7c84f3473
Removed duplicate links from footer, and added theme changing links
2012-12-15 21:57:32 +00:00
str4d
7775b8ed48
Missed __init__.py in last commit
2012-12-15 13:01:09 +00:00
str4d
0c837b7a05
forum.i2p2.i2p is currently not clearnet-hosted
2012-12-15 11:28:34 +00:00
str4d
b6809fd093
Fixed custom theme loader
2012-12-14 21:51:45 +00:00
str4d
fe76f20f0c
Implemented pagination for meetings and blog entries
2012-12-14 06:26:21 +00:00
str4d
3f19792df7
Use Werkzeug route level defaults to ensure unique urls
2012-12-14 05:27:03 +00:00
str4d
8b608ea750
Prepare meetings_index() for pagination
2012-12-14 05:18:40 +00:00
str4d
55cda206d9
Migrated hosts.txt and robots.txt
2012-12-11 08:37:35 +00:00
str4d
769d983dc3
Dynamically generate meeting index
2012-12-06 23:28:08 +00:00
str4d
c7c5623eab
Added an Atom meetings feed
2012-12-06 20:15:47 +00:00
str4d
fa4d3d413d
Adjusted RSS feed url to accept a language
2012-12-05 10:55:05 +00:00
str4d
26a3851d69
Finished implementing Atom blog feed
...
TODO: Only output beginning of each blog entry
2012-12-05 10:51:08 +00:00
str4d
b32f13add1
Started implementing Atom blog feed
2012-12-05 05:02:55 +00:00
str4d
bedc34b009
Migrated mirroring code into i2p2www
2012-12-05 01:21:34 +00:00
str4d
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
str4d
d9bec35b61
Moved debian page into downloads, hard-coded it into downloads_select()
2012-11-10 05:53:24 +00:00
str4d
618107505a
Dynamically generate latest blog entries
...
TODO: this should probably be cached somewhere
2012-11-09 00:44:57 +00:00
str4d
63133d532b
Convert underscores to spaces when using blog entry slugs as link text
2012-09-19 14:11:41 +00:00
str4d
0eab5f512a
Prevent lang flag being appended to static urls
2012-09-17 21:31:08 +00:00
str4d
c2a739e9fd
Added /favicon.ico path for legacy browsers
2012-09-17 13:29:31 +00:00
str4d
fcbf62afe6
Added translation support using Flask-Babel
2012-09-17 01:19:57 +00:00
str4d
2ab919e1cf
Added the 'i2pconv' template filter to convert I2P urls to clearnet as required
2012-09-15 04:54:16 +00:00
str4d
255524a1de
Display blog entries latest-first
2012-09-14 01:23:53 +00:00
str4d
b13744ae18
Bugfix to get blog entries to render
2012-09-14 00:13:38 +00:00
str4d
5419e6c1ca
disapproval of revision '378ab6a882c7ce887e80fb4ada4fd04eb2d21c39'
2012-09-13 21:05:56 +00:00
str4d
f8b1cbffbb
Dynamically generate meetings index (as for blog index)
2012-09-13 03:42:24 +00:00
str4d
e55dd6185e
Moved i2p2www to root directory (since other sites stored in i2p.www will be (re)moved)
2012-09-12 21:30:36 +00:00