Skip to content

Commit

Permalink
Add sitemap
Browse files Browse the repository at this point in the history
I added `sitemap: false` to the error pages as well as the about and posts index page. If the latter get updated and are ready for prime time, the flag should be removed.
  • Loading branch information
toddkummer committed Nov 18, 2024
1 parent b3b1c73 commit 7c1c16f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ gem "puma", "< 7"

# Or for faster parsing of HTML-only resources via Inspectors, use Nokolexbor:
# gem "nokolexbor", "~> 0.4"

gem "bridgetown-sitemap", "~> 2.0"
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ GEM
zeitwerk (~> 2.5)
bridgetown-paginate (1.3.4)
bridgetown-core (= 1.3.4)
bridgetown-sitemap (2.0.2)
bridgetown (>= 1.2.0, < 2.0)
colorator (1.1.0)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
Expand Down Expand Up @@ -135,6 +137,7 @@ PLATFORMS

DEPENDENCIES
bridgetown (~> 1.3.4)
bridgetown-sitemap (~> 2.0)
puma (< 7)

BUNDLED WITH
Expand Down
3 changes: 3 additions & 0 deletions config/initializers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,7 @@

# For more documentation on how to configure your site using this initializers file,
# visit: https://edge.bridgetownrb.com/docs/configuration/initializers/

# https://github.com/ayushn21/bridgetown-sitemap
init :"bridgetown-sitemap"
end
1 change: 1 addition & 0 deletions src/404.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
permalink: /404.html
layout: default
sitemap: false
---

<h1>404</h1>
Expand Down
1 change: 1 addition & 0 deletions src/500.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
permalink: /500.html
layout: default
sitemap: false
---

<h1>500</h1>
Expand Down
1 change: 1 addition & 0 deletions src/about.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: page
title: About
sitemap: false
---

This is the basic Bridgetown site template. You can find out more info about customizing your Bridgetown site, as well as basic Bridgetown usage documentation at [bridgetownrb.com](https://bridgetownrb.com/)
Expand Down
1 change: 1 addition & 0 deletions src/posts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: Posts
sitemap: false
---

<section class="section">
Expand Down

0 comments on commit 7c1c16f

Please sign in to comment.