Remove header meta from non-article pages

This commit is contained in:
timvisee 2019-07-01 21:38:10 +02:00
parent bc24c39a65
commit 0a8da5e35e
No known key found for this signature in database
GPG Key ID: B8DB720BC383E172
7 changed files with 23 additions and 7 deletions

View File

@ -1,6 +1,9 @@
+++
title = "About me"
description = "About me"
[extra]
zenn_hide_header_meta = true
+++
Open-source & free software enthusiast · Linux fanatic · Rust evangelist · Git master · Vim wizard

View File

@ -3,7 +3,7 @@ title = "Blog"
sort_by = "date"
paginate_by = 5
insert_anchor_links = "right"
insert_anchor_links = "left"
template = "index.html"
+++

View File

@ -1,6 +1,9 @@
+++
title = "Projects"
description = "Projects index"
[extra]
zenn_hide_header_meta = true
+++
This page lists some of the projects I've developed over time.

View File

@ -1,6 +1,9 @@
+++
title = "Bukkit projects"
description = "Bukkit projects index"
[extra]
zenn_hide_header_meta = true
+++
- [Dungeon Maze](@/projects/bukkit/dungeon-maze.md)

View File

@ -2,6 +2,9 @@
title = "Dungeon Maze"
description = "Dungeon Maze Bukkit plugin"
date = 2015-10-06
[extra]
zenn_hide_header_meta = true
+++
_Current version: v0.1.5.2_

View File

@ -324,8 +324,8 @@ footer {
transition: opacity 0.5s ease;
opacity: 0;
font-size: 1rem;
position: relative;
left: 0.5rem;
position: absolute;
margin: 0.5rem 0 0 -1.5rem;
}
*:hover > .anchor,
.anchor:active,

View File

@ -50,26 +50,30 @@
{% if section.title %}
<header>
<h1>
{% include "anchor-link.html" %}
{{ section.title }}
{% if paginator %}
{% if paginator.current_index > 1 %}
&nbsp;&middot;&nbsp; Page {{ paginator.current_index }}
{% endif %}
{% endif %}
{% include "anchor-link.html" %}
</h1>
{% block header_meta %}{% endblock header_meta %}
{% if not section.extra.zenn_hide_header_meta %}
{% block header_meta %}{% endblock header_meta %}
{% endif %}
</header>
{% endif %}
{% if page.title %}
<header>
<h1>
{{ page.title }}
{% include "anchor-link.html" %}
{{ page.title }}
</h1>
{% block header_meta %}{% endblock header_meta %}
{% if not page.extra.zenn_hide_header_meta %}
{% block header_meta %}{% endblock header_meta %}
{% endif %}
</header>
{% endif %}