to exclude about from the front-page
This commit is contained in:
parent
94f95fc114
commit
22e70c239e
5 changed files with 48 additions and 47 deletions
|
@ -1,9 +1,9 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .Site.LanguageCode }}" class="wf-firasans-n4-active wf-active">
|
<html lang="{{ .Site.LanguageCode }}" class="wf-firasans-n4-active wf-active">
|
||||||
<head>
|
<head>
|
||||||
{{ block "header" . }}{{ end }}
|
{{ block "header" . -}}{{- end }}
|
||||||
</head>
|
</head>
|
||||||
<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
|
<body {{- if .Site.Params.themeColor }} class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}" {{ end }}>
|
||||||
{{ partial "sidebar.html" . }}
|
{{ partial "sidebar.html" . }}
|
||||||
<div class="content container">
|
<div class="content container">
|
||||||
{{ block "content" . }}{{ end }}
|
{{ block "content" . }}{{ end }}
|
||||||
|
|
|
@ -4,8 +4,7 @@
|
||||||
|
|
||||||
{{ define "content" -}}
|
{{ define "content" -}}
|
||||||
<div class="posts">
|
<div class="posts">
|
||||||
{{ range .Data.Pages -}}
|
{{ range where .Data.Pages "Type" "posts" }}
|
||||||
{{ if ne .Section "about" }}
|
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
||||||
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
|
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
|
||||||
|
@ -16,7 +15,6 @@
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -1,42 +1,44 @@
|
||||||
<link href="http://gmpg.org/xfn/11" rel="profile">
|
<link href="http://gmpg.org/xfn/11" rel="profile">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
{{ "<!-- Enable responsiveness on mobile devices -->" | safeHTML }}
|
||||||
{{ with .Site.Params.meta.description }}<meta name="description" content="{{ . }}">{{ end }}
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||||
{{ with .Site.Params.meta.keywords }}<meta name="keywords" content="{{.}}">{{ end }}
|
{{ with .Site.Params.meta.description -}}<meta name="description" content="{{ . }}">{{- end }}
|
||||||
{{ .Hugo.Generator }}
|
{{ with .Site.Params.meta.keywords -}}<meta name="keywords" content="{{.}}">{{- end }}
|
||||||
<!-- Enable responsiveness on mobile devices-->
|
{{ .Hugo.Generator }}
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
{{ if .IsHome -}}
|
||||||
{{ if .IsHome -}}
|
|
||||||
<title>{{ .Site.Title }}</title>
|
<title>{{ .Site.Title }}</title>
|
||||||
{{- else -}}
|
{{- else }}
|
||||||
<title>{{ .Title }} · {{ .Site.Title }}</title>
|
<title>{{ .Title }} · {{ .Site.Title }}</title>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<!-- CSS -->
|
<meta content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}" property="og:title">
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">
|
<meta content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Site.Params.meta.description }}{{ if eq $isHomePage false }} - {{ .Description }}{{ end }}" property="og:description">
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css">
|
{{ "<!-- CSS -->" | safeHTML }}
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css">
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fira+Sans:300,300i,400,400i,500">
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css">
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css">
|
||||||
<!-- highlight.js-->
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fira+Sans:300,300i,400,400i,500">
|
||||||
{{ if .Site.Params.highlightjs }}
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ .Site.Params.highlightjsstyle | default "default" }}.min.css">
|
{{ if .Site.Params.highlightjs -}}
|
||||||
{{ end }}
|
{{ "<!-- highlight.js-->" | safeHTML }}
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ .Site.Params.highlightjsstyle | default "default" }}.min.css">
|
||||||
<!-- Pygments Syntax -->
|
{{- end }}
|
||||||
{{ if .Site.Params.PygmentsUseClasses }}
|
{{ if .Site.Params.PygmentsUseClasses -}}
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/syntax.css">
|
{{ "<!-- Pygments Syntax -->" | safeHTML }}
|
||||||
{{ end }}
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/syntax.css">
|
||||||
<!-- Customised CSS -->
|
{{- end }}
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/custom.css">
|
{{- "<!-- Customised CSS -->" | safeHTML }}
|
||||||
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/custom.css">
|
||||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
{{ `<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->` | safeHTML }}
|
||||||
<!-- Icons -->
|
{{ "<!-- Icons -->" | safeHTML }}
|
||||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
|
||||||
<link rel="shortcut icon" href="/favicon.png">
|
<link rel="shortcut icon" href="/favicon.png">
|
||||||
<!-- RSS -->
|
{{ if .RSSLink -}}
|
||||||
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
{{ "<!-- RSS -->" | safeHTML }}
|
||||||
|
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||||
|
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||||
|
{{- end }}
|
|
@ -11,10 +11,10 @@
|
||||||
<p>
|
<p>
|
||||||
{{ partial "sidebar_social.html" . }}
|
{{ partial "sidebar_social.html" . }}
|
||||||
</p>
|
</p>
|
||||||
<p>{{ with .Site.Params.copyright }}{{.}}{{ else }}© {{ now.Format "2006"}} {{.Site.Params.author}}. <br/>
|
<p class="copyright">{{ with .Site.Params.copyright }}{{.}}{{ else }}© {{ now.Format "2006"}} {{.Site.Params.author}}. <br/>
|
||||||
<a href="http://creativecommons.org/licenses/by/3.0">Some Rights Reserved</a>. {{end}}
|
<a href="https://creativecommons.org/licenses/by/4.0">Some Rights Reserved</a>. {{end}}
|
||||||
<br/>
|
<br/>
|
||||||
<span class="poweredby">Powered by <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/htr3n/hyde-hyde">hyde-hyde</a>.</span>
|
<p class="poweredby">Powered by <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/htr3n/hyde-hyde">hyde-hyde</a>.</p>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -49,6 +49,7 @@ code
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.copyright,
|
||||||
.poweredby
|
.poweredby
|
||||||
{
|
{
|
||||||
font-size: 13px !important;
|
font-size: 13px !important;
|
||||||
|
|
Loading…
Reference in a new issue