kremalicious/blog

View on GitHub
src/components/Footer/index.astro

Summary

Maintainability
Test Coverage
---
import { Bitcoin, Github } from '@/images/components'
import config from '@config/blog.config'
import Vcard from './Vcard.astro'
import styles from './index.module.css'

const year = new Date().getFullYear()
const { name, url, github } = config.author
---

<footer role="contentinfo" class={styles.footer} id="footer">
  <Vcard />
  <section class={styles.copyright}>
    <p>
      &copy; 2005&ndash;
      {year + ' '}
      <a href={url} rel="me">
        {name}
      </a>
      <a href={`${github}/blog`}>
        <Github />View source
      </a>
      <a href="/thanks/">
        <Bitcoin />Say Thanks
      </a>
    </p>
  </section>
</footer>