Code Monkey home page Code Monkey logo

astro-website's People

Contributors

akeboshiwind avatar andrasgerlits avatar andreacrotti avatar armincerf avatar elken avatar fiv0 avatar herichovadajana avatar iamnini avatar jarohen avatar joelittlejohn avatar jonpither avatar kauppilainen avatar l4e21 avatar luciodale avatar luigiadale avatar malcolmsparks avatar mattford63 avatar mbutlerw avatar refset avatar spotter82 avatar tggreene avatar tomdl89 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

astro-website's Issues

Provide RSS / Atom feed

There was a question about whether there was an RSS feed available but it seems we never added/enabled it to this astro setup.

We definitely had it setup at some point previously, to syndicate with Planet Clojure:
https://github.com/ghoseb/planet.clojure/blob/fe269a2c09c0d4d554ff58d4eae2a4bf4bc06a75/clojure/config.ini#L3417-L3420

In case its helpful to refer to, we configured a blog feed for the xtdb.com site (also using astro) with astrojs/rss in this commit (presumably just following the official docs https://docs.astro.build/en/guides/rss/) - let me know if someone wants access to that org/repo but essentially the commit is just...

Creating src/pages/blog.xml.js:

import rss from '@astrojs/rss';
import { getCollection } from 'astro:content';

export async function get(context) {
  const blog = await getCollection('blog');
  return rss({
    title: 'XTDB Blog',
    description: 'Engineering insights and development updates',
    site: context.site,
    items: blog.map((post) => ({
      title: post.data.title,
      pubDate: post.data.date,
      description: post.data.summary,
      link: `/blog/${post.slug}`,
    })),

    trailingSlash: false,
    customData: "<author><name>JUXT Ltd</name><email>[email protected]</email></author>"
  });
}

Updating src/layouts/main.astro with:
<link rel="alternate" type="application/rss+xml" href="/blog.xml" title="XTDB Blog">

Updating export default defineConfig({ in astro.config.mjs to include:
site: 'https://xtdb.com'

And adding "@astrojs/rss": "^2.3.2" to the package.json.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.