Skip to content

Commit

Permalink
Improve social preview handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cyclotruc committed Dec 25, 2024
1 parent cb8b203 commit 38f59ba
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ async def api_docs(request: Request):
"api.jinja", {"request": request}
)

@app.get('/favicon.ico')
async def favicon():
return FileResponse('static/favicon.ico')

@app.get("/robots.txt")
async def robots():
return FileResponse('static/robots.txt')
Expand Down
Binary file added src/static/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/favicon-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 17 additions & 4 deletions src/templates/base.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,26 @@
<meta name="description" content="Replace 'hub' with 'ingest' in any Github Url for a prompt-friendly text">
<meta name="keywords" content="GitIngest, AI tools, LLM integration, Ingest, Digest, Context, Prompt, Git workflow, codebase extraction, Git repository, Git automation, Summarize, prompt-friendly">
<meta name="robots" content="index, follow">

<!-- Favicons -->
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg">
<link rel="icon" type="image/png" sizes="64x64" href="/static/favicon-64.png">
<link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png">

<!-- Web App Meta -->
<meta name="apple-mobile-web-app-title" content="GitIngest">
<meta name="application-name" content="GitIngest">
<meta name="theme-color" content="#FCA847">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">


<!-- OpenGraph Meta Tags -->
<meta property="og:title" content="{% block og_title %}Git ingest{% endblock %}">
<meta property="og:description" content="{% block og_description %}Replace 'hub' with 'ingest' in any Github Url for a prompt-friendly text{% endblock %}">
<meta property="og:type" content="{% block og_type %}website{% endblock %}">
<meta property="og:title" content="Git ingest">
<meta property="og:description" content="Replace 'hub' with 'ingest' in any Github Url for a prompt-friendly text">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ request.url }}">
<meta property="og:image" content="{% block og_image %}/static/og-image.png{% endblock %}">
<meta property="og:image" content="/static/og-image.png">

<title>{% block title %}Git ingest{% endblock %}</title>

Expand Down

0 comments on commit 38f59ba

Please sign in to comment.