All the invite codes at the right place 🏷️🤑
npm install
bundler installnpm run dev- Choose an unique id for the company (
acmefor example) - Open
_data/companies.yml - Add the unique id to
all - At the end of the file add the companies metadata following this example
acme: #replace acme by the unique id
name: ACME
title: Get a 20 € in your ACME account
color: '#f4f4f4' # should match the theme color of the company
guide: Create an account using this invite code and do a first purchase
link: /acme/
icon: acme.png- Add the icon of the company in
_images/icons/using the same name that in the previous metadata
- Choose an unique id as a username (
johndoefor example) - Open
_data/users.yml - Add the unique id to
all - At the end of the file add the username followed by these 3 attributes
url,codesandcompaniesfollowing this example:
johndoe:
url:
uber: https://www.uber.com/invite/f416b
airbnb: https://abnb.me/e/JEIN6Vvx9N
acme: https://www.acme.com/code123
codes:
uber: f416b
airbnb: JEIN6Vvx9N
acme: code123
companies:
- uber
- airbnb
- acme- At the root of the project create a
mdfile with the same unique id as the company (acme.mdfor example) - Copy paste the following content and make sure to change the values of
title,permalinkandcompany, alsocompany's value should be the same as the unique id:
---
layout: code
type: code
title: ACME promocodes
permalink: /acme/
company: acme # it should match the unique id defined previously
---- At the root of the project create a
mdfile with the same unique id as the username (johndoe.mdfor example) - Copy paste the following content and make sure to change the values of
title,permalinkandusername, alsousername's value should be the same as the username unique id:
---
layout: list
type: list
title: John Doe's Promo codes
permalink: /johndoe/
username: johndoe # it should match the unique id defined previously
---- Each promocode added to a specific user should have its own page, so create a
mdfile with the name of username and the unique id of the company (johndoe_acme.md) - Copy paste the following content and make sure to change the values of
title,permalink,username,company, once againusernameshould match the username unique id, andcompanythe company's unique id:
---
layout: code
type: code
title: John Doe's ACME promocode
permalink: /johndoe/acme/
username: johndoe # it should match the unique id defined previously
company: acme # it should match the unique id defined previously
---👤 Sandoche ADITTANE & Farbod SARAF
- Twitter: @farbodsaraf
- Github: @sandoche
Contributions, issues and feature requests are welcome!
Give a ⭐️ if this project helped you!
If you like this project, feel free to donate: https://www.buymeacoffee.com/detoxify
Copyright © 2020 Sandoche ADITTANE & Farbod SARAF
This project is MIT licensed.