From 7221790c09159fd1c20c1f2ae2b3554941ce8129 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 27 Dec 2017 23:24:37 +0000 Subject: [PATCH] Allow hiding header images --- content/posts/make-qt-less-ugly.md | 1 + layouts/partials/content.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/content/posts/make-qt-less-ugly.md b/content/posts/make-qt-less-ugly.md index d9c40dd..05c5dd5 100644 --- a/content/posts/make-qt-less-ugly.md +++ b/content/posts/make-qt-less-ugly.md @@ -2,6 +2,7 @@ title: Make QT look less ugly date: 2017-12-27 image: /img/qt-gtk-after.png +hide_header_image: true --- As anyone who's used an application written with the QT UI framework will know, they don't always look the best, and certainly don't fit in with the rest of your desktops theme in the way GTK does. Certain themes support styling both GTK and QT applications, however most don't. diff --git a/layouts/partials/content.html b/layouts/partials/content.html index db00271..a5574f3 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -1,6 +1,6 @@ -{{ if .Params.image }} +{{ if .Params.image }}{{ if not .Params.hide_header_image }}
-{{ end }} +{{ end }}{{ end }} {{ partial "breadcrumbs/index.html" . }}

{{ .Title }}

{{ partial "subtitle.html" . }}