Skip to content

Instantly share code, notes, and snippets.

@tj
Created March 17, 2017 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tj/bfac6e7f2c812354f785d6b028041ae8 to your computer and use it in GitHub Desktop.
Save tj/bfac6e7f2c812354f785d6b028041ae8 to your computer and use it in GitHub Desktop.
{{ define "content" }}
{{ partial "back" (dict "url" "//apex.sh") }}
<section class="Content full center">
<div class="Container small">
<div class="Title center margin">
<span class="text">Status</span>
<span class="subtext">Apex service status.</span>
</div>
{{ info "add component listing" }}
<div class="Components">
{{ range $file := files "content/components" }}
{{ with read $file.Path | frontmatter }}
{{ info "add %s – %s (%s)" .Meta.product .Title .Meta.status }}
<div class="Component {{.Meta.status}}">
<div class="info">
<span class="product">{{.Meta.product}}</span>
<span class="name">{{.Title}}</span>
<span class="status">{{.Meta.status}}</span>
</div>
{{ with .Meta.incident }}
<div class="incident">
<span class="date">{{$file.ModTime}}</span>
<span class="message">{{.}}</span>
</div>
{{ end }}
</div>
{{ end }}
{{ end }}
</div>
</div>
<section class="Content">
<div class="Container small">
<div class="Box center-x">
<a href="mailto:support@apex.sh" class="Button dark">Contact Support</a>
</div>
</div>
</section>
</section>
{{ end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment