-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocs.html
More file actions
36 lines (29 loc) · 1.33 KB
/
docs.html
File metadata and controls
36 lines (29 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
layout: default
---
<section class="docs">
<div class="grid">
{% include docs_contents_mobile.html %}
<div class="unit four-fifths">
<article>
<div class="improve right hide-on-mobiles">
<!--
NOTE raw 'page.path' produces bad URLs that match markdown path, not html path
{{ 'foofoo' | replace:'foo','bar' }} #=> 'barbar'
replace uses ruby's gsub, which accepts regex. however, regex is treated as a raw string when in ''
I can't figure out how to pass regex into replace. so, pipe through multiple replace's
{{ page.path |replace:'/usr/home/mpictor/jekyll/',''|replace: '/repo/',''}}<br>
original:
<a href="https://github.com/stepcode/stepcode.github.io/edit/master/{{ page.path }}"><i class="fa fa-pencil"></i> Improve this page</a>
-->
<a href="https://github.com/stepcode/stepcode.github.io/edit/master/{{ page.path |replace:'/usr/home/mpictor/jekyll/',''|replace: '/repo/',''}}"><i class="fa fa-pencil"></i> Improve this page</a>
</div>
<h1>{{ page.title }}</h1>
{{ content }}
{% include section_nav.html %}
</article>
</div>
{% include docs_contents.html %}
<div class="clear"></div>
</div>
</section>