Skip to content

Add favicon, meta description, and Open Graph tags #23

Description

@bonheur15

Problem

The layout template is missing several important meta tags and a favicon.

Location: internal/web/views/layout.templ (lines 8-14)

Missing Tags

Tag Purpose Impact
<link rel="icon"> Favicon Browsers request /favicon.ico and get a 404 on every page load
<meta name="description"> SEO description Search engines show no snippet for the landing page
<meta name="robots" content="noindex, nofollow"> Setup pages should not be indexed The setup/error pages served on customer domains could appear in search results
<meta name="theme-color"> Mobile browser chrome Mobile browsers can''t theme the address bar
Open Graph tags (og:title, og:description, og:url) Social sharing Sharing the landing page on Slack/Discord/Twitter shows no rich preview
Twitter Card tags Twitter sharing Same as above

Proposed Fix

For the layout template, add to <head>:

<meta name="description" content="Self-hosted CDN configured entirely through DNS. No accounts, no dashboard, no API keys." />
<meta name="theme-color" content="#0366d6" />
<meta property="og:title" content="hubCDN - Self-hosted CDN" />
<meta property="og:description" content="Self-hosted CDN configured entirely through DNS. No accounts, no dashboard, no API keys." />
<meta property="og:type" content="website" />

For the setup pages, add a noindex flag:

<meta name="robots" content="noindex, nofollow" />

For the favicon, either add a simple SVG favicon or link to a generated one:

<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🚀</text></svg>" />

Why This Matters

  • The missing favicon causes a 404 on every page load (unnecessary server load)
  • No meta description hurts discoverability
  • Setup pages appearing in search results confuses users

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions