{{ template "base.html" . }} {{ define "extrahead" }} {{ end }} {{ define "content" }} {{ template "showcase_templates.html" }} {{ if .ShowcaseTimelineJson }}

Community Showcase

This is a selection of recent work done by community members. Want to participate? Join us on Discord.
{{ end }}

Around the Network

{{ $newsPost := .NewsPost }} {{ range $i, $col := .PostColumns }}
{{ if eq $i 0 }}
{{ template "landing_page_featured_post" $newsPost}}
{{ end }} {{ range $entry := $col }} {{ $proj := $entry.Project }} {{ $posts := $entry.Posts }}
{{ $c1 := hex2color $proj.Color1 }}

{{ $proj.Name }}

{{ with $entry.FeaturedPost }} {{ template "landing_page_featured_post" . }} {{ end }} {{ range $post := $posts }} {{ template "post_list_item" $post }} {{ end }}
{{ end }}
{{ end }}
{{ end }} {{/* TODO(asaf): Delete this section once we're done with the landing page {% block columns %} {% include "showcase/js_templates.html" %} {% include "timeline/js_templates.html" %}

Community Showcase

This is a selection of recent work done by community members. Want to participate? Join us on Discord.
{% spaceless %}
{% for col in recent_post_columns %}
{% if forloop.counter == 1 %}
{% include "blog_index_thread_list_entry.html" with post=featured_post align_top=True %}
{% endif %} {% for entry in col %} {% with proj=entry.project posts=entry.posts %}

{{ proj.name }}

{% if entry.featured and proj.slug != "hmn" %} {% with post=entry.featured.0 has_read=entry.featured.1 %} {% if post.category.kind == 5 and post.parent == None %} {% include "thread_list_entry.html" with thread=post.thread %} {% else %} {% include "blog_index_thread_list_entry.html" with align_top=True %} {% endif %} {% endwith %} {% endif %} {% for post, has_read in posts %} {% if forloop.counter0 < max_posts %} {% include "thread_list_entry.html" with thread=post.thread %} {% endif %} {% endfor %} {% with more=posts|length|add:-5|clamp_lower:0 %} {% if more > 0 %} {% endif %} {% endwith %}
{% endwith %} {% endfor %}
{% endfor %}
{% endspaceless %} {% endblock %} */}} {{ define "landing_page_featured_post" }} {{/* Call this template with a LandingPageFeaturedPost. */}}
{{ .User.Name }} — {{ timehtml (relativedate .Date) .Date }}
{{ .Content }}
{{ end }} {{ define "post_list_item" }} {{/* Call this template with a PostListItem. */}}
{{ .User.Name }} — {{ timehtml (relativedate .Date) .Date }}
»
{{ end }}