github.com/bewolv/gqlgen@v0.10.12/docs/layouts/index.html (about)

     1  {{ define "main" }}
     2  	{{ range where .Site.Pages "Type" "homepage" }}
     3  				<header>
     4  						<span class="description">{{ .Description }}</span>
     5  						<div class="content">
     6  							<h1>{{ .LinkTitle }}</h1>
     7  							<div class="description">{{ .Title }}</div>
     8  						</div>
     9  				</header>
    10  
    11  				<main>
    12  					<div class="content">
    13  						{{ .Content }}
    14  						{{.Scratch.Set "intro" (readFile "content/_introduction.md")}}
    15  						{{.Scratch.Set "intro" (split (.Scratch.Get "intro") "\n")}}
    16  						{{.Scratch.Set "intro" (after 2 (.Scratch.Get "intro"))}}
    17  						{{.Scratch.Set "intro" (delimit (.Scratch.Get "intro") "\n")}}
    18  						{{.Scratch.Get "intro"|markdownify}}
    19  					</div>
    20  				</main>
    21  	{{ end }}
    22  {{ end }}