2k11 – A new default theme for Serendipity
2k11 is supposed to become the new default theme for the Serendipity (s9y) blog engine.
This is the development branch of 2k11. This is still subject to (sometimes experimental) changes. I do not recommend using it in a production environment.
If you do want to test it, your blog needs to run at least s9y v1.6. Extract the downloaded archive. I recommend downloading a
.tar.gz file from the Tags section rather than cloning the repo. Keep the folder name if you want to be able to test multiple versions or rename it to
2k11 to have just one version installed. Copy it to
/templates/ and activate it in the s9y backend. (Might need a reload in the frontend.)
Note: If you used Bulletproof or a similar template with a customizable navigation, the global navigation in 2k11 will overwrite your current navigation. Please write down your navigation's URLs and link texts before switching to 2k11.
2k11 is a responsive HTML5 template. It has a fluid grid layout which adapts to the visitor's screen resolution, even on smaller screens down to smartphones. 2k11 looks plain and simple by design, hoping it will appeal to as many users as possible. It is built using:
- HTML5 Boilerplate
- Optional: Google webfonts
- iOS Orientationchange Fix
- jQuery placeholder plugin
- CSS Tricks small screen navigation
2k11 supports three different layouts, activated by pushing sidebar plugins to the standard left/hidden/right sidebars in plugin management in the backend:
- 3 columns, left + right sidebars
- 2 columns, left sidebar only
- 2 columns, right sidebar only
If you leave both sidebars empty, you'll get a layout which looks like 2 columns, right sidebar only – just without a sidebar. Also, the 3-column layout will display both sidebars on one side in small resolutions, effectively turning it into a 2-column layout in those resolutions.
- Date format: Sets a date format used globally in the theme, i.e. for entries, comments, trackbacks, static pages. Basically for anything controlled by the .tpl files provided by 2k11.
- Header image: Pick an image from the s9y media database (or leave empty to omit). This will be added as a banner img between header/search and navigation. It's a responsive images only displayed in screen resolutions higher than 600 pixels. Should be 1120 pixels wide to work properly.
- Google webfont: Pick one of five preselected webfonts or the 'none' option to use Helvetica/Arial. These webfonts are included via the Google webfonts API.
- User stylesheet: Includes an additional stylesheet. Note that this must be called
user.cssand you have to create it manually in your template directory. Also note that both this and the Google webfont option add an additional HTTP request which might cause slight performance issues.
- Navigation: Global navigation provided by s9y core. Switches to an (additionally added using JS)
selectas a pseudo dropdown menu on small screens. Automagically suppresses links if link text or URL is empty, also has an option to not emit the nav at all.
Since changing the (desktop) layout isn't that easy for CSS padawans, I have built a small generator: 2k11 user.css generator.