mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-19 14:34:49 -04:00
Fix build error in single and section default layouts
This commit is contained in:
parent
092b3e3c6d
commit
0093be60f1
@ -1,12 +1,13 @@
|
||||
{{ define "main" }}
|
||||
{{$base := .Site.BaseURL}}
|
||||
{{$title := .Title}}
|
||||
<main class="main">
|
||||
<header class="content-header">
|
||||
<h1 class="page-title">{{with .LinkTitle}}{{ . |markdownify}}{{else}}{{ .Title | markdownify }}{{end}}</h1>
|
||||
<div class="content-header-links">
|
||||
<a target="_blank" class="edit-link" href="{{.Site.Params.ghdocsrepo}}edit/master/content/{{.File.Path}}"><span class="edit">Edit Page</span><i class="icon-pencil" aria-hidden="true"></i></a>
|
||||
{{- with .Params.godocref -}}
|
||||
<a target="_blank" class="godoc-link" href="{{.}}" title="See the corresponding Golang Documentation for {{$.Title}}."><span class="godocs">GoDocs</span>
|
||||
<a target="_blank" class="godoc-link" href="{{.}}" title="See the corresponding Golang Documentation for {{$title}}."><span class="godocs">GoDocs</span>
|
||||
{{ partial "svg-icons/godoc-icon.svg" .}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
@ -1,12 +1,13 @@
|
||||
{{ define "main" }}
|
||||
{{$base := .Site.BaseURL}}
|
||||
{{$title := .Title}}
|
||||
<main class="main">
|
||||
<header class="content-header">
|
||||
<h1 class="page-title">{{with .LinkTitle}}{{ . |markdownify}}{{else}}{{ .Title | markdownify }}{{end}}</h1>
|
||||
<div class="content-header-links">
|
||||
<a target="_blank" class="edit-link" href="{{.Site.Params.ghdocsrepo}}edit/master/content/{{.File.Path}}"><span class="edit">Edit Page</span><i class="icon-pencil" aria-hidden="true"></i></a>
|
||||
{{- with .Params.godocref -}}
|
||||
<a target="_blank" class="godoc-link" href="{{.}}" title="See the corresponding Golang Documentation for {{$.Title}}."><span class="godocs">GoDocs</span>
|
||||
<a target="_blank" class="godoc-link" href="{{.}}" title="See the corresponding Golang Documentation for {{$title}}."><span class="godocs">GoDocs</span>
|
||||
{{ partial "svg-icons/godoc-icon.svg" .}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user