---
import { getSettings, invariant } from "@matthiesenxyz/astro-ghostcms/api";
const settings = await getSettings();
invariant(settings, 'Settings not found');
---
<footer class="my-20">
  <p class="text-center text-sm text-slate-500">
    Copyright © {new Date().getFullYear()} {settings.title}. All rights reserved.
  </p>
  <p class="text-center text-xs text-slate-500 mt-1">
    Powered by <a
      href="https://ghost.org"
      target="_blank"
      rel="noopener"
      class="hover:underline">
      Ghost
    </a>
  </p>
</footer>
