Skip to content

Commit 0414b62

Browse files
committed
Add proper blog titles.
1 parent beb4625 commit 0414b62

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

_layout.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Writings | Ruby Elders</title>
6+
<title><%= @title %> | Ruby Elders</title>
77
<link rel="stylesheet" href="/css/writings.css" />
88
<link rel="icon" type="image/png" href="/assets/img/favicon.png" />
99
<!-- Syntax Highlighting: Prism.js -->

generate.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
# Generate writings index page
4646
@writings = writings
47+
@title = "Writings"
4748
@content = ERB.new(list_template).result(binding)
4849
html_output = ERB.new(layout_template).result(binding)
4950
File.write('writings.html', html_output)
@@ -56,6 +57,7 @@
5657
writings.each do |w|
5758
markdown = File.read(w[:source])
5859
@writing = w
60+
@title = w[:title]
5961
@content = Kramdown::Document.new(markdown).to_html
6062

6163
# Render the post template with writing and HTML content

writings/2025-08-we-love-ruby-march-2025.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Writings | Ruby Elders</title>
6+
<title>We ❤️ Ruby — March 2025: Our First Deep Dive into the RubyGems.org Ecosystem | Ruby Elders</title>
77
<link rel="stylesheet" href="/css/writings.css">
88
<link rel="icon" type="image/png" href="/assets/img/favicon.png">
99
<!-- Syntax Highlighting: Prism.js -->

0 commit comments

Comments
 (0)