Commit Graph

408 Commits

Author SHA1 Message Date
str4d
4c5f6f1bf3 Enable themes to have different I2P logos, with a default fallback 2012-12-23 01:36:44 +00:00
str4d
dcf058d78e Tweaked old themes for new topbar template layout 2012-12-23 01:28:11 +00:00
str4d
1217dbe264 Merged template layout of topbar for duck's and danimoth's themes 2012-12-23 00:05:58 +00:00
str4d
c106e2fbd2 Don't display the language menu in sidebar for danimoth theme 2012-12-22 00:41:01 +00:00
str4d
8557308e0e Added danimoth's theme to footer 2012-12-22 00:37:54 +00:00
str4d
dff49f3844 Tweaks to get danimoth's theme looking as close as possible to the original 2012-12-22 00:37:11 +00:00
str4d
23199aaa7d Temporarily patched in danimoth's layout into layout.html 2012-12-21 22:48:27 +00:00
str4d
589cf4f981 Added danimoth's CSS 2012-12-21 22:47:54 +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
3c3b4ed706 Moved ver() into templatevars so only need to change I2P version in one place 2012-12-20 04:46:37 +00:00
str4d
9527fcd19c Attempt to prevent title text overlapping with the header image (though second line sits behind the menu...) 2012-12-20 04:41:03 +00:00
str4d
e6e11fa905 Migrated docs index over to lastupdated and accuratefor tags 2012-12-20 02:08:53 +00:00
str4d
cc292624d2 Tweak the color of the second- and third-level menus 2012-12-20 02:07:24 +00:00
str4d
d99220f113 Added side borders to .inner and rounded the top corners 2012-12-20 01:42:23 +00:00
str4d
f1a1d63e2a Changes to the menubar CSS to bring it as close to duck's original theme as possible 2012-12-20 01:41:26 +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
0312088547 Removed rel="nofollow" from the footer links to the t-shirt sites (they aren't mirrors) 2012-12-19 20:53:18 +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
30876c09f3 Use the new get_flag() template function in the Language menu 2012-12-19 12:18:14 +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
85c2ca464c Added a few legacy pages (and distinguished them from pages that are now functions) 2012-12-19 10:55:11 +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
8f9e8fb178 Added LazyView from http://flask.pocoo.org/docs/patterns/lazyloading/ to helpers 2012-12-19 05:28:01 +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
8b5633c881 Added rel="alternate" hreflang="XX" to language changer links
AFAICT these attributes are meant to be on <link> tags, but it shouldn't hurt
having them here instead (though if it doesn't help and <link> tags need to be
added, then this commit should probably be reverted).
2012-12-19 04:29:43 +00:00
str4d
fe4852a9eb Display current language flag next to the Language menu (for easier identification) 2012-12-19 04:08:41 +00:00
str4d
766c8059f4 Keep the current website's title for the front page (to help keep its existing page rank for "anonymous network") 2012-12-19 02:53:11 +00:00
str4d
e6287d4edb Fixed a url-building error on support/faq 2012-12-19 02:07:10 +00:00
str4d
db3a7de35d Moved the old (but not replaced) pages into misc/ 2012-12-19 01:58:58 +00:00
str4d
914492e625 Moved the last few unsorted pages into misc/ (and ports into docs/) 2012-12-19 01:47:48 +00:00
str4d
32db04d701 Rounded bottom corners of .lastupdated box 2012-12-18 00:44:54 +00:00
str4d
18e26d6cc3 Replace half of .inner padding with margin -> adds side border to all pages 2012-12-18 00:42:19 +00:00
str4d
9acb01be7a Added Google Code as an HTTPS mirror, sorted mirrors file by org 2012-12-17 22:19:39 +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
68ce69fdd1 Add title to blog ATOM feed link on front page 2012-12-17 21:36:43 +00:00
str4d
a665d6153f 500 error page should have minimal reliance on the backend (so it doesn't error itself) 2012-12-17 21:31:55 +00:00