Skip to content

Commit

Permalink
Initial proof of concept
Browse files Browse the repository at this point in the history
where we use the markdown and example from Patterns repo instead of from Patterns-site

See #4
  • Loading branch information
jcbrand committed Apr 15, 2015
1 parent f35b7b0 commit e42bf07
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions _layouts/demo.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---
layout: shell
---

Expand All @@ -7,9 +7,11 @@ <h1>
</h1>

<div id="demo">
<a href="/demo/{{ page.id }}/index.html#content" class="pat-inject" data-pat-inject="target: #demo; trigger: autoload">Load demo</a>
<a href="/src/bower_components/patternslib/demo/{{page.id}}/index.html#content"
class="pat-inject" data-pat-inject="target: #demo; trigger: autoload">Load demo</a>
</div>

<article>
{{ content }}
</article>
<a href="/src/bower_components/patternslib/demo/{{page.id}}/documentation.md"
class="pat-inject" data-pat-inject="data-type: markdown; source: ::element; target: self::element; trigger: autoload">Documentation</a>
</article>
4 changes: 2 additions & 2 deletions _layouts/shell.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="stylesheet" href="/style/screen.css" media="screen" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1" />

<script src="{{ site.baseurl }}/bundles/patterns.min.js" type="text/javascript"></script>
<script src="{{ site.baseurl }}/src/bower_components/patternslib/bundle.js" type="text/javascript"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-37987884-1']);
Expand Down Expand Up @@ -37,4 +37,4 @@
{{ content }}
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion _posts/2014-08-27-collapsible.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: "A *collapsible* is an element where content is can be shown or vis
by clicking on a triggering element."
---

One way to use collapsible is to implement a very minimal accordeon.
One way to use collapsible is to implement a very minimal accordeon.

<section class="pat-collapsible">
<h3>About us</h3>
Expand Down

0 comments on commit e42bf07

Please sign in to comment.