Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
robbinjohansson committed Jan 31, 2017
1 parent d5b95d5 commit df99c1a
Show file tree
Hide file tree
Showing 14 changed files with 54 additions and 34 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# v0.1.2
## 01/31/2017

### Added
* Display date created on each post

### Improvements
* Remove unused gulp dependencies from `package.json`
* Better thumbnail image
* More accurate theme description

# v0.1.1
## 01/31/2017
Update theme details & clean up
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Haywire getgrav theme

Haywire is a modern starter theme for [getgrav](https://getgrav.org/). The idea behind the theme is to help developers to get started quickly on their new getgrav projects using modern frameworks and tools such as [yarn](https://yarnpkg.com/), [laravel-elixir](https://laravel.com/docs/5.3/elixir), [bootstrap](https://github.com/twbs/bootstrap-sass).
Haywire is a modern starter theme for [getgrav](https://getgrav.org/). The idea behind the theme is to help developers get started quickly on their new getgrav projects using modern frameworks and tools such as [yarn](https://yarnpkg.com/), [laravel-elixir](https://laravel.com/docs/5.3/elixir), [bootstrap](https://github.com/twbs/bootstrap-sass).

![screenshot](https://github.com/robbinfellow/haywire-grav/blob/master/screenshot.png?raw=true)

_Inspired by [Sage](https://roots.io/sage/) starter theme for wordpress by [roots](https://roots.io/)._
![screenshot](https://github.com/robbinfellow/haywire-grav/blob/master/screenshot.jpg?raw=true)

## Features

Expand Down Expand Up @@ -36,8 +34,6 @@ _Inspired by [Sage](https://roots.io/sage/) starter theme for wordpress by [root
$ gulp


_The `templates/default.html.twig` is setup to display the latest subpages of your @home page as blogposts._

### Gulp

Compile assets => `gulp`
Expand All @@ -54,6 +50,10 @@ Install package => `yarn add packagename --save-dev`

Remove package => `yarn remove packagename --save-dev`

### Other

_The `templates/default.html.twig` is setup to display the latest subpages of your @home page as blogposts._

## Useful links

* [yarn](https://yarnpkg.com/en/docs/)
Expand Down
4 changes: 2 additions & 2 deletions blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Haywire
version: 0.1.1
description: "Starter theme to help developers get started quickly on new projects using modern frameworks and tools such as yarn, laravel-elixir & bootstrap."
version: 0.1.2
description: "Starter theme for developers to get started quickly on new projects using modern frameworks and tools such as yarn, laravel-elixir & bootstrap."
icon: empire
author:
name: Robbin Johansson
Expand Down
2 changes: 1 addition & 1 deletion dist/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/main.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
{
"name": "haywire",
"version": "0.1.1",
"version": "0.1.2",
"main": "index.js",
"repository": "https://github.com/robbinfellow/haywire-grav.git",
"author": "Robbin Johansson <robbinfellow@gmail.com>",
"license": "MIT",
"dependencies": {
"gulp": "^3.9.1",
"gulp-clean-css": "^2.3.2",
"gulp-rename": "^1.2.2",
"gulp-sass": "^3.1.0",
"gulp-watch": "^4.3.11",
"laravel-elixir": "^6.0.0-15",
"laravel-elixir-browserify-official": "^0.1.3"
}
Expand Down
Binary file added screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed screenshot.png
Binary file not shown.
3 changes: 3 additions & 0 deletions scss/template/_footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#footer {
background: #f3f3f3;
}
17 changes: 15 additions & 2 deletions templates/default.html.twig
Original file line number Diff line number Diff line change
@@ -1,24 +1,37 @@
{% extends 'partials/base.html.twig' %}

{% block content %}
<div class="col-sm-12">
{{ page.content }}
<div class="row">
<div class="col-sm-12">
{{ page.content }}
</div>
</div>
{% endblock %}

{# List 3 latest childpages of /home as posts #}
{% block latestPosts %}
<div class="row">
<div class="col-sm-12">

{% for post in page.find('/home').children.order('date', 'desc').slice(0, 3) %}

{{dump(post.header.publish_date)}}

<h2>{{ post.title }}</h2>
{% if post.summary %}
{{ post.summary(200) }}
{% else %}
<em>No summary available</em>
{% endif %}

{% if post.header.publish_date %}
<div class="row">
<div class="col-sm-12 mtl mbl">Created at {{ post.header.publish_date }}</div>
</div>
{% endif %}

{% endfor %}

</div>
</div>
{% endblock %}
26 changes: 12 additions & 14 deletions templates/partials/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,23 @@
<body class="{{ page.header.body_classes }}">

<div class="container">
<div class="row">

{% block header %}
{% include 'partials/header.html.twig' %}
{% endblock %}
{% block header %}
{% include 'partials/header.html.twig' %}
{% endblock %}

{% block body %}
<section id="main" class="{{ class }}">
{% block content %}{% endblock %}
{% block body %}
<section id="main" class="{{ class }}">
{% block content %}{% endblock %}

{% block latestPosts %}{% endblock %}
</section>
{% endblock %}
{% block latestPosts %}{% endblock %}
</section>
{% endblock %}

{% block footer %}
{% include 'partials/footer.html.twig' %}
{% endblock %}
{% block footer %}
{% include 'partials/footer.html.twig' %}
{% endblock %}

</div>
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion templates/partials/footer.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="clearfix"></div>
<footer id="footer">
<footer id="footer" class="pal mtl">
// footer
</footer>
Binary file modified thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit df99c1a

Please sign in to comment.