-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
203 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{{ define "main" }} | ||
{{ range .Paginator.Pages }} | ||
<article class="gdoc-markdown gdoc-post"> | ||
<header class="gdoc-post__header"> | ||
<h1 class="gdoc-post__title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1> | ||
</header> | ||
<section> | ||
{{ .Summary }} | ||
</section> | ||
<div class="gdoc-post__readmore"> | ||
{{ if .Truncated }} | ||
<a class="flex-inline align-center fake-link" title="Read full post" href="{{ .RelPermalink }}">Read full post</a> | ||
{{ end }} | ||
</div> | ||
|
||
<footer class="gdoc-post__footer"> | ||
<span class="no-wrap"> | ||
<svg class="icon gdoc_date"><use xlink:href="#gdoc_date"></use></svg> | ||
<span class="gdoc-post__tag"> | ||
<time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}"> | ||
{{ if .Lastmod.After (.Date.AddDate 0 0 1) }} | ||
Updated on | ||
{{ end }} | ||
{{ .Lastmod.Format "Jan 2, 2006" }} | ||
</time> | ||
</span> | ||
</span> | ||
|
||
<span class="no-wrap"> | ||
<svg class="icon gdoc_timer"><use xlink:href="#gdoc_timer"></use></svg> | ||
<span class="gdoc-post__tag">{{ .ReadingTime }} min read</span> | ||
</span> | ||
|
||
{{ $tc := 0 }} | ||
{{ with .Params.tags }} | ||
{{ range sort . }} | ||
{{ $name := . }} | ||
{{ with $.Site.GetPage (printf "/tags/%s" $name | urlize) }} | ||
{{ if eq $tc 0 }} | ||
<span class="no-wrap"> | ||
<svg class="icon gdoc_bookmark"><use xlink:href="#gdoc_bookmark"></use></svg> | ||
{{ template "post-tag" dict "name" $name "page" . }} | ||
</span> | ||
{{ else }} | ||
{{ template "post-tag" dict "name" $name "page" . }} | ||
{{ end }} | ||
{{ end }} | ||
{{ $tc = (add $tc 1) }} | ||
{{ end }} | ||
{{ end }} | ||
</footer> | ||
</article> | ||
{{ end }} | ||
{{ end }} | ||
|
||
{{ define "post-tag" }} | ||
<span class="gdoc-post__tag"> | ||
<span class="gdoc-button"> | ||
<a class="gdoc-button__link" href="{{ .page.RelPermalink }}" title="All posts tagged with '{{ .name }}'">{{ .name }}</a> | ||
</span> | ||
</span> | ||
{{ end }} |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,10 @@ | |
text-align: center; | ||
} | ||
|
||
.no-wrap { | ||
white-space: nowrap; | ||
} | ||
|
||
.hidden { | ||
display: none; | ||
} | ||
|