Skip to content

Commit f95147d

Browse files
committed
make topbar navigatible better and put everything in row and column
1 parent 41bd90b commit f95147d

File tree

9 files changed

+28
-23
lines changed

9 files changed

+28
-23
lines changed

_data/navigation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
- title: Upcoming Events
1010
url: "/#upcoming-events"
1111
side: left
12+
class: toggle-topbar-click
1213

1314
- title: Testimonials
1415
url: "/#testimonials"
1516
side: left
17+
class: toggle-topbar-click
1618

1719
# - title: Getting Started
1820
# url: "/getting-started/"
@@ -81,6 +83,7 @@
8183
- title: "About Me"
8284
url: "/#about-me"
8385
side: right
86+
class: toggle-topbar-click
8487

8588
- title: "Contact"
8689
url: "/contact/"

_includes/_footer_scripts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% endif %}
66

77

8-
<script src="{{ site.url }}{{ site.baseurl }}/assets/js/javascript.min.js"></script>
8+
<script src="{{ site.url }}{{ site.baseurl }}/assets/js/javascript.js"></script>
99

1010

1111
{% if page.header.image_fullwidth %}

_includes/_navigation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
*
66
{% endcomment %}
77
<div id="navigation" class="sticky">
8-
<nav class="top-bar" role="navigation" data-topbar>
8+
<nav class="top-bar" role="navigation" data-topbar data-options="scrolltop: false">
99
<ul class="title-area">
1010
<li class="name">
1111
<h1 class="show-for-small-only"><a href="{{ site.url }}{{ site.baseurl }}" class="icon-tree"> {{ site.title }}</a></h1>
1212
</li>
1313
<!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
14-
<li class="toggle-topbar menu-icon"><a href="#"><span>Nav</span></a></li>
14+
<li class="toggle-topbar toggle-topbar-click menu-icon"><a><span>Nav</span></a></li>
1515
</ul>
1616
<section class="top-bar-section">
1717
{% comment %}

_includes/render-markdown

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
see https://github.com/jekyll/jekyll-archives/issues/28#issuecomment-101282909
33
see https://github.com/jekyll/jekyll/issues/1303#issuecomment-21067548
44
{% endcomment %}
5-
{% capture my_include %}{{ include.content }}{% endcapture %}
6-
{{ my_include | markdownify }}
5+
<div class="row t30">
6+
<div class="medium-8 columns">
7+
{{ include.content | markdownify }}
8+
</div><!-- /.medium-8.columns -->
9+
</div><!-- /.row -->

_includes/vision.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
{% capture vision %}
22

33

44
## Vision
@@ -10,3 +10,8 @@ I want us to be able to hold love for one another, not succumbing to fear, other
1010
For this we need a culture which supports peace.
1111

1212
[_Let's work together_](/contact)
13+
14+
15+
16+
{% endcapture %}
17+
{% include render-markdown content=vision %}

_layouts/frontpage.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
</div><!-- /.row -->
1010
</div><!-- /#header-home -->
1111

12-
<div class="row t60">
13-
{% capture vision %}{% include vision.md %}{% endcapture %}
14-
{{ vision | markdownify }}
12+
<div class="vision">
13+
{% include vision.md %}
1514
</div>
1615

16+
1717
{% comment %}
1818
*
1919
* First check, if widget is empty or not by checking if there is a title
@@ -105,6 +105,4 @@ <h2><a href="{{ site.url }}{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a
105105
* see https://github.com/jekyll/jekyll-archives/issues/28#issuecomment-101282909
106106
{% endcomment %}
107107

108-
<div class="row">
109-
{{ content }}
110-
</div><!-- /.row -->
108+
{{ content }}

assets/js/javascript.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,7 +2152,7 @@ function FastClick(a,b){"use strict";function c(a,b){return function(){return a.
21522152
var self = this,
21532153
topbar;
21542154

2155-
if (toggleEl) {
2155+
if (toggleEl && ! toggleEl.classList.contains("toggle-topbar-click")) {
21562156
topbar = self.S(toggleEl).closest('[' + this.attr_name() + ']');
21572157
} else {
21582158
topbar = self.S('[' + this.attr_name() + ']');
@@ -2192,7 +2192,7 @@ function FastClick(a,b){"use strict";function c(a,b){return function(){return a.
21922192
topbar.addClass('fixed');
21932193
self.S('body').removeClass('f-topbar-fixed');
21942194

2195-
window.scrollTo(0,0);
2195+
window.scrollTo(0,0); // I do not like this
21962196
} else {
21972197
topbar.parent().removeClass('expanded');
21982198
}
@@ -2224,8 +2224,8 @@ function FastClick(a,b){"use strict";function c(a,b){return function(){return a.
22242224

22252225
S(this.scope)
22262226
.off('.topbar')
2227-
.on('click.fndtn.topbar', '[' + this.attr_name() + '] .toggle-topbar', function (e) {
2228-
e.preventDefault();
2227+
.on('click.fndtn.topbar', '[' + this.attr_name() + '] .toggle-topbar-click', function (e) {
2228+
//e.preventDefault();
22292229
self.toggle(this);
22302230
})
22312231
.on('click.fndtn.topbar','.top-bar .top-bar-section li a[href^="#"],[' + this.attr_name() + '] .top-bar-section li a[href^="#"]',function (e) {

assets/js/javascript.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pages/pages-root-folder/index.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ You can also find NVC events by me and other NVC trainers here: [nvc-uk.com](htt
147147

148148
## about me
149149
{% endcapture %}
150-
<div class="row t30">
151-
{{ index_markdown | markdownify }}
152-
</div><!-- /.row -->
150+
{% include render-markdown content=index_markdown %}
153151

154152
{% capture index_markdown %}
155153
I have been studying and teaching about NVC since 2014, just before my daughter was born. Now, I'm living in a yurt in rural Wales together with my partner Nicco and our two children. In 2020 we moved here from Germany.
@@ -187,9 +185,7 @@ We live off-grid in a yurt and enjoy a very simple lifestyle, which has taught m
187185
188186

189187
{% endcapture %}
190-
<div class="row t30">
191-
{{ index_markdown | markdownify }}
192-
</div><!-- /.row -->
188+
{% include render-markdown content=index_markdown %}
193189

194190

195191

0 commit comments

Comments
 (0)