Skip to content

Commit

Permalink
Merge pull request #302 from jonathanhefner/meta-tags-description-for…
Browse files Browse the repository at this point in the history
…-prose

Add description `meta` tag for prose files
  • Loading branch information
jonathanhefner authored Sep 14, 2023
2 parents 12ee375 + d339e4d commit 5984cee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions lib/rdoc/generator/template/rails/_head.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@
<% end %>
<meta property="og:type" content="article">
<meta property="article:modified_time" content="<%= og_modified_time %>">
<% if description = page_description(context.description) %>
<meta name="description" property="og:description" content="<%= description %>">
<% end %>
3 changes: 0 additions & 3 deletions lib/rdoc/generator/template/rails/class.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
<%= include_template '_head.rhtml', {:context => klass, :tree_keys => klass.full_name.split('::') } %>

<meta property="og:title" value="<%= og_title klass.full_name %>">
<% if description = page_description(klass.description) %>
<meta name="description" property="og:description" content="<%= description %>">
<% end %>
</head>

<body>
Expand Down

0 comments on commit 5984cee

Please sign in to comment.