Skip to content

Commit 89754da

Browse files
committed
add logo, includes, layouts, etc. other than logo, most from jekyll repo
1 parent ca12719 commit 89754da

27 files changed

+1733
-9
lines changed

STEPcode_logo_gears_light.svg

Lines changed: 158 additions & 0 deletions
Loading

Widget:GPlusOne.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

Widget:GPlusOne.mediawiki

Lines changed: 0 additions & 2 deletions
This file was deleted.

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
highlighter: pygments
2+
#url: http://stepcode.org
3+
#url: http://localhost:4000

_includes/anchor_links.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<script>
2+
var anchorForId = function (id) {
3+
var anchor = document.createElement("a");
4+
anchor.className = "header-link";
5+
anchor.href = "#" + id;
6+
anchor.innerHTML = "<span class=\"sr-only\">Permalink</span><i class=\"fa fa-link\"></i>";
7+
anchor.title = "Permalink";
8+
return anchor;
9+
};
10+
11+
var linkifyAnchors = function (level, containingElement) {
12+
var headers = containingElement.getElementsByTagName("h" + level);
13+
for (var h = 0; h < headers.length; h++) {
14+
var header = headers[h];
15+
16+
if (typeof header.id !== "undefined" && header.id !== "") {
17+
header.appendChild(anchorForId(header.id));
18+
}
19+
}
20+
};
21+
22+
document.onreadystatechange = function () {
23+
if (this.readyState === "complete") {
24+
var contentBlock = document.getElementsByClassName("docs")[0] || document.getElementsByClassName("news")[0];
25+
if (!contentBlock) {
26+
return;
27+
}
28+
for (var level = 1; level <= 6; level++) {
29+
linkifyAnchors(level, contentBlock);
30+
}
31+
}
32+
};
33+
</script>

_includes/docs_contents.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div class="unit one-fifth hide-on-mobiles">
2+
<aside>
3+
{% for section in site.data.docs %}
4+
<h4>{{ section.title }}</h4>
5+
{% include docs_ul.html items=section.docs %}
6+
{% endfor %}
7+
</aside>
8+
</div>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<div class="docs-nav-mobile unit whole show-on-mobiles">
2+
<select onchange="if (this.value) window.location.href=this.value">
3+
<option value="">Navigate the docs…</option>
4+
{% for section in site.data.docs %}
5+
<optgroup label="{{ section.title }}">
6+
{% include docs_option.html items=section.docs %}
7+
</optgroup>
8+
{% endfor %}
9+
</select>
10+
</div>

_includes/footer.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<footer role="contentinfo">
2+
<div class="grid">
3+
<div class="unit one-third center-on-mobiles">
4+
<p>The contents of this website are &copy;&nbsp;{{ site.time | date: '%Y' }} <a href="http://tom.preston-werner.com/">Tom Preston-Werner</a> under the terms of the <a href="{{ site.repository }}/blob/master/LICENSE">MIT&nbsp;License</a>.</p>
5+
</div>
6+
<div class="unit two-thirds align-right center-on-mobiles">
7+
<p>
8+
Hosted by
9+
<a href="https://github.com">
10+
<!-- <img src="/img/footer-logo.png" width="100" height="30" alt="GitHub • Social coding"> -->
11+
GitHub
12+
</a>
13+
</p>
14+
</div>
15+
</div>
16+
</footer>

_includes/front_header.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<header role="banner">
2+
<nav class="mobile-nav show-on-mobiles">
3+
{% include primary-nav-items.html %}
4+
</nav>
5+
<div class="grid">
6+
<div class="unit one-third center-on-mobiles">
7+
<h1>
8+
<a href="/">
9+
<!-- http://stepcode.org/STEPcode_logo.png 399w, 465h width="99" -->
10+
<span class="sr-only">STEPcode</span>
11+
<img src="/STEPcode_logo_gears_light.svg" height="230px" width=100% alt="STEPcode Logo">
12+
</a>
13+
</h1>
14+
</div>
15+
<nav class="main-nav unit two-thirds hide-on-mobiles">
16+
{% include primary-nav-items.html %}
17+
</nav>
18+
</div>
19+
</header>

_includes/header.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<header role="banner">
2+
<nav class="mobile-nav show-on-mobiles">
3+
{% include primary-nav-items.html %}
4+
</nav>
5+
<div class="grid">
6+
<div class="unit one-third center-on-mobiles">
7+
<h1>
8+
<a href="/">
9+
<!-- http://stepcode.org/STEPcode_logo.png 399w, 465h width="99" -->
10+
<span class="sr-only">STEPcode</span>
11+
<img src="/STEPcode_logo_gears_light.svg" height="115px" width=100% alt="STEPcode Logo">
12+
</a>
13+
</h1>
14+
</div>
15+
<nav class="main-nav unit two-thirds hide-on-mobiles">
16+
{% include primary-nav-items.html %}
17+
</nav>
18+
</div>
19+
</header>

0 commit comments

Comments
 (0)