Skip to content

Commit 6f8039b

Browse files
authored
Merge pull request emilbaehr#17 from emilbaehr/pagesupport
2.0 Update: Support for privacy policy, changelog and custom pages
2 parents 2d4a0e6 + 17fb371 commit 6f8039b

File tree

15 files changed

+1390
-39
lines changed

15 files changed

+1390
-39
lines changed

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
.bundle
22
.sass-cache
33
_site
4-
Gemfile
5-
Gemfile.lock
6-
mobile-app-landing-page.gemspec
7-
*.gemspec
4+
Gemfile.lock

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source "https://rubygems.org"
2+
gem 'github-pages'

README.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,17 @@ Designed for GitHub Pages for super easy set up.
1111

1212
🎨 Customise site in `_config.yml` (no HTML/CSS)
1313

14+
📝 Write Privacy Policy as markdown in `privacypolicy.md`
15+
16+
🕒 Keep a changelog in `CHANGELOG.md`
17+
1418
✅ Site becomes live at GitHub Pages repository URL, e.g. `https://your-username.github.io/your-repo-name/`.
1519

1620
<img src="https://emilbaehr.com/files/jayson1.png" width="440"> <img src="https://emilbaehr.com/files/slor1.png" width="440">
1721

22+
23+
24+
1825
## Quick Start
1926

2027
### Step 1: Fork this repo.
@@ -51,13 +58,9 @@ Things you can customise in `_config.yml`:
5158

5259
### Step 3: Add screenshot or video
5360

54-
55-
5661
#### Adding a screenshot
5762
Upload a `.png` or `.jpg` of your app to the folder `assets/screenshot/`. The name does not matter. Be sure to delete the placeholder `yourscreenshot.png`.
5863

59-
60-
6164
#### Adding video
6265
Upload your video to the folder `assets/videos/`. To have support for most browsers, you need to upload two files – one for Safari and one for Chrome/Firefox.
6366

@@ -69,8 +72,6 @@ Video formats supported by Safari:
6972
- `.mp4`
7073
- `.mov`
7174

72-
73-
7475
#### Resolutions
7576
The videos and screenshots must have one of the following resolutions:
7677
- 828x1792
@@ -79,27 +80,34 @@ The videos and screenshots must have one of the following resolutions:
7980

8081

8182

83+
### Step 4: Edit (or remove) Privacy Policy and Changelog
84+
Your site automatically includes pages for a Privacy Policy and a Changelog. Change the content of these pages by editing the `privacypolicy.md` and `CHANGELOG.md` files in the `_pages` directory.
85+
86+
In each of the markdown files, you can set the `include_in_header:` value to either `true` or `false`. This determines if the page is included in the top navigation.
87+
By default, only the Changelog is included in the top navigation. The title of the navigation item can also be edited, by editing the `title:` in each markdown file.
88+
89+
If you need to, you can create additional markdown based pages just by creating an `.md` file like the `privacypolicy.md` and `CHANGELOG.md` files in the `_pages` directory.
90+
91+
**Please note:** The Privacy Policy and Changelog provided are written using dummy text, so please adapt each of them for your own app.
92+
You can also choose not to include these pages, by simple deleting the `privacypolicy.md` and `CHANGELOG.md` files.
93+
94+
95+
96+
8297
## Feedback
8398
If you have feedback regarding bugs or improvements, open an issue, @ me on Twitter or write me an email. You can find my contact info on my website.
8499

85100
I'd love to see the sites you create using this little tool.
86101

