mirror of
https://github.com/hahwul/WebHackersWeapons.git
synced 2024-12-18 12:14:22 -05:00
Add link to tags and langs
This commit is contained in:
parent
6ddd789fe6
commit
48d06bd8f8
@ -156,7 +156,7 @@ weapons.each do | data |
|
|||||||
temp_tags = []
|
temp_tags = []
|
||||||
begin
|
begin
|
||||||
data['tags'].each do |t|
|
data['tags'].each do |t|
|
||||||
temp_tags.push "`#{t}`"
|
temp_tags.push "[`#{t}`](/tags/#{t}.md)"
|
||||||
end
|
end
|
||||||
tags.concat temp_tags
|
tags.concat temp_tags
|
||||||
rescue
|
rescue
|
||||||
@ -164,8 +164,8 @@ weapons.each do | data |
|
|||||||
lang_badge = ""
|
lang_badge = ""
|
||||||
begin
|
begin
|
||||||
if data['lang'].length > 0 && data['lang'] != "null"
|
if data['lang'].length > 0 && data['lang'] != "null"
|
||||||
langs.push "`#{data['lang']}`"
|
langs.push "[`#{data['lang']}`](/langs/#{data['lang']}.md)"
|
||||||
lang_badge = "![](./images/#{data['lang'].downcase}.png)"
|
lang_badge = "[![#{data['lang']}](./images/#{data['lang'].downcase}.png)](/langs/#{data['lang']}.md)"
|
||||||
end
|
end
|
||||||
rescue
|
rescue
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user