Skip to content

Commit

Permalink
Merge pull request CredentialEngine#735 from learningtapestry/add-tit…
Browse files Browse the repository at this point in the history
…le-for-md-pages

Add title to markdown pages
  • Loading branch information
excelsior authored Oct 23, 2024
2 parents 9050070 + 605453f commit e01e8c9
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 e01e8c9

Please sign in to comment.