renamed merchant directory

This commit is contained in:
Riccardo Spagni 2015-02-20 09:51:54 +02:00
parent 64a9d1df43
commit 6d86b976e8
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
3 changed files with 5 additions and 5 deletions

View file

@ -46,7 +46,7 @@ module Jekyll
entry = SafeYAML.load_file(entry_file)
if !entry.empty?
@@moneropedia.push({ :terms => entry['terms'], :summary => entry['summary'] })
@@moneropedia.push({ :terms => entry['terms'], :summary => entry['summary'], :file => File.basename(entry_file, ".*") })
end
end
end
@ -54,7 +54,7 @@ module Jekyll
# replace instances of @term with tooltips of the summary
@@moneropedia.each do |entry|
entry[:terms].each do |term|
content = content.gsub(/(\@#{term})\b/i, '<a href="/knowledge-base/moneropedia/' + term + '" data-toggle="tooltip" data-placement="top" data-original-title="' + entry[:summary] + '">' + term + '</a>')
content = content.gsub(/(\@#{term})\b/i, '<a href="/knowledge-base/moneropedia/' + entry[:file] + '" data-toggle="tooltip" data-placement="top" data-original-title="' + entry[:summary] + '">' + term + '</a>')
end
end

View file

@ -23,7 +23,7 @@ menu:
running: How to Run a Monero Node
donations: Donating and Sponsorships
downloads: All Monero Downloads
merchants: Monero Merchant Directory
merchants: Merchants and Services Directory
accepting: Accepting Monero Payments
about: About Monero
people: The People Behind Monero

View file

@ -1,8 +1,8 @@
---
layout: static_page
title: "Monero Merchant Directory"
title: "Monero Merchants and Services Directory"
title-pre-kick: "Monero "
title-kick: "Merchant "
title-kick: "Merchants and Services "
title-post-kick: "Directory"
kick-class: "purple-kicks"
icon: "icon_merchants"