87-
88-
89102
## Credits
90103
- [Jekyll](https://github.com/jekyll/jekyll)
91104
- [FontAwesome](https://fortawesome.github.io/Font-Awesome/)
92105

93-
94-
95106
## Donations
96107
[Donations are welcome](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=S8ZZT3JXJPN92&currency_code=USD&source=url)
97108

98-
99109
## Author
100110
[Emil Baehr](https://emilbaehr.com/)
101111

102-
103-
104112
## License
105113
[MIT License](LICENSE)

_config.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ios_app_id : 1234793120
66

77
appstore_link : # Automatically populates if not set and if iOS app ID is set. Otherwise enter manually.
88
playstore_link : # Enter Google Play Store URL.
9-
presskit_download_link : # Enter a link to downloadable file or (e.g. public Dropbox link to a .zip file).
9+
presskit_download_link : https://emilbaehr.com # Enter a link to downloadable file or (e.g. public Dropbox link to a .zip file).
1010
# Or upload your press kit file to assets and set path accordingly (e.g. "assets/your_press_kit.zip").
1111

1212
app_icon : # assets/appicon.png # Automatically populates if not set and if iOS app ID is set. Otherwise enter path to icon file manually.
@@ -131,3 +131,11 @@ exclude:
131131
- LICENSE
132132
- README.md
133133
- CNAME
134+
135+
collections:
136+
pages:
137+
output: true
138+
permalink: /:path/
139+
140+
# Markdown rendering
141+
markdown: kramdown

_includes/footer.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,12 @@
3939
{% endif %}
4040

4141
</div>
42+
<div class="footerLinks">
43+
{% for page in site.pages %}
44+
<a href="{{ page.url | relative_url }}" target="_self">{{ page.title }}</a>
45+
{% endfor %}
46+
{% if site.presskit_download_link %}
47+
<a href="{{ site.presskit_download_link }}">Press Kit</a>
48+
{% endif %}
49+
</div>
4250
</footer>

_includes/head.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@
1515
{% endif %}
1616

1717
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
18+
<link rel="stylesheet" href="/main.css">
1819
<link rel="stylesheet" href="main.css">
19-
</head>
20+
<link rel="stylesheet" href="../main.css">
21+
</head>

_includes/header.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
<header>
32
<div class="logo">
43
<div class="appIconShadow">
@@ -9,14 +8,24 @@
98
</clipPath>
109
</defs>
1110
</svg>
12-
<img class="headerIcon" src="{{ site.app_icon }}">
11+
{% if page.url != '/' %}
12+
<a href="../" target="_self"><img class="headerIcon" src="{{ site.app_icon }}"></a>
13+
{% else %}
14+
<img class="headerIcon" src="{{ site.app_icon }}">
15+
{% endif %}
16+
<div class="divider"></div>
1317
</div>
1418
<p class="headerName">{{ site.app_name }}</p>
1519
</div>
16-
<nav>
20+
<nav class="scroll">
1721
<ul>
22+
{% for page in site.pages %}
23+
{% if page.include_in_header == true %}
24+
<li><a href="{{ page.url | relative_url }}" target="_self">{{ page.title }}</a></li>
25+
{% endif %}
26+
{% endfor %}
1827
{% if site.presskit_download_link %}
19-
<li><a href="{{ site.presskit_download_link }}">Press Kit</a></li>
28+
<li><a href="{{ site.presskit_download_link }}">Press Kit</a></li>
2029
{% endif %}
2130
</ul>
2231
</nav>

_layouts/page.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
# Front matter comment to ensure Jekyll properly reads file.
3+
---
4+
5+
<!DOCTYPE html>
6+
<html lang="en-us">
7+
8+
{% include head.html %}
9+
10+
<body class="subPageBody">
11+
<div class="headerBackground subPageHeaderBackground">
12+
<div class="container subPageContainer">
13+
{% include header.html %}
14+
<article class="page markdown-body">
15+
{{ content }}
16+
</article>
17+
</div>
18+
{% include appstoreimages.html %}
19+
</div>
20+
</body>
21+
22+
</html>

_pages/changelog.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
layout: page
3+
title: What's New
4+
include_in_header: true
5+
---
6+
7+
# Changelog
8+
Here you can keep a changelog for your app. Edit the markdown based CHANGELOG.md which is located in the _pages directory. The changelog below is simply an example changelog that serves to exemplify how the markdown can be used. You can be as creative as you want with the markdown.
9+
10+
<br>
11+
12+
### `Latest`
13+
# **Version 2.0**
14+
This is the first update to our app. Jeez **goodness** by kept more sensually a much far proper exotically precise [here is a link](https://www.google.com) and and illicit hey uninspiring the more sat honey knelt before before bearish bowed lorikeet wolf grandly instead diligently and rhinoceros imperative.
15+
16+
#### What's New
17+
- Much far proper exotically precise unaccountable.
18+
- [Changes to Privacy Policy](/privacypolicy)
19+
20+
#### Bug Fixes
21+
- Much far proper exotically precise unaccountable.
22+
- [Changes to Privacy Policy](/privacypolicy)
23+
24+
<br>
25+
26+
### **Version 2.1**
27+
Abnormal and formidable against much the before well improper more spent far heron amicably iguana plainly swanky upon mammoth **much paid darn some tapir** some glared save crud more regarding one accommodating gosh cannily and on hungry a more goodness inside merry yikes wedded versus because some a a a shined anteater goldfinch jeez up so and this this a.
28+
29+
#### What's New
30+
- Much far proper exotically precise unaccountable.
31+
- Much far proper exotically precise unaccountable.
32+
33+
<br>
34+
35+
________
36+
<br>
37+
38+
### `Initial Release`
39+
# **Version 1.0**
40+
Cracked a more and iguana a without some echidna a abnormal hello and beat thanks jeepers gnu jeepers until up depending for drooled awfully angelfish relentless much a well wasp some in impala darn and overate greedily wow kookaburra beneath much wistful fluid until and lemming less armadillo redoubtable after much capybara wow that hence interbred timorous loosely oh divisively wherever because jeepers until since as that goodness roadrunner insanely belated physic jeepers hey jeepers much the beside steadfastly up toward indubitably this goodness playful.
41+
42+
<br>
43+
44+
## **Version 1.1**
45+
Abnormal and formidable against much the before well improper more spent far heron amicably iguana plainly swanky upon mammoth **much paid darn some tapir** some glared save crud more regarding one accommodating gosh cannily and on hungry a more goodness inside merry yikes wedded versus because some a a a shined anteater goldfinch jeez up so and this this a.
46+
47+
#### What's New
48+
- Much far proper exotically precise unaccountable.
49+
- Much far proper exotically precise unaccountable.
50+
51+
<br>
52+
53+
## Version 1.0.1
54+
That wow robin one and gosh audibly darn that variously less across softly awakened under affectingly wildebeest from jeepers far contemplated and indisputably clung jeepers much mistaken some after mumbled hey certain neatly far alas more trod the swelled rolled permissively so save pert the tapir paradoxical off so then juggled crud a however overslept vehemently kept indisputably anteater walked alas or into.
55+
56+
#### What's New
57+
- Much far proper exotically precise unaccountable.
58+
- Much far proper exotically precise unaccountable.
59+
- Much far proper exotically precise unaccountable.
60+
61+
#### Bug Fixes
62+
- Improved user sign up experience.
63+
- Unlike deliberately zebra hen oh jeez understandable. Alas and quit oh snooty unlike deliberately.
64+
65+
<br>

_pages/privacypolicy.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
layout: page
3+
title: Privacy Policy
4+
include_in_header: false
5+
---
6+
7+
**Last updated**
8+
August 1 2019
9+
10+
# Privacy Policy
11+
Submissive a when owing much far bawdy thanks impolitely alas overlaid one and this one chuckled darn on more due much misheard amused far far the much purposeful that wildebeest dalmatian and piranha bluebird this and much despite however much sincere nonsensical this paradoxically more.
12+
13+
**Please note:** This is purely a dummy Privacy Policy that serves as an example for how you can use this app landing page generator. Please replace the contents with your own privacy policy.
14+
15+
<br>
16+
17+
## 1.0 Information We Collect
18+
Far near but lighted walking far oyster hello kneeled flung and roadrunner and more witless narrowly flexed brokenly blandly much in famous jeez obsessive that.
19+
20+
### 1.1 Information from third parties
21+
- Ouch until smirked some some newt that at frustrating.
22+
- Nimbly handsomely fabulously python.
23+
- Alas informally taped when a dear some.
24+
25+
### 1.2 Information you provide to us
26+
Menacingly much walrus far together derisive falcon the toneless unceremoniously yet yikes a hung when because far drooled cast amused naughtily quiet hare a thickly more dogged drank more this dismounted since hence nakedly jeez rolled far gerbil the hey puerilely where vociferously struck insane much twitched instead some beneath then wiped dull snuffed far jeez nightingale bit goodness obscurely quit that much yet nefarious careless some concrete shrewdly gull closed this hugged aboard.
27+
28+
<br>
29+
30+
## 2.0 What Personal Information we collect about you and how we collect it
31+
Where cut one reproachful alas ambiguous helpful hen raucous editorial underwrote dubiously therefore this boastfully or possessively oh modest amidst some opposite far wasp grew emu snickered some jeepers and circa much that *equitable* foul camel caudally oh opossum far dear met far much close hello beheld facetious far goodness tidily reindeer that kiwi thus crud that paid and by titilatingly hey falcon lemming or well approving sympathetically groundhog mongoose and deeply peaceful wow ouch far regally this and near and badly fatal blunt mischievously and and the blew.
32+
33+
### 2.1 Third Parties we collect information from
34+
Various remotely save this querulously explicitly one this and far congenially broad grew said or abhorrently haltered darn beheld panther shrank and one goldfish the more away as much different moth.
35+
36+
| Third Party | What is it used for? |
37+
| :--- | :--- |
38+
| Falcon | Tidily reindeer that kiwi thus crud that paid and by titilatingly hey falcon lemming. |
39+
| Eagle | Juggled crud a however overslept vehemently kept indisputably anteater walked alas or into. |
40+
41+
<br>
42+
43+
## 3.0 What rights do you, as the data subject, have
44+
This goodness well well and more cowardly lynx credibly more apart save and less oh examined ouch marginal growled and proper liberally salmon busy some while pointed far because understood.
45+
46+
1. Boastfully or possessively oh modest amidst.
47+
2. Far far the much purposeful that wildebeest dalmatian.
48+
3. Adamant or pushed less far overthrew.
49+
50+
All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.
51+
52+
<br>
53+
54+
## 4.0 How we store and secure the Personal Information we collect
55+
Worm where gravely behind logically far in tastefully as alas delicately before well darn then far the much pulled red-handed circa much much far pangolin spelled much clung dachshund smirked close some the adamant or pushed less far overthrew in moth begrudging warthog newt pragmatic bent darn and far needlessly notwithstanding angrily as celestially horse rebuking magnanimous dear inscrutably jeepers listless before saucy this much however and wolf dear cringed crab a wanton jeepers flatteringly characteristically a atrocious and returned more lemming robin let some crud that more secure nimble where soundly pitiful because bombastic much.
56+
57+
<br>
58+
59+
## 5.0 Information processing and transfers for EEA individuals
60+
Cracked a more and iguana a without some echidna a abnormal hello and beat thanks jeepers gnu jeepers until up depending for drooled awfully angelfish relentless much a well wasp some in impala darn and overate greedily wow kookaburra beneath much wistful fluid until and lemming less armadillo redoubtable after much capybara wow that hence interbred timorous loosely oh.

0 commit comments

Comments
 (0)