Browse Source

Rearrange stuffs & add categories

master
sipp11 10 years ago
parent
commit
b6ac9e37d4
  1. 7
      _includes/footer.html
  2. 2
      _includes/header.html
  3. 2
      _sass/_base.scss
  4. 1
      about.md
  5. 2
      archive.html
  6. 31
      categories.html
  7. 2
      projects.md
  8. 2
      tags.html

7
_includes/footer.html

@ -14,6 +14,13 @@
<div class="footer-col footer-col-2">
<ul class="social-media-list">
{% for page in site.pages %}
{% unless page.header_display %}
{% if page.title %}
<li><a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a></li>
{% endif %}
{% endunless %}
{% endfor %}
{% if site.github_username %}
<li>
<a href="https://github.com/{{ site.github_username }}">

2
_includes/header.html

@ -22,7 +22,7 @@
</form>
</a>
{% for page in site.pages %}
{% if page.title %}
{% if page.title and page.header_display %}
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
{% endif %}
{% endfor %}

2
_sass/_base.scss

@ -98,7 +98,7 @@ a {
&:hover {
color: $text-color;
text-decoration: underline;
text-decoration: none;
}
}

1
about.md

@ -2,6 +2,7 @@
layout: page
title: About
permalink: /about/
header_display: false
---
What is __everyday.in.th__?

2
archive.html

@ -1,6 +1,8 @@
---
layout: default
title : Archive
permalink: /archive/
header_display: false
---
<section id="archive">
{% assign posts_collate = site.posts %}

31
categories.html

@ -0,0 +1,31 @@
---
layout: default
title: Categories
permalink: /categories/
header_display: true
---
<!--TODO: Find a fix to tags with spaces-->
<ul class="tag_box inline">
{% if site.categories.first[0] != null %}{% comment %} If tags exist {% endcomment %}
{% for category in site.categories %}{% comment %} add an element like the following for each tag item {% endcomment %}
<li><a href="#{{ category[0] }}"><span class="label label-success">{{ category[0] }}</span> {% comment %} This is just the tag name {% endcomment %}
<span>{{ category[1].size }}</span>{% comment %} This counts the number of posts in a given tag {% endcomment %}
</a></li>
{% endfor %}
{% endif %}
</ul>
{% for category in site.categories %}
<h1 id="{{ category[0] }}">{{ category[0] }}</h1>
<ul>
{% for post in category[1] %}
{% if post.title != null %}
{% if page.url == post.url %}
<li class="active"><a href="#" class="active">{{post.title}}</a></li>
{% else %}
<li>{{ post.date | date: "%B %e, %Y" }} &raquo; <a href="{{post.url}}">{{post.title}}</a></li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
{% endfor %}

2
projects.md

@ -1,6 +1,8 @@
---
layout: default
title : Projects
permalink: /projects/
header_display: true
---
## Projects

2
tags.html

@ -1,6 +1,8 @@
---
layout: default
title: Tags
permalink: /tags/
header_display: false
---
<!--TODO: Find a fix to tags with spaces-->
<ul class="tag_box inline">

Loading…
Cancel
Save