Instance helper to replace site title helper (#2038)
* Move site title helper to instance helper (name change only) * Remove newline in <title> tag * Add site_hostname helper method to wrap up local_domain value * Use site_hostname helper in places that need local_domain value
This commit is contained in:
parent
e1e15adf1d
commit
389f8f8249
19 changed files with 64 additions and 39 deletions
|
@ -6,7 +6,7 @@ node(:version) { '1.0' }
|
|||
node(:title, &:title)
|
||||
node(:author_name) { |entry| entry.account.display_name.blank? ? entry.account.username : entry.account.display_name }
|
||||
node(:author_url) { |entry| account_url(entry.account) }
|
||||
node(:provider_name) { Rails.configuration.x.local_domain }
|
||||
node(:provider_name) { site_hostname }
|
||||
node(:provider_url) { root_url }
|
||||
node(:cache_age) { 86_400 }
|
||||
node(:html) { |entry| "<iframe src=\"#{embed_account_stream_entry_url(entry.account, entry)}\" style=\"width: 100%; overflow: hidden\" frameborder=\"0\" width=\"#{@width}\" height=\"#{@height}\" scrolling=\"no\"></iframe>" }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
object false
|
||||
|
||||
node(:uri) { Rails.configuration.x.local_domain }
|
||||
node(:uri) { site_hostname }
|
||||
node(:title) { Setting.site_title }
|
||||
node(:description) { Setting.site_description }
|
||||
node(:email) { Setting.site_contact_email }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue