Skip to content

Commit 4bba462

Browse files
committed
Merge branch 'release/1.6.0'
2 parents 0bdbcf4 + 58aba33 commit 4bba462

13 files changed

+102
-45
lines changed

CHANGELOG.md

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# v1.6.0
2+
## 12/09/2016
3+
4+
1. [](#new)
5+
* Add an option to have a sticky menu. Also added blueprint configuration to turn in on from the admin. Disabled by default. Uses https://github.com/bigspotteddog/ScrollToFixed
6+
1. [](#improved)
7+
* Invert order of previous and next button in the blog posts navigation
8+
1. [](#bugfix)
9+
* Fix forms not working as expected. Drop the form twig overrides as they break the forms, and don't really customise the output
10+
111
# v1.5.0
212
## 07/14/2016
313

@@ -9,7 +19,7 @@
919
* Fix missing fontawesome-webfont.woff2 file
1020
* Fix slider buttons on tablet
1121
* Fix setting the page language in the html tag
12-
22+
1323
# v1.4.0
1424
## 01/06/2016
1525

@@ -53,7 +63,7 @@
5363
1. [](#improved)
5464
* Added blueprints for Grav Admin plugin
5565
1. [](#bugfix)
56-
* Taxonomy count fix
66+
* Taxonomy count fix
5767

5868
# v1.0.4
5969
## 05/09/2015
@@ -71,7 +81,7 @@
7181
## 02/19/2015
7282

7383
2. [](#improved)
74-
* Added SimpleSearch capability
84+
* Added SimpleSearch capability
7585
* Implemented new `param_sep` variable from Grav 0.9.18
7686

7787
# v1.0.1

blueprints.yaml

+26-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Deliver
2-
version: 1.5.0
2+
version: 1.6.0
33
description: "Deliver theme is a port of the Michael Reimer's Deliver Free PSD theme."
44
icon: newspaper-o
55
author:
@@ -11,3 +11,28 @@ demo: http://demo.getgrav.org/deliver-skeleton/
1111
keywords: deliver, theme, modern, fast, responsive, html5, css3
1212
bugs: https://github.com/getgrav/grav-theme-deliver/issues
1313
license: MIT
14+
15+
form:
16+
validation: loose
17+
fields:
18+
dropdown.enabled:
19+
type: toggle
20+
label: Dropdown in navbar
21+
highlight: 1
22+
default: 0
23+
options:
24+
1: PLUGIN_ADMIN.ENABLED
25+
0: PLUGIN_ADMIN.DISABLED
26+
validate:
27+
type: bool
28+
29+
sticky_menu.enabled:
30+
type: toggle
31+
label: Sticky menu
32+
highlight: 1
33+
default: 0
34+
options:
35+
1: PLUGIN_ADMIN.ENABLED
36+
0: PLUGIN_ADMIN.DISABLED
37+
validate:
38+
type: bool

css-compiled/template.css

+14-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css-compiled/template.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deliver.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
enabled: true
22
dropdown:
33
enabled: false
4+
sticky_menu:
5+
enabled: false

js/fixed-header.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
$(document).ready(function() {
2+
var navbar = $('#navbar');
3+
var navbarOffset = navbar.offset().top;
4+
5+
$(window).scroll(function(){
6+
var scroll = $(window).scrollTop();
7+
8+
if (scroll >= navbarOffset) {
9+
navbar.height(navbar.height());
10+
navbar.addClass('fixed');
11+
} else {
12+
navbar.removeClass('fixed');
13+
}
14+
});
15+
});

js/jquery-scrolltofixed-min.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scss/template/_header.scss

+21-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#header {
44
@extend .padding-horiz;
55
position: absolute;
6-
z-index: 10;
6+
z-index: 10000;
77
width: 100%;
88
height: $header-height;
99
background-color: rgba(255,255,255,0.90);
@@ -16,6 +16,18 @@
1616
color: $black;
1717
}
1818

19+
.fixed {
20+
background: #fff;
21+
padding-left: 14rem;
22+
padding-right: 14rem;
23+
position: fixed;
24+
top: 0;
25+
left: 0;
26+
width: 100%;
27+
opacity: 0.9;
28+
box-shadow: 0 0px 20px 0px rgba(0,0,0,0.2);
29+
}
30+
1931
.logo {
2032
h3 {
2133
@extend %vertical-align;
@@ -46,7 +58,7 @@
4658
}
4759
input::-webkit-search-decoration,
4860
input::-webkit-search-cancel-button {
49-
display: none;
61+
display: none;
5062
}
5163
input[type=search] {
5264
outline: none;
@@ -135,7 +147,7 @@
135147
ul ul {
136148
left: 100%;
137149
top: 0;
138-
}
150+
}
139151

140152

141153
&:hover {
@@ -172,7 +184,7 @@
172184
@include breakpoint(desktop-only) {
173185
display: none;
174186
}
175-
}
187+
}
176188
}
177189

178190
.panel-activation {
@@ -189,6 +201,10 @@
189201
}
190202
}
191203

204+
.modular.header-image #header .fixed {
205+
background: #666;
206+
}
207+
192208
.header-image {
193209
&.fullwidth {
194210
#body {
@@ -275,4 +291,4 @@
275291
}
276292
}
277293
}
278-
}
294+
}

templates/forms/data.html.twig

-3
This file was deleted.

templates/forms/data.txt.twig

-3
This file was deleted.

templates/forms/form.html.twig

-21
This file was deleted.

templates/partials/base.html.twig

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
{% do assets.addJs('theme://js/deliver.js') %}
3434
{% do assets.addJs('theme://js/slidebars.min.js') %}
3535
{% do assets.addJs('theme://js/jquery.slideme2.js') %}
36+
{% if theme_config.sticky_menu.enabled %}
37+
{% do assets.addJs('theme://js/jquery-scrolltofixed-min.js') %}
38+
{% do assets.addJs('theme://js/fixed-header.js') %}
39+
{% endif %}
3640
{% endblock %}
3741
{{ assets.js() }}
3842

templates/partials/blog_item.html.twig

+5-7
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@
2222
<i class="fa fa-calendar"></i>
2323
{{ page.date|date("d") }}, {{ page.date|date("M") }}
2424
</span>
25-
2625
{% if page.header.author %}
2726
<span class="list-blog-author">
2827
<i class="fa fa-user"></i>
2928
{{ page.header.author }}
3029
</span>
3130
{% endif %}
32-
3331
{% if page.taxonomy.tag %}
3432
<ul class="tags">
3533
<i class="fa fa-tag"></i>
@@ -38,7 +36,7 @@
3836
{% endfor %}
3937
</ul>
4038
{% endif %}
41-
39+
4240
</div>
4341

4442
<div class="list-blog-padding">
@@ -62,12 +60,12 @@
6260
{% if show_prev_next %}
6361

6462
<p class="prev-next">
65-
{% if not page.isFirst %}
66-
<a class="button" href="{{ page.nextSibling.url }}"><i class="fa fa-chevron-left"></i> Next Post</a>
63+
{% if not page.isLast %}
64+
<a class="button" href="{{ page.prevSibling.url }}"><i class="fa fa-chevron-left"></i> Previous Post</a>
6765
{% endif %}
6866

69-
{% if not page.isLast %}
70-
<a class="button" href="{{ page.prevSibling.url }}">Previous Post <i class="fa fa-chevron-right"></i></a>
67+
{% if not page.isFirst %}
68+
<a class="button" href="{{ page.nextSibling.url }}">Next Post <i class="fa fa-chevron-right"></i></a>
7169
{% endif %}
7270
</p>
7371
{% endif %}

0 commit comments

Comments
 (0)