From 22e70c239edb0cbf190396a2864c45c10a7610fa Mon Sep 17 00:00:00 2001 From: Huy Tran Date: Sat, 3 Feb 2018 15:35:10 +0700 Subject: [PATCH] to exclude about from the front-page --- layouts/_default/baseof.html | 4 +- layouts/index.html | 4 +- layouts/partials/header.html | 80 ++++++++++++++++++----------------- layouts/partials/sidebar.html | 6 +-- static/css/custom.css | 1 + 5 files changed, 48 insertions(+), 47 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 3b77bea..7cacb9f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,9 +1,9 @@ - {{ block "header" . }}{{ end }} + {{ block "header" . -}}{{- end }} - + {{ partial "sidebar.html" . }}
{{ block "content" . }}{{ end }} diff --git a/layouts/index.html b/layouts/index.html index 793d38b..c5f07b3 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,8 +4,7 @@ {{ define "content" -}}
- {{ range .Data.Pages -}} - {{ if ne .Section "about" }} + {{ range where .Data.Pages "Type" "posts" }}

{{ .Title }}

@@ -16,7 +15,6 @@
{{ end }}
- {{ end }} {{- end }}
{{- end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 48a6804..dedf751 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,42 +1,44 @@ - - - -{{ with .Site.Params.meta.description }}{{ end }} -{{ with .Site.Params.meta.keywords }}{{ end }} -{{ .Hugo.Generator }} - - -{{ if .IsHome -}} + + + {{ "" | safeHTML }} + + {{ with .Site.Params.meta.description -}}{{- end }} + {{ with .Site.Params.meta.keywords -}}{{- end }} + {{ .Hugo.Generator }} + {{ if .IsHome -}} {{ .Site.Title }} -{{- else -}} + {{- else }} {{ .Title }} · {{ .Site.Title }} -{{- end }} - - - - - - - -{{ if .Site.Params.highlightjs }} - -{{ end }} - - -{{ if .Site.Params.PygmentsUseClasses }} - -{{ end }} - - - - - - - - - - + {{- end }} + + + {{ "" | safeHTML }} + + + + + + {{ if .Site.Params.highlightjs -}} + {{ "" | safeHTML }} + + {{- end }} + {{ if .Site.Params.PygmentsUseClasses -}} + {{ "" | safeHTML }} + + {{- end }} + {{- "" | safeHTML }} + + {{ ` + ` | safeHTML }} + {{ "" | safeHTML }} + + + {{ if .RSSLink -}} + {{ "" | safeHTML }} + + + {{- end }} \ No newline at end of file diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index ddfa862..cebbe21 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -11,10 +11,10 @@

{{ partial "sidebar_social.html" . }}

-

{{ with .Site.Params.copyright }}{{.}}{{ else }}© {{ now.Format "2006"}} {{.Site.Params.author}}.
- Some Rights Reserved. {{end}} +

Powered by Hugo & hyde-hyde.

diff --git a/static/css/custom.css b/static/css/custom.css index 0d7aea8..52a60ea 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -49,6 +49,7 @@ code font-family: monospace; } +.copyright, .poweredby { font-size: 13px !important;