github.com/maeglindeveloper/gqlgen@v0.13.1-0.20210413081235-57808b12a0a0/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  						{{partial "version-banner"}}
    14  						{{ .Content }}
    15  						{{.Scratch.Set "intro" (readFile "content/_introduction.md")}}
    16  						{{.Scratch.Set "intro" (split (.Scratch.Get "intro") "\n")}}
    17  						{{.Scratch.Set "intro" (after 2 (.Scratch.Get "intro"))}}
    18  						{{.Scratch.Set "intro" (delimit (.Scratch.Get "intro") "\n")}}
    19  						{{.Scratch.Get "intro"|markdownify}}
    20  					</div>
    21  				</main>
    22  	{{ end }}
    23  {{ end }}