Mobile-responsive personal website, generated using Hugo. https://kevin-mok.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
961 B

  1. {{ $page := .Page }}
  2. <article class="single" itemscope itemtype="http://schema.org/BlogPosting">
  3. <div class="meta">
  4. {{ if not .Page.Date.IsZero }}
  5. <span class="key">published on</span>
  6. <span class="val"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span>
  7. {{ end }}
  8. {{ with .Params.categories }}
  9. <span class="key">{{ if $page.Date.IsZero }}published {{ end }}in</span>
  10. <span class="val">
  11. {{ range . }}
  12. <a href="{{ . | printf "categories/%s" | relURL }}">{{ . }}</a>
  13. {{ end }}
  14. </span>
  15. {{ end }}
  16. {{ with .Params.tags }}
  17. <br>
  18. <span class="key">tags:</span>
  19. <span class="val">
  20. {{ range . }}
  21. <a href="{{ . | printf "tags/%s" | relURL }}">{{ . }}</a>
  22. {{ end }}
  23. </span>
  24. {{ end }}
  25. </div>
  26. <h1 class="headline" itemprop="headline">{{ .Title }}</h1>
  27. <section class="body" itemprop="articleBody">
  28. {{ .Content }}
  29. </section>
  30. </article>