Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariel Santos committed Jan 16, 2018
1 parent c13edc4 commit 5edfecb
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
url: https://asantos07.github.io
baseurl: /jekyll-theme-windows95/
baseurl: /jekyll-theme-windows95

# variables
title: Jekyll Win95 Theme
Expand Down
8 changes: 0 additions & 8 deletions _layouts/all.html

This file was deleted.

14 changes: 8 additions & 6 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,29 @@ <h1>{{ site.title }}</h1>
{% if page.title == '404...' %}
<ul>
{% for post in site.posts %}
<li><a href="{{ post.url }}" title="{{ post.title }}"><img src="{{ "/assets/img/file.ico" | relative_url }}" title="{{ post.title }}" />{{ post.title }}</a></li>
<li><a href="{{ post.url | relative_url }}" title="{{ post.title }}"><img src="{{ "/assets/img/file.ico" | relative_url }}" title="{{ post.title }}" />{{ post.title }}</a></li>
{% endfor %}
</ul>
{% else %}
{% elsif page.intro %} <!-- If at root, rendering index.md -->
<div class="intro">
{{ content }}
</div>
{% else %} <!-- If page is showing a tag -->
{{ content }}
{% endif %}
{% else %}
{% else %} <!-- If page is showing a post -->
<ul>
{% for post in site.posts %}
<li><a href="{{ post.url }}" title="{{ post.title }}"><img src="{{ "/assets/img/file.ico" | relative_url }}" title="{{ post.title }}" />{{ post.title }}</a></li>
<li><a href="{{ post.url | relative_url }}" title="{{ post.title }}"><img src="{{ "/assets/img/file.ico" | relative_url }}" title="{{ post.title }}" />{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endunless %}
</div>
<div class="post_total">
{% if page.tag %}
<div class="left">{{ site.tags[page.tag] | size }} object(s)</div>
<div class="left">{{ site.tags[page.tag] | size }} post(s)</div>
{% else %}
<div class="left">{{ site.posts | size }} object(s)</div>
<div class="left">{{ site.posts | size }} post(s)</div>
{% endif %}
<div class="right">&nbsp;</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion _layouts/tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
---
<ul>
{% for post in site.tags[page.tag] %}
<li><a href="{{ site.baseurl }}/{{ post.url }}" title="{{ post.title }}"><img src="{{ "/assets/img/file.ico" | relative_url }}" title="{{ post.title }}" />{{ post.title }}</a></li>
<li>
<a href="{{ post.url | relative_url }}" title="{{ post.title }}">
<img src="{{ "/assets/img/file.ico" | relative_url }}" title="{{ post.title }}" />{{ post.title }}</a>
</li>
{% endfor %}
</ul>
1 change: 1 addition & 0 deletions index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
intro: true
---
# Aquis sed quam Heliadum pictis pater miracula

Expand Down
2 changes: 1 addition & 1 deletion jekyll-theme-windows95.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
}

spec.files = `git ls-files -z`.split("\x0").select do |f|
f.match(%r{^(assets|_layouts|_includes|_sass|_data|tags|LICENSE|README|.html)}i)
f.match(%r{^(assets|_layouts|_includes|_sass|tags/all.html|LICENSE|README|404.html)}i)
end

spec.required_ruby_version = ">= 2.1.0"
Expand Down
5 changes: 4 additions & 1 deletion tags/all.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
---
<ul>
{% for post in site.posts %}
<li><a href="{{ post.url | relative_url }}" title="{{ post.title }}"><img src="{{ "/assets/img/file.ico" | relative_url }}" title="{{ post.title }}" />{{ post.title }}</a></li>
<li>
<a href="{{ post.url | relative_url }}" title="{{ post.title }}">
<img src="{{ "/assets/img/file.ico" | relative_url }}" title="{{ post.title }}" />{{ post.title }}</a>
</li>
{% endfor %}
</ul>

0 comments on commit 5edfecb

Please sign in to comment.