Skip to content

Commit

Permalink
Include title in www template to remove it from web feed content
Browse files Browse the repository at this point in the history
Otherwise, title is duplicated in feed readers.
  • Loading branch information
robinmetral committed Aug 14, 2024
1 parent 99236fb commit 8452726
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
3 changes: 1 addition & 2 deletions www/pages/404.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
title: Not found
template: default
permalink: /404.html
---

# Not found

[Go back home](/)
4 changes: 2 additions & 2 deletions www/pages/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!--
title: Welcome to brut
template: default
-->

<h1>Welcome to Brut</h1>
<p>Brut is a brutalist static site generator.</p>
<p>brut is a brutalist static site generator.</p>
<p>It shares some of the principles behind brutalist architecture:</p>
<ul>
<li>
Expand Down
2 changes: 1 addition & 1 deletion www/pages/posts.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!--
title: Posts
template: default
-->

<h1>Posts</h1>
{{#context.posts.length}}
<ul>
{{#context.posts}}
Expand Down
2 changes: 1 addition & 1 deletion www/pages/posts/production-ready.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: default
title: "Production-ready"
published_date: "2024-08-11"
template: default
---

Looking for a production-ready static site generator?
Expand Down
2 changes: 1 addition & 1 deletion www/pages/posts/second-post.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: default
title: "Second Post"
published_date: "2022-02-12"
template: default
---

# Second Post
Expand Down
2 changes: 1 addition & 1 deletion www/pages/posts/unpopular-opinion.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: default
title: "Unpopular Opinion"
published_date: "2021-11-12"
template: default
---

# Unpopular Opinion
Expand Down
5 changes: 4 additions & 1 deletion www/templates/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
</head>
<body>
{{> nav}}
<main>{{> content}}</main>
<main>
<h1>{{page.frontmatter.title}}</h1>
{{> content}}
</main>
</body>
</html>

0 comments on commit 8452726

Please sign in to comment.