SF Fed Blog Archive Template
A one-column page used for SF Fed's blog archive page, which lists links to blog entries.
Resize window to see mobile.
-
Section Header
Wrap header with <header class="section-header">. Define section further with <h3> and <a id="x">, where x = section header id; color is from section header class. On scroll on desktop and tablet, JavaScript will affix header to top (with Menu and Search). (See scripts.js.) -
Headcrumb
Connect the page to parent via a headcrumb, containing it in <header class="section-header">; and wrapping the link in <h4> and <a id="page-title-ourdistrict-about">. -
Main body
Define body content with a wrapper <main id="main" class="m-all t-all d-all cf" role="main">. Define inner wrapper with <article role="article" class="m-all t-10of12 d-10of12 t-o-1of12 d-o-1of12">. This functions as desktop and tablet layout. -
Social links
Create a container with <div id="share-links"> and call appropriate icons and links, following the order seen here. -
Header
Use straight <h1> for blog title. -
Blog post link and post date
Code the template to pull blog posts in descending order by date. Then, style the title link with <h1 class="h5">; and the date with <p class="meta date">. -
Hero image
Enclose image in a <div class="blog-hero">; and size the image at 670 x 268. -
Blog post teaser
Use <div> for teaser and add a "Read more" link at the end.