Add meta tags for better previews when sharing links
This commit is contained in:
parent
984ce298cd
commit
73c8e9da39
14 changed files with 177 additions and 22 deletions
|
|
@ -1,7 +1,10 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}
|
||||
| Add new feed
|
||||
Add Feed | discord-rss-bot
|
||||
{% endblock title %}
|
||||
{% block description %}
|
||||
Add a new RSS or Atom feed and attach it to a Discord webhook for delivery.
|
||||
{% endblock description %}
|
||||
{% block content %}
|
||||
<div class="p-2 border border-dark">
|
||||
<form action="/add" method="post">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}
|
||||
| Add new webhook
|
||||
{% endblock title %}
|
||||
{% block title %}Add Webhook | discord-rss-bot{% endblock title %}
|
||||
{% block description %}Register a Discord webhook so feeds can post updates into your server or thread.{% endblock description %}
|
||||
{% block content %}
|
||||
<div class="p-2 border border-dark">
|
||||
<form action="/add_webhook" method="post">
|
||||
|
|
|
|||
|
|
@ -3,17 +3,38 @@
|
|||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>
|
||||
{% block title %}
|
||||
discord-rss-bot
|
||||
{% endblock title %}
|
||||
</title>
|
||||
<meta name="description"
|
||||
content="Stay updated with the latest news and events with our easy-to-use RSS bot. Never miss a message or announcement again with real-time notifications directly to your Discord server." />
|
||||
content="{% block description %}Manage RSS feeds, webhooks, filters, and message delivery settings for Discord updates from a single dashboard.{% endblock description %}" />
|
||||
{% set page_title = self.title() | striptags | trim %}
|
||||
{% set page_description = self.description() | striptags | trim %}
|
||||
{% set canonical_url = request.url %}
|
||||
{% set social_image = request.base_url ~ "static/favicon.ico" %}
|
||||
<meta name="keywords"
|
||||
content="discord, rss, bot, notifications, announcements, updates, real-time, server, messages, news, events, feed." />
|
||||
<meta name="theme-color" content="#212529" />
|
||||
<meta name="color-scheme" content="dark" />
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<link rel="canonical" href="{{ canonical_url }}" />
|
||||
<meta property="og:site_name" content="discord-rss-bot" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="{{ page_title }}" />
|
||||
<meta property="og:description" content="{{ page_description }}" />
|
||||
<meta property="og:url" content="{{ canonical_url }}" />
|
||||
<meta property="og:image" content="{{ social_image }}" />
|
||||
<meta property="og:image:type" content="image/x-icon" />
|
||||
<meta property="og:image:alt" content="discord-rss-bot icon" />
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:title" content="{{ page_title }}" />
|
||||
<meta name="twitter:description" content="{{ page_description }}" />
|
||||
<meta name="twitter:image" content="{{ social_image }}" />
|
||||
<link href="/static/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="/static/styles.css" rel="stylesheet" />
|
||||
<link rel="icon" href="/static/favicon.ico" type="image/x-icon" />
|
||||
<title>discord-rss-bot
|
||||
{% block title %}
|
||||
{% endblock title %}
|
||||
</title>
|
||||
{% block head %}
|
||||
{% endblock head %}
|
||||
</head>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}
|
||||
| Blacklist
|
||||
Blacklist: {{ feed.title if feed.title else feed.url }} | discord-rss-bot
|
||||
{% endblock title %}
|
||||
{% block description %}
|
||||
Block matching entries from {{ feed.title if feed.title else feed.url }} before they are delivered to Discord.
|
||||
{% endblock description %}
|
||||
{% block content %}
|
||||
<div class="row g-3 filter-page">
|
||||
<div class="col-lg-5">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}
|
||||
| Custom message
|
||||
{% endblock title %}
|
||||
{% block title %}Message Template: {{ feed.title if feed.title else feed.url }} | discord-rss-bot{% endblock title %}
|
||||
{% block description %}Customize the plain text Discord message template for {{ feed.title if feed.title else feed.url }}.{% endblock description %}
|
||||
{% block content %}
|
||||
<div class="p-2 border border-dark">
|
||||
<form action="/custom" method="post">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}
|
||||
| Embed
|
||||
{% endblock title %}
|
||||
{% block title %}Embed Template: {{ feed.title if feed.title else feed.url }} | discord-rss-bot{% endblock title %}
|
||||
{% block description %}Customize the Discord embed layout, colors, and media for {{ feed.title if feed.title else feed.url }}.{% endblock description %}
|
||||
{% block content %}
|
||||
<div class="p-2 border border-dark">
|
||||
<form action="/embed" method="post">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}
|
||||
| {{ feed.title }}
|
||||
{{ feed.title if feed.title else feed.url }} | discord-rss-bot
|
||||
{% endblock title %}
|
||||
{% block description %}
|
||||
Review feed health, delivery settings, filters, webhook attachment, and update intervals for {{ feed.title if feed.title else feed.url }}.
|
||||
{% endblock description %}
|
||||
{% block content %}
|
||||
<div class="row g-3 feed-page">
|
||||
<div class="col-12">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}
|
||||
Feeds Dashboard | discord-rss-bot
|
||||
{% endblock title %}
|
||||
{% block description %}
|
||||
View configured feeds, broken sources, webhook groups, and delivery status across your Discord RSS bot dashboard.
|
||||
{% endblock description %}
|
||||
{% block content %}
|
||||
<!-- List all feeds -->
|
||||
<ul>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,12 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}
|
||||
| Search
|
||||
Search
|
||||
{% if query %}: {{ query }}{% endif %}
|
||||
| discord-rss-bot
|
||||
{% endblock title %}
|
||||
{% block description %}
|
||||
Browse search results for {{ query if query else "your query" }} across tracked feed entries and feeds.
|
||||
{% endblock description %}
|
||||
{% block content %}
|
||||
<div class="p-2 border border-dark text-muted">
|
||||
Your search for "{{ query }}" returned {{ search_amount.total }} results.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}
|
||||
| Settings
|
||||
Settings | discord-rss-bot
|
||||
{% endblock title %}
|
||||
{% block description %}
|
||||
Adjust default update intervals, delivery modes, and screenshot layout for feeds managed by your bot.
|
||||
{% endblock description %}
|
||||
{% block content %}
|
||||
<section>
|
||||
<div class="text-light">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}
|
||||
| {{ webhook_name }}
|
||||
{{ webhook_name }} | discord-rss-bot
|
||||
{% endblock title %}
|
||||
{% block description %}
|
||||
Review webhook settings, attached feeds, and latest entries delivered to {{ webhook_name }}.
|
||||
{% endblock description %}
|
||||
{% block content %}
|
||||
{% if message %}<div class="alert alert-info" role="alert">{{ message }}</div>{% endif %}
|
||||
<div class="card mb-3 border border-dark p-3 text-light">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}
|
||||
| Webhooks
|
||||
Webhooks | discord-rss-bot
|
||||
{% endblock title %}
|
||||
{% block description %}
|
||||
Manage stored Discord webhooks and inspect the delivery endpoints connected to your feeds.
|
||||
{% endblock description %}
|
||||
{% block content %}
|
||||
<div class="container my-4 text-light">
|
||||
{% for hook in hooks_with_data %}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}
|
||||
| Whitelist
|
||||
Whitelist: {{ feed.title if feed.title else feed.url }} | discord-rss-bot
|
||||
{% endblock title %}
|
||||
{% block description %}
|
||||
Allow only matching entries from {{ feed.title if feed.title else feed.url }} to reach Discord.
|
||||
{% endblock description %}
|
||||
{% block content %}
|
||||
<div class="row g-3 filter-page">
|
||||
<div class="col-lg-5">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue