diff --git a/example/example.jpg b/example/example.jpg
new file mode 100644
index 0000000..fa21ecb
Binary files /dev/null and b/example/example.jpg differ
diff --git a/example/example.json b/example/example.json
new file mode 100644
index 0000000..f6d6ee7
--- /dev/null
+++ b/example/example.json
@@ -0,0 +1 @@
+{"image": "example.jpg", "title": "ExampleSite", "link_0": "Website", "link_0_url": "https://nathan.woodburn.au", "link_1": "Github", "link_1_url": "https://git.woodburn.au/nathanwoodburn", "link_2": "Test", "link_2_url": "https://example.com", "link_3": "", "link_3_url": "", "bg_0": "#001665", "bg_1": "#000000", "fg_0": "#ffffff", "btn_bg": "#2c54cf", "btn_fg": "#ffffff", "socials": [{"name": "email", "url": "links@hns.au"}, {"name": "twitter", "url": "https://twitter.com/hns"}], "address":[]}
\ No newline at end of file
diff --git a/main.py b/main.py
index b872424..b8bc609 100644
--- a/main.py
+++ b/main.py
@@ -71,7 +71,7 @@ def index():
with open(f'sites/{host}.json') as file:
data = json.load(file)
- return render.site(data)
+ return render.site(data, True)
return redirect(f'https://{DOMAINS[0]}')
@app.route('/site')
diff --git a/render.py b/render.py
index 5f0196a..17f60bf 100644
--- a/render.py
+++ b/render.py
@@ -71,7 +71,7 @@ def tokenImage(token,foreground):
return f''
return f''
-def site(data):
+def site(data, injectSSL = False):
title = data['title']
link_0 = data['link_0']
link_1 = data['link_1']
@@ -89,10 +89,14 @@ def site(data):
socials = social_links(data['socials'])
addresses = address_links(data['address'],data['fg_0'])
+ ssl = ''
+ if injectSSL:
+ ssl = ''
+
html = render_template('page.html', title=title, links=links, image=image,
bg_0=data['bg_0'], bg_1=data['bg_1'], fg_0=data['fg_0'],
btn_bg=data['btn_bg'], btn_fg=data['btn_fg'],
- socials=socials, addresses=addresses)
+ socials=socials, addresses=addresses + ssl)
html = html.replace('/assets/img/favicon.png',f'/avatar/{data["image"]}')
return html