Skip to content

Commit 499c945

Browse files
committed
Allow config to specify country
App Store lookup data fetched for specified country. E.g. 'us' (default), 'gb', with 2 letter country code defined in https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
1 parent 5e4438b commit 499c945

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ page_title :
33

44
# App Info
55
ios_app_id : 1234793120 # Required. Enter iOS app ID to automatically populate name, price and icons (e.g. 718043190).
6+
ios_app_country : us # Optional, Enter 2 letter country code as in https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
67

78
appstore_link : # Automatically populates if not set and if iOS app ID is set. Otherwise enter manually.
89
playstore_link : # Enter Google Play Store URL.

_includes/appstoreimages.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
$(function() {
88

9-
var apiURL = "https://itunes.apple.com/lookup?id={{ site.ios_app_id }}&callback=?";
9+
var apiURL = "https://itunes.apple.com/lookup?id={{ site.ios_app_id }}&country={{ site.ios_app_country }}&callback=?";
1010

1111
$.getJSON(apiURL, function(json) {
1212

0 commit comments

Comments
 (0)