Skip to content

Commit 280ce2e

Browse files
committed
Dynamic social icon generation via confiq file
1 parent b78b8c8 commit 280ce2e

File tree

3 files changed

+64
-18
lines changed

3 files changed

+64
-18
lines changed

_config.yml

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
# Mobile App Landing Page Configuration
2+
3+
# App Info
4+
app_name : Landing
5+
app_description : Wherever some that and kiwi that well
6+
dolphin alas this the mindfully jeepers
7+
one aside canny one preparatory up less therefore
8+
hello oh amid goodness checked.
9+
app_price : 4.99
10+
ios_app_id :
11+
android_app_id :
12+
13+
# Social Links
14+
facebook_username :
15+
twitter_username : ebaehr
16+
github_username : emilbaehr
17+
email_address : [email protected]
18+
19+
# Features
20+
features :
21+
- title : First Feature
22+
description : A good description
23+
fontawesome_icon_name : adjust
24+
- title : Another feature
25+
description : Another good description
26+
fontawesome_icon_name : mobile
27+
28+
# Theme Settings
29+
accent_color : #000000
30+
image_overlay_color : #000000
31+
32+
33+
# Analytics
34+
google_analytics : # Enter Google Analytics tracking code (e.g. UA-2110908-2)
35+
36+
37+
38+
39+
40+
# # # # # # # # # # # # # # # #
41+
# Jekyll-specific Config Below
42+
143
# Where things are
244
source : .
345
destination : ./_site
@@ -10,15 +52,6 @@ collections:
1052
posts:
1153
output : true
1254

13-
# Features
14-
features :
15-
- title : 'First Feature'
16-
description : 'A good description'
17-
fontawesome_icon_name : adjust
18-
- title : 'Another feature'
19-
description : 'Another good description'
20-
fontawesome_icon_name : mobile
21-
2255
# Handling Reading
2356
safe : false
2457
include : [".htaccess", "_pages"]

_includes/footer.html

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,42 @@
11
<footer>
22
<p class="footerText">Designed and developed by <a href="http://emilbaehr.com">Emil Baehr</a> in Copenhagen</p>
33
<div class="footerIcons">
4-
<div>
4+
5+
{% if site.facebook_username %}
56
<a href="https://">
67
<span class="fa-stack fa-1x">
78
<i class="socialIconBack fas fa-circle fa-stack-2x"></i>
89
<i class="socialIconTop fab fa-facebook fa-stack-1x"></i>
910
</span>
1011
</a>
11-
</div>
12-
<div>
13-
<a href="https://">
12+
{% endif %}
13+
14+
{% if site.twitter_username %}
15+
<a href="https://twitter.com/{{ site.twitter_username }}">
1416
<span class="fa-stack fa-1x">
1517
<i class="socialIconBack fas fa-circle fa-stack-2x"></i>
1618
<i class="socialIconTop fab fa-twitter fa-stack-1x"></i>
1719
</span>
1820
</a>
19-
</div>
20-
<div>
21+
{% endif %}
22+
23+
{% if site.github_username %}
24+
<a href="https://">
25+
<span class="fa-stack fa-1x">
26+
<i class="socialIconBack fas fa-circle fa-stack-2x"></i>
27+
<i class="socialIconTop fab fa-github fa-stack-1x"></i>
28+
</span>
29+
</a>
30+
{% endif %}
31+
32+
{% if site.email_address %}
2133
<a href="https://">
2234
<span class="fa-stack fa-1x">
2335
<i class="socialIconBack fas fa-circle fa-stack-2x"></i>
2436
<i class="socialIconTop fas fa-envelope fa-stack-1x"></i>
2537
</span>
2638
</a>
27-
</div>
39+
{% endif %}
40+
2841
</div>
2942
</footer>

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737

3838
<div class="appNamePriceContainer">
3939
<h1 class="appName">
40-
Your App
40+
{{ site.app_name }}
4141
</h1>
4242
<h3 class="appPrice">
43-
$9.99
43+
${{ site.app_price }}
4444
</h3>
4545
</div>
4646
<div class="appDescriptionContainer">

0 commit comments

Comments
 (0)