Skip to content

Commit e961943

Browse files
committed
Fix tags
1 parent d4e8e41 commit e961943

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

_includes/collecttags.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{% assign rawtags = "" %}
2-
{% for page in site.html_pages %}
2+
{% for page in site.pages %}
33
{% assign ttags = page.tags | join:'|' | append:'|' %}
44
{% assign rawtags = rawtags | append:ttags %}
55
{% endfor %}
66
{% assign rawtags = rawtags | split:'|' | sort %}
77

8-
{% assign site.tags = "" %}
8+
{% assign tags = "" %}
99
{% for tag in rawtags %}
1010
{% if tag != "" %}
1111
{% if tags == "" %}

_includes/head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
{% if site.tags != "" %}
1+
{% if tags == "" %}
22
{% include collecttags.html %}
33
{% endif %}

_layouts/page.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
<meta http-equiv="X-UA-Compatible" content="IE=edge">
77
<meta name="viewport" content="width=device-width,maximum-scale=2">
88
<link rel="stylesheet" type="text/css" media="screen" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
9-
{% include head.html %} <!-- generate tags -->
9+
{% include collecttags.html %} <!-- generate tags -->
1010
{% seo %}
1111
</head>
1212

1313
<body>
1414

15+
{% include collecttags.html %}
16+
1517
<!-- HEADER -->
1618
<div id="header_wrap" class="outer">
1719
<header class="inner">
@@ -35,7 +37,7 @@ <h4>Table of contents:</h4>
3537
{% include toc.html html=content %}
3638

3739
<h4>Tags:</h4>
38-
{% for tag in site.tags %}
40+
{% for tag in tags %}
3941
<li> {{ tag }} </li>
4042
{% endfor %}
4143

content/audio.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
tags: ecosystem
2+
layout: page
3+
tags: [ecosystem]
34
---
45

56
# Audio

0 commit comments

Comments
 (0)