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.
62 lines
1.9 KiB
62 lines
1.9 KiB
{{ define "head" }} |
|
|
|
{{ partial "mathjax.html" }} |
|
|
|
<!-- Chroma Github theme CSS --> |
|
<link rel="stylesheet" href="{{ "css/github_chroma.css" | relURL }}" type="text/css" /> |
|
{{ end }} |
|
|
|
{{ define "main" }} |
|
|
|
<div class="post"> |
|
<h1 class="post-title">{{ .Title }}</h1> |
|
{{ with .GitInfo }} <!-- To enable this, put "enableGitInfo = true" in your site config.toml --> |
|
This test was created/modified in commit <a href="{{ $.Site.Params.source.url }}/commit/{{- .Hash -}}"> |
|
{{- .AbbreviatedHash -}}</a> "{{ .Subject }}" on <b>{{ dateFormat "2006-01-02" .AuthorDate }}</b>. |
|
{{ end }} |
|
<p> |
|
{{ if .Params.categories }} |
|
Categories: |
|
{{ range .Params.categories }} |
|
<a href="/categories/{{ . | urlize }}">{{ . }}</a> |
|
{{ end }} |
|
{{ end }} |
|
</p> |
|
<p> |
|
{{ if .Params.tags }} |
|
Tags: |
|
{{ range .Params.tags }} |
|
<a href="/tags/{{ . | urlize }}">{{ . }}</a> |
|
{{ end }} |
|
{{ end }} |
|
</p> |
|
<p> |
|
{{ if .Params.draft }} |
|
<hr> |
|
<center><h2>This is a Draft</h2></center> |
|
<hr> |
|
{{ end }} |
|
</p> |
|
{{ .Content }} |
|
<hr> |
|
<h2>Content from Headless Page Bundle</h2> |
|
{{ $headless := .Site.GetPage "page" "headless-page-bundle-x" }} |
|
{{ $reusablePages := $headless.Resources.Match "*" }} |
|
{{ range $reusablePages }} |
|
<h3>{{ .Title }}</h3> |
|
{{ .Content }} |
|
<hr> |
|
{{ end }} |
|
{{ with $headless.Resources }} |
|
<h3 id="headless-resource-debug">Headless Page Bundle Resources (Debug)</h3> |
|
{{ partial "debugprint.html" . }} |
|
{{ end }} |
|
|
|
<a id="debug"></a> |
|
<h3 id="page-debug">Page Params (Debug)</h3> |
|
{{ partial "debugprint.html" .Params }} |
|
<h3 id="file-debug">File Object (Debug)</h3> |
|
{{ partial "debugprint.html" .File }} |
|
</div> |
|
|
|
{{ end }}
|
|
|