Because I'm always looking these up:
{{ entry.plainTextField }}
{{ entry.dateField|date('M j, Y') }}
| /* Additional Default Styles for Responsive */ | |
| html { | |
| box-sizing: border-box; | |
| } | |
| *, | |
| *::before, | |
| *::after { | |
| box-sizing: inherit; } |
| /* How to use: whenever you use a float, add the class "clearfix" to the parent element that wraps the elements that are using floats. Don't place clearfix on the items themselves. */ | |
| /* Many clearfixes use display: table, but I have had better luck in IE with display: block */ | |
| .clearfix:before, .clearfix:after { | |
| content: " "; | |
| display: block; | |
| height: 0; | |
| overflow: hidden; | |
| } |
| --- | |
| layout: default | |
| --- |
| {% include header.html %} | |
| {{ content }} | |
| {% include footer.html %} |
| body { | |
| max-width: 1000px; | |
| padding: 1em; | |
| font-family: Helvetica, Arial, sans-serif; | |
| } | |
| div, section, main, aside, header, footer { | |
| border: 1px solid lightgray; | |
| padding: .5em; | |
| margin-bottom: 1em; |
| <!DOCTYPE html> | |
| <html lang="en-us"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Page Title Goes Here</title> | |
| <meta name="description" content="Page Description Goes Here"> | |
| </head> | |
| <body> |
| <!DOCTYPE html> | |
| <html lang="en-us"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Page Title Goes Here</title> | |
| <meta name="description" content="Page Description Goes Here"> | |
| </head> | |
| <body> |
| // Shrink the Header on scroll // | |
| $(document).on("scroll", function(){ | |
| if | |
| ($(document).scrollTop() > 100){ | |
| $("header").addClass("shrink"); | |
| $("nav").addClass("shrink"); | |
| $(".cd-close-nav").addClass("shrink"); | |
| } | |
| else |