Fix metadata title. Resolves #1484 (#1485)

* Fix metadata title
This commit is contained in:
Dawa Ometto
2020-03-16 16:53:18 +01:00
committed by GitHub
parent 54bbd1d789
commit f8829c68d6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -7,6 +7,6 @@ end
gem 'gollum-lib', :git => 'https://github.com/gollum/gollum-lib.git', :branch => 'gollum-lib-5.x' # For development purposes
gem 'therubyrhino', :platforms => :jruby
gemspec
gem "rake", ">= 12.3.3"
gem "rake", '~> 12.3', '>= 12.3.3'
+1 -1
View File
@@ -18,7 +18,7 @@ module Precious
def title
h1 = @h1_title ? page_header_from_content(@content) : false
h1 || @page.title
h1 || @page.url_path_title # url_path_title is the metadata title if present, otherwise the filename-based title
end
def page_header