diff options
author | Danny Holman <dholman@gymli.org> | 2020-01-13 00:32:09 -0600 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2020-01-13 00:32:09 -0600 |
commit | 769d504eb7124040d7a62299b8aadff579780851 (patch) | |
tree | 22f03254e975bcc8b83ee8ad7e6c5a200da56cd6 | |
parent | 58ed6fdd28dcbc65f6e56b92d9b3024091fedabf (diff) |
Override theme header includes
Override the theme's default page and post header information. The page
title should be included below the site name and tagline on all pages
except the front page.
-rw-r--r-- | _includes/page_header.html | 5 | ||||
-rw-r--r-- | _includes/post_header.html | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/_includes/page_header.html b/_includes/page_header.html new file mode 100644 index 0000000..bc06baa --- /dev/null +++ b/_includes/page_header.html @@ -0,0 +1,5 @@ +<div class="container"> + <h1>{{ site.title }}</h1> + <h2>{{ site.description }}</h2> + <h3>{{ page.title }}</h3> +</div> diff --git a/_includes/post_header.html b/_includes/post_header.html new file mode 100644 index 0000000..c7e185f --- /dev/null +++ b/_includes/post_header.html @@ -0,0 +1,12 @@ +<div class="container"> + <h1>{{ page.title }}</h1> + <h4 class="post-description">{{ page.description }}</h4> + <div class="post-date" style="margin-top:20px"> + {{ page.date | date: date_format }} + </div> + <ul class="post-tags"> + {%- for tag in page.categories -%} + <li>{{ tag }}</li> + {%- endfor -%} + </ul> +</div> |