Skip to content

Commit

Permalink
💎 Release v0.1.0 #9
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed Nov 20, 2017
1 parent da1f6da commit f1c6104
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 7 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,24 @@ All feature pages are stored in the `page` folder, they will appear in the navig

Portfolio is a feature bootstrapped page that will take all the markdown/html files in the `_portfolio` folder to create a 3x3 image portfolio matrix.

The portfolio page can be enable/disable through the `_config.yml` via:
```yml
# Scripts / Feature
portfolio: true
```
### Search

The search feature is based on [Simple-Jekyll-search](https://github.com/christian-fei/Simple-Jekyll-Search) there is a `search.json` file that will create a list of all of the site posts, pages and portfolios.

Then there's a `search.js` displaying the formated results entered in the `search.html` page.


The search page can be enable/disable through the `_config.yml` via:
```yml
# Scripts / Feature
search: true
```

### Tags

Post tags should be placed between `[]` in your post metadata. Seperate each tag with a comma.
Expand All @@ -288,6 +300,12 @@ tags: [sample, markdown, html]
```

All the tags will be listed in `tags.html` with a link toward the pages or posts.
The tags page can be enable/disable through the `_config.yml` via:

```yml
# Scripts / Feature
tags: true
```


## License
Expand Down
6 changes: 5 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ theme_settings:
wordpress:
youtube:

# Scripts
# Scripts / Features
google_analytics: # Tracking ID, e.g. "UA-000000-01"
disqus_shortname:
katex: true # Enable if using math markup
portfolio: true
search: true
tags: true


# Localization strings
str_follow_on: "Follow on"
Expand Down
24 changes: 23 additions & 1 deletion _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,29 @@ <h1 class="site-title">
</a>
</li>
{% endif %}
{% endfor %}
{% endfor %}
{% if site.theme_settings.portfolio %}
<li>
<a class="clear" href="{{ site.url }}{{ site.baseurl }}/portfolio">
Portfolio
</a>
</li>
{% endif %}
{% if site.theme_settings.portfolio %}
<li>
<a class="clear" href="{{ site.url }}{{ site.baseurl }}/search">
Search
</a>
</li>
{% endif %}
{% if site.theme_settings.portfolio %}
<li>
<a class="clear" href="{{ site.url }}{{ site.baseurl }}/tags">
Tags
</a>
</li>
{% endif %}

</ul>

</nav>
Expand Down
3 changes: 2 additions & 1 deletion pages/portfolio.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
permalink: /portfolio/
subtitle: "Projects I am working on"
feature-img: "assets/img/pexels/computer.jpeg"
hide: true
---

<!-- Portfolio Grid Section -->
<section class="portfolio">
<div class="row">
{% for item in site.portfolio %}
<div class="col-sm-4 col-xs-4 portfolio-item">
<a href="{{ site.baseurl }}//{{ item.url }}" class="portfolio-link" data-keyboard="true">
<a href="{{ site.baseurl }}{{ item.url }}" class="portfolio-link" data-keyboard="true">
<div class="caption" title="{{ item.title }}">
<div class="caption-content">
<i class="fa fa-search-plus fa-3x"></i>
Expand Down
1 change: 1 addition & 0 deletions pages/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
permalink: /search/
subtitle: "What are you looking for?"
feature-img: "assets/img/pexels/search-map.jpeg"
hide: true
---

<!-- Html Elements for Search -->
Expand Down
2 changes: 2 additions & 0 deletions pages/search.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
---
[
{% if site.theme_settings.search %}
{% for post in site.posts %}
{
"title" : "{{ post.title | escape }}",
Expand All @@ -23,4 +24,5 @@
{% endif %}
} {% unless forloop.last %},{% endunless %}
{% endfor %}
{% endif %}
]
1 change: 1 addition & 0 deletions pages/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: page
title: Tags
permalink: /tags/
hide: true
---

<div class="home">
Expand Down
9 changes: 5 additions & 4 deletions type-on-strap.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

Gem::Specification.new do |spec|
spec.name = "type-on-strap"
spec.version = "0.0.2"
spec.version = "0.1.0"
spec.authors = ["Sylhare","Rohan Chandra"]
spec.email = ["[email protected]", "[email protected]"]

spec.summary = %q{A custom type-theme template (a free and open-source Jekyll theme. Great for blogs and easy to customize.)}
spec.summary = %q{A custom Type Theme template (a free and open-source Jekyll theme. Great for blogs and easy to customize.)}
spec.homepage = "https://github.com/sylhare/Type-on-Strap"
spec.license = "MIT"

spec.files = Dir.glob("**/{*,.*}").select do |f|
f.match(%r{^(assets|_(includes|layouts|sass)/|(LICENSE|README.md)((\.(txt|md|markdown)|$)))}i)
spec.files = Dir.glob("**/pages/*.{html,json}") +
Dir.glob("**/{*,.*}").select do |f|
f.match(%r{^(assets|_(includes|layouts|sass)/|(LICENSE|README)((\.(txt|md|markdown)|$)))}i)
end

spec.add_runtime_dependency "jekyll", "~> 3.3"
Expand Down

0 comments on commit f1c6104

Please sign in to comment.