-
Notifications
You must be signed in to change notification settings - Fork 1
Home
This is a base design for McClatchy's Special Projects Template. It has been created for local development that can easily be moved over to Newsgate for testing and publishing.
Honeycomb standardizes and streamlines the process of creating special project designs within Newsgate/Escenic 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.
Make sure you have a GitHub account and Git installed on your computer.
- Fork the Honeycomb repository to your GitHub account.
- Click
clone or downloadand copy the URL from your forked repository. - Open your terminal and navigate to the directory that your project will live in.
- Clone the forked repository by pasting
git clone YOUR REPO URLinto your terminal. - Navigate into your local Honeycomb directory and enter
php -S localhost:8000. - Go to the
localhost:8000web address in your browser to see your new project and begin customizing project files. - For Sass (optional): Go to
/honeycomb/staticin a new terminal window, entersass --watch sass:cssto 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 body -->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.cssandscripts/base.jscontain all of the base styles and scripts. Changes to these files are not recommended. -
css/custom.cssis where new styles should be added to build upon or override those established incss/base.css. -
scripts/custom.jsis 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.scssandsass/_site-colors.scssare [partials] (http://sass-lang.com/guide/#partials).
- Upload your
img,cssandscriptsdirectories to your server. - Update your dependencies and image links in
custom.phpwith their new URLs. - Paste your
custom bodycode (excluding body copy) fromcustom.phpinto Newsgate'smm_linksections. Include theirmm_embedcounterparts within the story copy.
No changes... yet.