Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldb committed May 17, 2017
1 parent eeab246 commit f67701c
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions jigsaw.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
title: Building Static (Web)sites with Jigsaw and Laravel Blade (in PHP)

%css

pre {
padding: 4px 4px 4px 4px;
border-top: #bbb 1px solid;
border-bottom: #bbb 1px solid;
background: #f3f3f3;
}

%end



# Dynamic (Web)Site Generators

Expand Down Expand Up @@ -280,7 +292,7 @@ build_local/
</body>
</html>
```
```

(Source: [staystatic/jigsaw/source/_layouts/master.blade.php](https://github.com/staystatic/staystatic/blob/master/jigsaw/source/_layouts/master.blade.php))

Expand Down Expand Up @@ -386,7 +398,7 @@ layouts/page.blade.php:
@section('body')
<div class="page">
<h2>{{ $page->title }}</h2>
<h2>{{{ $page->title }}</h2>
</div>
@yield('page-body')
@endsection
Expand Down Expand Up @@ -426,7 +438,7 @@ And use like (in templates):

```
<head>
<title>{{ $page->site_title }}</title>
<title>{{{ $page->site_title }}</title>
</head>
```

Expand Down Expand Up @@ -481,19 +493,19 @@ _people/
dave-hicking.md
keith-damiani.md
matt-stauffer.md
```


# Jigsaw Stay Static Site - HTML Templates - Loops
# Jigsaw Stay Static Site - HTML Templates - Loops


```
<div>
<b>News 'n' Updates</b>
<ul class="news">
@foreach($posts as $post)
<li><a href="{{ $page->baseUrl }}{{ $post->getPath() }}">{{ $post->title }}</a></li>
<li><a href="{{{ $page->baseUrl }}{{{ $post->getPath() }}">{{{ $post->title }}</a></li>
@endforeach
</ul>
</div>
Expand Down Expand Up @@ -536,7 +548,7 @@ return [
<b>Links 'n' Bookmarks</b>
<ul class="links">
@foreach($page->links as $link)
<li><a href="{{ $link->url }}">{{ $link->title }}</a></li>
<li><a href="{{{ $link->url }}">{{{ $link->title }}</a></li>
@endforeach
</ul>
</div>
Expand Down Expand Up @@ -586,5 +598,3 @@ And more.

- [Jigsaw Site](http://jigsaw.tighten.co) [(Source)](https://github.com/tightenco/jigsaw-site)
- [Jigsaw Collections Demo](https://tightenco.github.io/jigsaw-collections-demo) [(Source)](https://github.com/tightenco/jigsaw-collections-demo)


0 comments on commit f67701c

Please sign in to comment.