diff options
author | Simon McVittie <smcv@debian.org> | 2014-11-26 00:02:55 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2014-12-01 21:29:46 +0000 |
commit | ceab72ad341bb216467a3bdaf6ee0a32be99de02 (patch) | |
tree | ea27cb07caa6eaf0b56a485cd967241d3ab3026c /IkiWiki/Render.pm | |
parent | 5fe28eb4c29cb31bd6293beb67cccc9b01e967ec (diff) | |
download | ikiwiki-ceab72ad341bb216467a3bdaf6ee0a32be99de02.tar ikiwiki-ceab72ad341bb216467a3bdaf6ee0a32be99de02.tar.gz |
page.tmpl: tell mobile browsers we have a responsive layout, unless told not to
Mobile browsers typically assume that arbitrary web pages are
designed for a "desktop-sized" browser window (around 1000px)
and display that layout, zoomed out, in order to avoid breaking
naive designs that assume nobody will ever look at a website on
a phone or something. People who are actually doing "responsive
design" need to opt-in to mobile browsers rendering it at a
more normal size.
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r-- | IkiWiki/Render.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 9d6f636a2..c1a3dcbf2 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -134,6 +134,7 @@ sub genpage ($$) { ctime => displaytime($pagectime{$page}, undef, 1), baseurl => baseurl($page), html5 => $config{html5}, + responsive_layout => $config{responsive_layout}, ); run_hooks(pagetemplate => sub { |