Skip to content

Commit e5915a1

Browse files
authored
Merge pull request emilbaehr#50 from cowlibob/master
Allow _config.yml to specify country
2 parents 2df4273 + 547bb50 commit e5915a1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

_config.yml

Lines changed: 2 additions & 1 deletion
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 # Required outside USA. 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.
@@ -138,4 +139,4 @@ collections:
138139
permalink: /:path/
139140

140141
# Markdown rendering
141-
markdown: kramdown
142+
markdown: kramdown

_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)