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.

39 lines
1.0 KiB

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