Skip to content

Instantly share code, notes, and snippets.

View jessebc's full-sized avatar

Jesse Bennett-Chamberlain jessebc

  • Lantern
  • Grimsby, Ontario
View GitHub Profile
@jessebc
jessebc / part 1.html
Created August 12, 2012 15:12
Dynamic CSS Navigation with EE
<html>
<head>
<style type="text/css">
#Nav #NavList{segment_3} {
background-color: #eee;
color: #3F7E86;
}
</style>
</head>
@jessebc
jessebc / css.css
Created August 12, 2012 15:16
Dynamic CSS Navigation with EE
<style type="text/css">
#Nav #NavListC10 {
background-color: #eee;
color: #3F7E86;
}
</style>
@jessebc
jessebc / Nav.html
Created August 12, 2012 15:17
Dynamic CSS Navigation with EE
<ul id="Nav">
<li><a href="/" id="NavListC9">Category 1</a></li>
<li><a href="/" id="NavListC10">Category 2</a></li>
<li><a href="/" id="NavListC11">Category 3</a></li>
<li><a href="/" id="NavListC12">Category 4</a></li>
<li><a href="/" id="NavListC13">Category 5</a></li>
</ul>
<ul>
{exp:weblog:entries weblog="notes" offset="200"}
<li><a href="/exp/{entry_id}/{entry_date format="%Y-%m-%d"}-{url_title}.md">{title}</a></li>
{/exp:weblog:entries}
</ul>
{exp:weblog:entries weblog="articles" limit="1" entry_id="{segment_2}" }title: {title}
status: {status}
comments: Show
post_type: Text
---
{body}
{/exp:weblog:entries}
@jessebc
jessebc / prettify.html
Created October 3, 2012 15:48
Highlighting without Prettify
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="js/google-code-prettify/prettify.css" />