Commit Graph

2210 Commits

Author SHA1 Message Date
str4d
b8fcea2429 Added feed icon CSS to danimoth's theme 2012-12-23 12:49:34 +00:00
str4d
53f2c23930 Removed debug print statements 2012-12-23 12:45:35 +00:00
str4d
5e1b2a55eb Fixed min-width of container-fluid in danimoth's theme 2012-12-23 12:43:44 +00:00
str4d
9b72db7c59 Fixed some danimoth CSS that wasn't being applied to the Download button on the front page 2012-12-23 12:36:03 +00:00
str4d
13666290a4 Finished merging duck's and danimoth's template layouts 2012-12-23 12:21:26 +00:00
str4d
84ec056c96 Removed .news div (since it is repeating info), fixed navbar alignment in danimoth
It would be good to be able to position some sort of info box in that location for
danimoth's theme (even e.g. the lastupdated/accuratefor infobox)
2012-12-23 12:09:18 +00:00
str4d
20c331f7b3 Fixed a row alignment issue in danimoth's theme 2012-12-23 12:06:40 +00:00
str4d
5f235ec115 Use HTML5 <article> tag in duck's layout 2012-12-23 12:05:10 +00:00
str4d
97c0cee69a Started merging navigation into a common template header
The navbar on danimoth's theme is now absolutely positioned, which
does mean that on pages without the .news div, there is an empty
space above the navbar
2012-12-23 12:02:39 +00:00
str4d
e86522886b Handle the sidebar better in the older themes 2012-12-23 10:50:17 +00:00
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