8000 merge master into prod by arjunnn · Pull Request #15 · arjunnn/linkinbio · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion linkinbio/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
SECRET_KEY = "django-insecure-5yb2fh4xiqby094dnk7)_0hz7*vt#zh4q9#uj)4d_1*cgnyx)l"

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True

ALLOWED_HOSTS = ["13.59.253.78", "localhost", "b2l.ink", "127.0.0.1"]

Expand Down Expand Up @@ -79,6 +79,14 @@
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "db.sqlite3",
},
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": "linkinbio",
"USER": "postgres",
"PASSWORD": "postgres",
"HOST": "localhost",
"PORT": "5432",
},
}

# Password validation
Expand Down
1 change: 1 addition & 0 deletions linkinbio/templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
href="{% static 'images/favicon-16x16.png' %}"
/>
<link rel="manifest" href="{% static 'images/site.webmanifest' %}" />
{% include 'snippets/meta.html' %}
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion linkinbio/templates/edit_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ <h2 class="card-title">Your Links</h2>
<iframe
class="phone-iframe"
title="Desktop Preview"
src="http://b2l.ink/{{request.user.username}}?iframe=1"
src="/{{request.user.username}}?iframe=1"
>
</iframe>
</div>
Expand Down
1 change: 1 addition & 0 deletions linkinbio/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
/>
<link rel="stylesheet" href="{% static 'css/themes.css' %}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
{% include 'snippets/meta.html' %}
</head>

<body>
Expand Down
1 change: 1 addition & 0 deletions linkinbio/templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
href="{% static 'images/favicon-16x16.png' %}"
/>
<link rel="manifest" href="{% static 'images/site.webmanifest' %}" />
{% include 'snippets/meta.html' %}
<style>
body {
/* background: url('http://thepatternlibrary.com/img/ar.png') repeat; */
Expand Down
5 changes: 4 additions & 1 deletion linkinbio/templates/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
/>
<link rel="stylesheet" href="{% static 'css/themes.css' %}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
{% include 'snippets/meta.html' %}
</head>

<body>
Expand Down Expand Up @@ -69,7 +70,9 @@ <h1 class="mb-5 text-4xl font-bold">Hey 👋</h1>
</p>
</div>
</div>
<p>made with 💜 by <a href="https://arjun.ninja/" target="_blank">arjun</a></p>
<p>
made with 💜 by <a href="https://arjun.ninja/" target="_blank">arjun</a>
</p>
</div>
<script>
const usernameField = document.querySelector('#id_username')
Expand Down
16 changes: 16 additions & 0 deletions linkinbio/templates/snippets/meta.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<meta name="keywords" content="linkinbio, b2l.ink, website, bio2link" />
<meta
name="description"
content="Bio2Link is a website to showcase your web presence with a single link "
/>
<meta name="copyright" content="Arjun Munji" />
<meta name="robots" content="index,follow" />
<meta name="revised" content="{% now 'l, F jS, o, P' %}" />
<meta
name="summary"
content="Bio2Link is a website to showcase your web presence with a single link "
/>
<meta name="author" content="name, arjunmunji+linkinbio@gmail.com" />
<meta name="owner" content="Arjun Munji" />
<meta name="url" content="http://b2l.ink/" />
<meta name="rating" content="General" />
0