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
15 changes: 15 additions & 0 deletions nano/database.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import os

from supabase import Client, create_client

# Supabase configuration
SUPABASE_URL = os.getenv("SUPABASE_URL")
SUPABASE_KEY = os.getenv("SUPABASE_KEY")

# Create Supabase client
supabase: Client = create_client(SUPABASE_URL, SUPABASE_KEY)


# Dependency to get the Supabase client
def get_db():
return supabase
4 changes: 2 additions & 2 deletions nano/templates/landing_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Minimal Blog</title>
<title>NanoBlog</title>
<link
rel="stylesheet"
href="{{ url_for('static', filename='css/home/home.css') }}"
Expand All @@ -12,7 +12,7 @@
<body>
<!-- Navbar -->
<nav class="navbar">
<h1>Minimal Blog</h1>
<h1>NanoBlog</h1>
<input type="text" id="search" placeholder="Search blog posts..." />
<button id="dark-mode-toggle">🌙</button>
</nav>
Expand Down