-
Notifications
You must be signed in to change notification settings - Fork 1
Home
This is a base design for McClatchy's Special Projects Template (sometimes referred to as the Escenic Sinclair template). Honeycomb is for local development that can easily be moved over to Content Studio for testing and publishing.
Honeycomb standardizes and streamlines the process of creating special project designs within Content Studio by providing HTML, styles and scripts to give news developers a running start at customization.
Honeycomb is for McClatchy front-end developers who want to give projects a special treatment beyond the standard article page.
- Go to the [Honeycomb repo] (https://github.com/mcclatchy/honeycomb) and download the zip.
- Unzip
honeycomb-master
and place its contents in your local project folder, deletinghoneycomb-master
once it's empty. - Open a new terminal window and change directories to your project folder with the Honeycomb files.
- Enter
php -S localhost:8000
. - Go to the
localhost:8000
web address in your browser to see your new project and begin customizing project files. - For Sass (optional): Change directories to
/honeycomb/static
in a new terminal window, entersass --watch sass:css
to begin watching your files.
index.php
is a local version of a basic McClatchy page framework (i.e. the market's header/footer, styles, etc.). The contents of this file create a local developing environment for you but shouldn't be edited or included in Newsgate.
custom.php
starts with a sample story and generic elements that is your canvass to customize.
-
<!-- custom head -->
is where you may add style and miscellaneous dependencies. -
<!-- custom body -->
is where you may add HTML and usually includes:-
<!-- content header -->
for hero images/videos, title text and other top hierarchy elements. -
<!-- content well -->
for story text, art and other elements weaved throughout the story. -
<!-- content footer -->
for breakout sections, suggested stories, comments and other bottom hierarchy elements.
-
-
<!-- custom scripts -->
is where you may add JS or other script dependencies.
####Existing dependencies
-
css/base.css
andscripts/base.js
contain all of the base styles and scripts. Changes to these files are not recommended. -
css/custom.css
is where new styles should be added to build upon or override those established incss/base.css
. -
scripts/custom.js
is where new scripts should be added.
####Sass
-sass/custom.scss
is available and ready to compile into its .css counterpart if you prefer writing with Sass.
-
sass/_variables.scss
,sass/_extendables.scss
andsass/_site-colors.scss
are [partials] (http://sass-lang.com/guide/#partials).
No changes... yet.