Skip to content

Commit

Permalink
Merge pull request #9 from SAMAD101/issue7
Browse files Browse the repository at this point in the history
Added metadata to index and web templates
  • Loading branch information
Mr-Sunglasses authored Dec 22, 2023
2 parents 25fd9c3 + 996f1df commit 8cc3daf
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,4 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.idea/
11 changes: 11 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
annotated-types==0.6.0
anyio==3.7.1
fastapi==0.104.1
idna==3.6
Jinja2==3.1.2
MarkupSafe==2.1.3
pydantic==2.5.2
pydantic_core==2.14.5
sniffio==1.3.0
starlette==0.27.0
typing_extensions==4.9.0
2 changes: 1 addition & 1 deletion src/paste/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from fastapi import FastAPI
from fastapi.templating import Jinja2Templates
from fastapi.middleware.cors import CORSMiddleware
from .utils import generate_uuid
from utils import generate_uuid

app = FastAPI(title="paste.py 🐍")

Expand Down
12 changes: 9 additions & 3 deletions src/paste/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>paste.py 🐍</title>
<title>paste.py 🐍</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="og:title" content="paste.py 🐍"/>
<meta name="og:site_name" content="paste.py"/>
<meta name="og:description" content="A simple pastebin powered by FastAPI."/>
<meta name="og:type" content="website"/>
<meta name="og:url" content="https://paste.fosscu.org"/>
<meta name="og:locale" content="en_US"/>
<style>
body {
font-family: sans-serif;
Expand Down
12 changes: 9 additions & 3 deletions src/paste/templates/web.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>paste.py 🐍</title>
<title>paste.py 🐍</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="og:title" content="paste.py 🐍"/>
<meta name="og:site_name" content="paste.py"/>
<meta name="og:description" content="Web form for posting to paste.py. A simple pastebin powered by FastAPI."/>
<meta name="og:type" content="website"/>
<meta name="og:url" content="https://paste.fosscu.org/web"/>
<meta name="og:locale" content="en_US"/>
<style>
body {
font-family: sans-serif;
Expand Down

0 comments on commit 8cc3daf

Please sign in to comment.