Explicit commit v2
This commit is contained in:
29
landing.bryanroessler.com/_layouts/categories.html
Normal file
29
landing.bryanroessler.com/_layouts/categories.html
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<h2>Categories:</h2>
|
||||
<div class="categories">
|
||||
{% for catitem in site.categories %}
|
||||
<a href="#{{ catitem[0] }}">{{ catitem[0] }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<!-- iterate through all categories on the site -->
|
||||
{% for catitem in site.categories %}
|
||||
<!-- for each tag, create an anchor by using the tag name as an id -->
|
||||
<div id="{{ catitem[0] }}">
|
||||
<h3> {{ catitem[0] }} </h3> <!-- for create a heading -->
|
||||
|
||||
<ul> <!-- create the list of posts -->
|
||||
<!-- iterate through all the posts on the site -->
|
||||
{% for post in site.posts %}
|
||||
<!-- list only those which contain the current tag -->
|
||||
{% if post.categories contains catitem[0] %}
|
||||
<li>
|
||||
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
16
landing.bryanroessler.com/_layouts/default.html
Normal file
16
landing.bryanroessler.com/_layouts/default.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
{% include head.html %}
|
||||
|
||||
<body>
|
||||
{% include header.html %}
|
||||
|
||||
<div class="content-wrapper">
|
||||
<div class="content-wrapper__inner">
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
{% include footer.html %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
14
landing.bryanroessler.com/_layouts/page.html
Normal file
14
landing.bryanroessler.com/_layouts/page.html
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<article class="post-container post-container--single">
|
||||
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ page.title }}</h1>
|
||||
</header>
|
||||
|
||||
<section class="post">
|
||||
{{ content }}
|
||||
</section>
|
||||
|
||||
</article>
|
||||
20
landing.bryanroessler.com/_layouts/post.html
Normal file
20
landing.bryanroessler.com/_layouts/post.html
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<article class="post-container post-container--single">
|
||||
<header class="post-header">
|
||||
<div class="post-meta">
|
||||
<time datetime="{{ page.date | date: "%Y-%m-%d %H:%M" }}" class="post-meta__date date">{{ page.date | date: "%-d %b %Y" }}</time>
|
||||
{% if page.tags.size > 0 %}
|
||||
• <span class="post-meta__tags">on {% for tag in page.tags %}<a href="{{ site.baseurl }}/tags/#{{ tag }}">{{ tag }}</a> {% endfor %}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<h1 class="post-title">{{ page.title }}</h1>
|
||||
</header>
|
||||
|
||||
<section class="post">
|
||||
{{ content }}
|
||||
</section>
|
||||
{% if page.comments != false and site.disqus_shortname %}<section id="disqus_thread"></section><!-- /#disqus_thread -->{% endif %}
|
||||
</article>
|
||||
{% if page.comments != false %}{% include disqus.html %}{% endif %}
|
||||
29
landing.bryanroessler.com/_layouts/tags.html
Normal file
29
landing.bryanroessler.com/_layouts/tags.html
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<h2>Tags:</h2>
|
||||
<div class="tags">
|
||||
{% for tagitem in site.tags %}
|
||||
<a href="#{{ tagitem[0] }}">{{ tagitem[0] }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<!-- iterate through all tags on the site -->
|
||||
{% for tagitem in site.tags %}
|
||||
<!-- for each tag, create an anchor by using the tag name as an id -->
|
||||
<div id="{{ tagitem[0] }}">
|
||||
<h3> {{ tagitem[0] }} </h3> <!-- for create a heading -->
|
||||
|
||||
<ul> <!-- create the list of posts -->
|
||||
<!-- iterate through all the posts on the site -->
|
||||
{% for post in site.posts %}
|
||||
<!-- list only those which contain the current tag -->
|
||||
{% if post.tags contains tagitem[0] %}
|
||||
<li>
|
||||
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user