feat: add RSS feed
This commit is contained in:
parent
06fa0502ae
commit
80b6656e38
9 changed files with 84 additions and 4 deletions
1
apps/blog/.gitignore
vendored
1
apps/blog/.gitignore
vendored
|
@ -1,4 +1,5 @@
|
|||
public/robots.txt
|
||||
public/rss.xml
|
||||
public/sitemap*.xml
|
||||
|
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"dev": "open-cli http://localhost:3000 && pnpm dev:headless",
|
||||
"dev:headless": "next dev",
|
||||
"build": "next build",
|
||||
"postbuild": "next-sitemap",
|
||||
"postbuild": "next-sitemap && cp ../../packages/content/dist/rss.xml public/rss.xml",
|
||||
"lint": "next lint",
|
||||
"test:e2e": "playwright test",
|
||||
"i_am_sure_i_want_to_nuke_gitignored_files": "rm -rf .next .turbo build node_modules test-results"
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
import GithubLinkIcon from "../GithubLinkIcon"
|
||||
import { faRss } from "@fortawesome/free-solid-svg-icons"
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
|
||||
|
||||
export default function Footer() {
|
||||
return (
|
||||
|
@ -7,7 +9,15 @@ export default function Footer() {
|
|||
<div>
|
||||
Created by <b>developomp</b>
|
||||
</div>
|
||||
<GithubLinkIcon href="https://github.com/developomp/developomp-site" />
|
||||
<div className="flex items-center gap-2">
|
||||
<a
|
||||
href="/rss.xml"
|
||||
className="text-3xl text-light-footer-text transition-colors duration-75 hover:text-light-text-high-contrast dark:text-dark-footer-text dark:hover:text-dark-text-high-contrast"
|
||||
>
|
||||
<FontAwesomeIcon icon={faRss} />
|
||||
</a>
|
||||
<GithubLinkIcon href="https://github.com/developomp/developomp-site" />
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
)
|
||||
|
|
|
@ -9,7 +9,7 @@ interface Props {
|
|||
export default function GithubLinkIcon({ href }: Props) {
|
||||
return (
|
||||
<Link
|
||||
className="text-5xl text-light-footer-text transition-colors duration-75 hover:text-light-text-high-contrast dark:text-dark-footer-text dark:hover:text-dark-text-high-contrast"
|
||||
className="text-4xl text-light-footer-text transition-colors duration-75 hover:text-light-text-high-contrast dark:text-dark-footer-text dark:hover:text-dark-text-high-contrast"
|
||||
href={href}
|
||||
target="_blank"
|
||||
aria-label="GitHub link"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue