Skip to content

Commit

Permalink
Add title to markdown pages
Browse files Browse the repository at this point in the history
  • Loading branch information
excelsior committed Oct 23, 2024
1 parent 9050070 commit 605453f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/services/render_markdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ def body
Kramdown::Document.new(content, input: 'GFM').to_html
end

def title
"#{filename} · Credential Registry"
end

private

def path(fpath)
Expand Down
1 change: 1 addition & 0 deletions app/views/page.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
display: inline-block;
}
</style>
<title><%= title %></title>
</head>
<body>
<div class='container'><%= body %></div>
Expand Down

0 comments on commit 605453f

Please sign in to comment.