mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 08:18:30 +00:00
Fix build error in single and section default layouts
This commit is contained in:
1 parent
092b3e3c6d
commit
0093be60f1
2 files changed
+4
-2
No files matched your search
@@ -1,12 +1,13 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{$base := .Site.BaseURL}}
|
{{$base := .Site.BaseURL}}
|
||||||
|
{{$title := .Title}}
|
||||||
<main class="main">
|
<main class="main">
|
||||||
<header class="content-header">
|
<header class="content-header">
|
||||||
<h1 class="page-title">{{with .LinkTitle}}{{ . |markdownify}}{{else}}{{ .Title | markdownify }}{{end}}</h1>
|
<h1 class="page-title">{{with .LinkTitle}}{{ . |markdownify}}{{else}}{{ .Title | markdownify }}{{end}}</h1>
|
||||||
<div class="content-header-links">
|
<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>
|
<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 -}}
|
{{- 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" .}}
|
{{ partial "svg-icons/godoc-icon.svg" .}}
|
||||||
</a>
|
</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{$base := .Site.BaseURL}}
|
{{$base := .Site.BaseURL}}
|
||||||
|
{{$title := .Title}}
|
||||||
<main class="main">
|
<main class="main">
|
||||||
<header class="content-header">
|
<header class="content-header">
|
||||||
<h1 class="page-title">{{with .LinkTitle}}{{ . |markdownify}}{{else}}{{ .Title | markdownify }}{{end}}</h1>
|
<h1 class="page-title">{{with .LinkTitle}}{{ . |markdownify}}{{else}}{{ .Title | markdownify }}{{end}}</h1>
|
||||||
<div class="content-header-links">
|
<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>
|
<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 -}}
|
{{- 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" .}}
|
{{ partial "svg-icons/godoc-icon.svg" .}}
|
||||||
</a>
|
</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
Reference in new issue
Block a user