mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Add docs/data/titles.toml to set title "Site Showcase"
Idea from https://discuss.gohugo.io/t/how-to-name-list-templates/949
This commit is contained in:
parent
5c6d8c57b9
commit
acd720df92
2 changed files with 6 additions and 4 deletions
2
docs/data/titles.toml
Normal file
2
docs/data/titles.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
[Showcase]
|
||||
title = "Site Showcase"
|
|
@ -7,8 +7,8 @@
|
|||
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
{{ .Hugo.Generator }}
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
|
||||
<title>{{.Title}}</title>
|
||||
{{ .Scratch.Add "title" "" }}{{ if isset .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}}
|
||||
<title>Hugo - {{ .Scratch.Get "title" }}</title>
|
||||
|
||||
<link href="/css/bootstrap-theme.css" rel="stylesheet">
|
||||
<link href="/assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
|
||||
|
@ -42,7 +42,7 @@
|
|||
</div>
|
||||
|
||||
<div class="nav title-row" id="top_menu">
|
||||
<h1 class="nav top-menu">{{.Title}}</h1>
|
||||
<h1 class="nav top-menu">{{ .Scratch.Get "title" }}</h1>
|
||||
</div>
|
||||
</header>
|
||||
<!--header end-->
|
||||
|
@ -78,7 +78,7 @@
|
|||
<div class="col-md-10">
|
||||
<section class="panel">
|
||||
<!--<header class="panel-heading">-->
|
||||
<!--<h3>{{.Title}}</h3>-->
|
||||
<!--<h3>{{ .Scratch.Get "title" }}</h3>-->
|
||||
<!--</header>-->
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
|
|
Loading…
Reference in a new issue