feat(): display dynamic pages title and description
This commit is contained in:
@@ -2,8 +2,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="author" content="{{ with .Site.Params.name }}{{ . }}{{ end }}">
|
||||
<meta name="description" content="{{ with .Site.Params.name }}{{ . }}{{ end }}">
|
||||
{{ if isset . "Description" }}
|
||||
<meta name="description" content="{{ .Description }}">
|
||||
{{ else }}
|
||||
<meta name="description" content="{{ with .Site.Params.description }}{{ . }}{{ end }}">
|
||||
{{ end }}
|
||||
<title>{{ .Title }}</title>
|
||||
{{ .Hugo.Generator }}
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" rel="stylesheet" type="text/css">
|
||||
<link href="{{ .Site.BaseURL }}css/theme.css" rel="stylesheet" type="text/css">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<nav class="col-md-3">
|
||||
<div id="last-posts" class="open">
|
||||
<h3 data-open="last-posts">Aubm.net - Les derniers articles</h3>
|
||||
<h3 data-open="last-posts">{{ .Site.Title }} - Les derniers articles</h3>
|
||||
<ul>
|
||||
{{ range last 10 .Site.Pages }}
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
|
||||
Reference in New Issue
Block a user