Unverified Commit 6d86b976 authored by Riccardo Spagni's avatar Riccardo Spagni
Browse files

renamed merchant directory

parent 64a9d1df
......@@ -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
......
......@@ -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
......
---
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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment