-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IFSC Website #32
base: master
Are you sure you want to change the base?
IFSC Website #32
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will review completely after discussing offline once.
</tr> | ||
<tr> | ||
<th>Contact</th> | ||
<td><%= data['CONTACT']%></td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some of the data is null and it's not sanitized properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, design is WIP for now.
@@ -0,0 +1 @@ | |||
Sitemap: https://ifsc.stage.razorpay.in/sitemap.xml.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put the prod url. until we submit the sitemap, search engines will not crawl i guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool.
d.delete_if { |key| %w[BANK IFSC].include? key } | ||
redis.hmset ifsc, *d | ||
# CHANGE TO .com before merging | ||
SitemapGenerator::Sitemap.default_host = 'https://ifsc.stage.razorpay.in' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get it from config may be?
if data['BANK'] && data['BRANCH'] | ||
url = "/#{data['BANK'].to_s.to_slug}/#{data['BRANCH'].to_s.to_slug}/#{ifsc}" | ||
end | ||
if url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge both if's
</tr> | ||
<tr> | ||
<th>Address</th> | ||
<td><%= data['ADDRESS']%></td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, add https://schema.org/ context schema so that search engines recognize the data easily
- Adds a PINCODE attribute as well
6af02f0
to
9365741
Compare
Testing instructions:
Then open one of these in the browser:
TODO:
/banks/:code
doesn't seem to