kytv
fb54baaf77
allow system flask-cache/babel to be used
2013-08-31 23:59:03 +00:00
str4d
a805cc541a
Removed absolute links to this site
2013-08-31 04:55:09 +00:00
str4d
b6eec49511
Set up site-specific settings
2013-08-31 04:48:31 +00:00
str4d
564922e651
Define site domain in one place
2013-08-31 04:31:20 +00:00
str4d
3e3a438ff9
Define default gettext domain in one place
2013-08-31 04:27:20 +00:00
str4d
2790dd1024
disapproval of revision '131c16962ceb9e26f1f792b2866fa405a5105983'
2013-08-30 23:31:41 +00:00
str4d
03f910fa20
Temporarily disable translations for testing
2013-08-30 10:35:01 +00:00
str4d
f20c5e76f9
Updated canonical domain for testing
2013-08-30 06:32:35 +00:00
str4d
97ea744206
Added zh_CN translation
2013-08-23 12:49:49 +00:00
str4d
e9e2fcbbc6
Rough migration to working papers page
2013-08-11 13:05:05 +00:00
str4d
97a568f3c0
0.9.7.1
2013-08-11 09:01:06 +00:00
str4d
e7ffd2b587
New priority translations: Portugese
2013-07-18 04:43:41 +00:00
str4d
e1cc1c5939
sv -> sv_SE to match Transifex source
2013-07-18 02:30:45 +00:00
str4d
346364747e
0.9.7
2013-07-16 09:53:10 +00:00
str4d
d98a792615
Implement mapping of urls to gettext domains
...
The mapping exists both here and in babel.cfg/*, but this is unavoidable.
2013-07-14 07:02:24 +00:00
str4d
1e5a48aad3
Guess request language from supported languages only
2013-07-14 07:01:13 +00:00
str4d
02027ffe16
Updated current I2P version to 0.9.6
2013-06-11 14:00:58 +00:00
str4d
ba5d1df89f
Added HighlightExtension from https://pypi.python.org/pypi/jinja2-highlight/0.4.0 (GPLv3)
2013-04-25 03:49:55 +00:00
str4d
dd7a9e64ce
0.9.5
2013-03-17 19:49:50 +00:00
str4d
b0ba9ab98c
Disable the languages with no translations (for now)
2013-03-01 21:02:19 +00:00
str4d
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
str4d
f063149ab3
Migrated other themes: style.css -> desktop.css
2013-01-21 14:38:50 +00:00
str4d
c74b8a5947
Moved themes into subdirs
2013-01-21 10:54:24 +00:00
str4d
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
str4d
2acc8bc433
Blog entries -> Blog posts
2013-01-09 00:32:32 +00:00
str4d
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
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