File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change
1
+ # page title
2
+ page_title : # Automatically populates with app name if not set and if iOS app ID is set. Otherwise enter manually.
3
+
1
4
# App Info
2
5
ios_app_id : 1234793120 # Required. Enter iOS app ID to automatically populate name, price and icons (e.g. 718043190).
3
6
Original file line number Diff line number Diff line change 18
18
// Set favicon
19
19
$ ( 'link[rel="shortcut icon"]' ) . attr ( "href" , appInfo . artworkUrl512 ) ;
20
20
21
+ // Set page title using the iOS app ID if it is not set manually in _config.yml
22
+ var $pageTitle = $ ( ".pageTitle" ) ;
23
+ if ( $ . trim ( $ ( $pageTitle ) . text ( ) ) . length == 0 ) {
24
+ $ ( $pageTitle ) . html ( appInfo . trackName ) ;
25
+ }
26
+
21
27
// Set large app icon using the iOS app ID if it is not set manually in _config.yml
22
28
var $appIconLarge = $ ( ".appIconLarge" ) ;
23
29
if ( ! $appIconLarge . attr ( 'src' ) ) {
44
50
$ ( $appPrice ) . html ( appInfo . formattedPrice ) ;
45
51
}
46
52
47
- // Set price using the iOS app ID if it is not set manually in _config.yml
53
+ // Set App Store link using the iOS app ID if it is not set manually in _config.yml
48
54
var $appStoreLink = $ ( ".appStoreLink" ) ;
49
- if ( $ . trim ( $ ( $ appStoreLink) . text ( ) ) . length == 0 ) {
55
+ if ( $ . trim ( $appStoreLink . attr ( 'href' ) ) . length == 0 ) {
50
56
$ ( $appStoreLink ) . attr ( "href" , appInfo . trackViewUrl ) ;
51
57
}
52
58
Original file line number Diff line number Diff line change 4
4
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
5
5
< base target ="_blank ">
6
6
7
- < title > {{ site.app_name }}</ title >
7
+ < title class =" pageTitle " > {{ site.page_title }}</ title >
8
8
< meta name ="description " content ="{{ site.app_description }} ">
9
9
10
10
< link rel ="shortcut icon " href ="{{ site.app_icon }} ">
Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ <h2 class="appPrice">
52
52
</ div >
53
53
< div class ="downloadButtonsContainer ">
54
54
{% if site.playstore_link %}
55
- < a class ="playStoreLink " href =""> < img class ="playStore " src ="assets/playstore.png "> </ a >
55
+ < a class ="playStoreLink " href ="{{site.playstore_link}} "> < img class ="playStore " src ="assets/playstore.png "> </ a >
56
56
{% endif %}
57
- < a class ="appStoreLink " href =""> < img class ="appStore " src ="assets/appstore.png "> </ a >
57
+ < a class ="appStoreLink " href ="{{site.appstore_link}} "> < img class ="appStore " src ="assets/appstore.png "> </ a >
58
58
</ div >
59
59
</ div >
60
60
{% include features.html %}
You can’t perform that action at this time.
0 commit comments