diff options
| author | Darin Dimitroff <d@thecrazyones.agency> | 2017-01-01 16:39:14 +0200 |
|---|---|---|
| committer | Darin Dimitroff <d@thecrazyones.agency> | 2017-01-01 16:39:14 +0200 |
| commit | bd9a50e9c824e89d8a91fd54c8bc838cdfa796f6 (patch) | |
| tree | 06254243ccfc713ab0801e748b16dade68ff73ca /site/layouts/post | |
| parent | dedfd8a8098db999f81a55a845e0e4d041f9d7a8 (diff) | |
Initial commit
Diffstat (limited to 'site/layouts/post')
| -rw-r--r-- | site/layouts/post/li.html | 6 | ||||
| -rw-r--r-- | site/layouts/post/list.html | 14 | ||||
| -rw-r--r-- | site/layouts/post/single.html | 13 |
3 files changed, 33 insertions, 0 deletions
diff --git a/site/layouts/post/li.html b/site/layouts/post/li.html new file mode 100644 index 0000000..de2d1da --- /dev/null +++ b/site/layouts/post/li.html @@ -0,0 +1,6 @@ +<a href="{{ .Permalink }}" class="no-underline pa3 bg-grey-1 br1 mb2 db raise"> + <h3 class="f3 b lh-title mb1 primary">{{ .Title }}</h3> + <p class="mid-gray lh-title mb2">{{ .Date.Format "Mon, Jan 2, 2006" }}</p> + <p class="mb0">{{ .Summary }}</p> + <p class="link b dib black mb0">Read more →</p> +</a> diff --git a/site/layouts/post/list.html b/site/layouts/post/list.html new file mode 100644 index 0000000..5d13c7e --- /dev/null +++ b/site/layouts/post/list.html @@ -0,0 +1,14 @@ +{{ partial "header" . }} +{{ partial "nav" . }} + +{{ partial "jumbotron" (dict "imageUrl" "img/2.jpg" "title" "post title goes here") }} + +<ul class="flex-l"> + {{ range .Data.Pages }} + <div> + {{ .Render "li"}} + </div> + {{ end }} +</ul> + +{{ partial "footer" . }} diff --git a/site/layouts/post/single.html b/site/layouts/post/single.html new file mode 100644 index 0000000..e7198b3 --- /dev/null +++ b/site/layouts/post/single.html @@ -0,0 +1,13 @@ +{{ partial "header" . }} +{{ partial "nav" . }} + <div class="mw6 center ph3 pv4"> + <h1 class="f2 lh-title b mb3">{{.Title}}</h1> + <div class="flex justify-between grey-3"> + <p>{{ .Date.Format "Mon, Jan 2, 2006" }}</p> + <p>Read in {{ .ReadingTime }} minutes</p> + </div> + <div class="cms mw6"> + {{ .Content }} + </div> + </div> +{{ partial "footer" . }} |
