diff options
author | Adin Scannell <ascannell@google.com> | 2019-11-18 13:40:27 -0800 |
---|---|---|
committer | Adin Scannell <ascannell@google.com> | 2020-04-21 12:00:59 -0700 |
commit | 957e26a6f30d40e2bff042d76a327d0a2cfbabae (patch) | |
tree | 3e95d46355585ae4661de5cef30cdca72a7c94bb /website/content/blog | |
parent | dc2f198866c5fd8162a79978eb3633975d3ba11f (diff) |
Move website to a simpler jekyll-based template
This will allow us to merge the site into the main repository.
This merge allows the documentation to be kept up-to-date and
synchronized with the main project. Builds will be triggered on any
update, removing the need for the cron-based reploy.
Diffstat (limited to 'website/content/blog')
-rwxr-xr-x | website/content/blog/archive.html | 22 | ||||
-rwxr-xr-x | website/content/blog/index.html | 16 |
2 files changed, 38 insertions, 0 deletions
diff --git a/website/content/blog/archive.html b/website/content/blog/archive.html new file mode 100755 index 000000000..b9fdcd544 --- /dev/null +++ b/website/content/blog/archive.html @@ -0,0 +1,22 @@ +--- +title: Archive +layout: default +permalink: /blog/archive/ +--- +{% for post in site.posts %} + {% assign yearOfPost = post.date | date: "%Y" %} + {% if yearOfPost != currentYear %} + {% unless forloop.first %}</ul>{% endunless %} + <h1>{{ yearOfPost }}</h1> + <ul> + {% assign currentYear = yearOfPost %} + {% endif %} + <li> + <a href="{{ post.url }}"> + <span>{{ post.date | date: "%b %-d" }}</span> - {{ post.title }} + </a> + </li> + {% if forloop.last %} + </ul> + {% endif %} +{% endfor %} diff --git a/website/content/blog/index.html b/website/content/blog/index.html new file mode 100755 index 000000000..f10f5524d --- /dev/null +++ b/website/content/blog/index.html @@ -0,0 +1,16 @@ +--- +title: Blog +layout: blog +--- + +{% for post in paginator.posts %} +<div> + <h2><a href="{{ post.url }}">{{ post.title }}</a></h2> + <div class="blog-meta"> + {% include byline.html authors=post.authors date=post.date %} + </div> + <p>{{ post.excerpt | strip_html }}</p> + <p><a href="{{ post.url }}">Full Post »</a></p> +</div> +{% endfor %} +{% include paginator.html %} |