Skip to content

Commit 388b78b

Browse files
committed
Support for webm video, added favicon
1 parent 98067ce commit 388b78b

File tree

7 files changed

+30
-17
lines changed

7 files changed

+30
-17
lines changed

_config.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,37 +37,41 @@ email_address : [email protected]
3737
features :
3838

3939
- title : GitHub Pages Jekyll Theme
40-
description : Designed for GitHub Pages. Fork. Edit _config.yml. Push to gh-pages branch. Voilá!
40+
description : Designed for GitHub Pages. Fork. Edit _config.yml. Upload screenshot/video. Push to gh-pages branch. Voilá!
4141
fontawesome_icon_name : magic
4242

4343
- title : iPhone Device Preview
44-
description : Show your app in the context of an iPhone device. Five different colors included.
44+
description : Preview your app in the context of an iPhone device. Five different device colors included.
4545
fontawesome_icon_name : mobile
4646

47+
- title : Video Support
48+
description : Preview app video on the iPhone device simply by placing your video files in the videos folder.
49+
fontawesome_icon_name : play
50+
51+
- title : Automatic Icon and Metadata
52+
description : Enter iOS app ID in the _config.yml file to automatically fetch app icon, price and App Store Link.
53+
fontawesome_icon_name : sync
54+
4755
- title : Easy to Tweak
4856
description : Tweak accent color, images, icons and transparency via the _config.yml file. No HTML/CSS needed.
4957
fontawesome_icon_name : adjust
50-
51-
- title : Five device colors
52-
description : Choose between five different iPhone colors to match your app's visual identity.
53-
fontawesome_icon_name : palette
5458

5559
- title : Feature List
56-
description : Add features (like this one) to your site simply by editing the _config.yml file.
60+
description : Add features (like this one) to your site via the _config.yml file. No HTML/CSS needed.
5761
fontawesome_icon_name : star
5862

59-
- title : Automatic App Icon
60-
description : Enter iOS app ID in the _config.yml file to automatically fetch app icon, price and App Store Link.
61-
fontawesome_icon_name : sync
62-
6363
- title : Smart App Banner
64-
description : Display a smart app banner right on iOS devices.
64+
description : Display a smart app banner on iOS devices.
6565
fontawesome_icon_name : arrow-alt-circle-down
6666

6767
- title : Social Links
68-
description : Easily add social media accounts and contact info in the footer.
68+
description : Easily add social media accounts and contact info in the footer via the _config.yml file. No HTML/CSS needed.
6969
fontawesome_icon_name : link
7070

71+
- title : FontAwesome Support
72+
description : Pick custom Font Awesome icons for the feature list via the _config.yml file. No HTML/CSS needed.
73+
fontawesome_icon_name : info-circle
74+
7175
- title : # New Feature Title
7276
description : # New Feature Description
7377
fontawesome_icon_name : # Enter Font Awesome icon name (e.g. star). Find icons on fontawesome.com/icons.

_includes/appstoreimages.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
console.info("Image strings loaded from Apple API.");
1616
var appInfo = json.results[0];
1717

18+
// Set favicon
19+
$('link[rel="shortcut icon"]').attr("href", appInfo.artworkUrl512);
20+
1821
// Set large app icon using the iOS app ID if it is not set manually in _config.yml
1922
var $appIconLarge = $(".appIconLarge");
2023
if (!$appIconLarge.attr('src')) {

_includes/head.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
<meta name="description" content="{{ site.app_description }}">
99

1010
<!-- Favicon -->
11-
{% if site.favicon %}
12-
<link rel="shortcut icon" href="{{ site.app_icon }}">
13-
{% endif %}
11+
<link rel="shortcut icon" href="{{ site.app_icon }}">
1412

1513
<!-- Smart App Banner -->
1614
{% if site.enable_smart_app_banner %}

_includes/screencontent.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
console.log("remove screenshot");
1717
});
1818
</script>
19-
{% if file.extname == ".mov" %}
19+
{% if file.extname == ".mov" or file.extname == ".mp4" %}
2020
<script>
2121
$(function() {
2222
$(".videoContainer").removeClass("hidden");
@@ -32,6 +32,14 @@
3232
console.log("{{ file.path }}");
3333
});
3434
</script>
35+
{% elsif file.extname == ".webm" %}
36+
<script>
37+
$(function() {
38+
$(".videoContainer").removeClass("hidden");
39+
$(".screenvideo").append('<source src="{{ file.path }}" type="video/webm">');
40+
console.log("{{ file.path }}");
41+
});
42+
</script>
3543
{% endif %}
3644
{% endif %}
3745
{% endfor %}
12.6 KB
Loading

assets/videos/yourvideo.mov

-13.2 MB
Binary file not shown.

assets/videos/yourvideo.ogg

-481 KB
Binary file not shown.

0 commit comments

Comments
 (0)