File tree Expand file tree Collapse file tree 5 files changed +126
-1
lines changed
Expand file tree Collapse file tree 5 files changed +126
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,60 @@ module.exports = {
1010 facebookUsername : `@vladaverett` ,
1111 } ,
1212 plugins : [
13+ {
14+ resolve : `gatsby-plugin-feed` ,
15+ options : {
16+ query : `
17+ {
18+ site {
19+ siteMetadata {
20+ title
21+ description
22+ siteUrl
23+ site_url: siteUrl
24+ }
25+ }
26+ }
27+ ` ,
28+ feeds : [
29+ {
30+ serialize : ( { query : { site, allMdx } } ) => {
31+ return allMdx . nodes . map ( node => {
32+ return Object . assign ( { } , node . frontmatter , {
33+ description : node . excerpt ,
34+ date : node . frontmatter . date ,
35+ title : node . frontmatter . titleDetailed || node . frontmatter . title ,
36+ url : site . siteMetadata . siteUrl + node . frontmatter . slug ,
37+ guid : site . siteMetadata . siteUrl + node . frontmatter . slug ,
38+ custom_elements : [ { "content:encoded" : node . excerpt } ] ,
39+ } )
40+ } )
41+ } ,
42+ query : `
43+ {
44+ allMdx(
45+ sort: { frontmatter: { index: DESC } }
46+ limit: 20
47+ ) {
48+ nodes {
49+ excerpt
50+ frontmatter {
51+ titleDetailed
52+ title
53+ date
54+ slug
55+ index
56+ }
57+ }
58+ }
59+ }
60+ ` ,
61+ output : "/rss.xml" ,
62+ title : "avrtt.blog RSS Feed" ,
63+ } ,
64+ ] ,
65+ } ,
66+ } ,
1367 {
1468 resolve : `gatsby-plugin-sitemap` ,
1569 options : {
@@ -163,4 +217,4 @@ module.exports = {
163217 } ,
164218 } ,
165219 ] ,
166- }
220+ }
Original file line number Diff line number Diff line change 4646 "d3" : " ^7.9.0" ,
4747 "framer-motion" : " ^11.3.31" ,
4848 "gatsby" : " ^5.13.7" ,
49+ "gatsby-plugin-feed" : " ^5.14.0" ,
4950 "gatsby-plugin-image" : " ^3.13.1" ,
5051 "gatsby-plugin-manifest" : " ^5.13.1" ,
5152 "gatsby-plugin-mdx" : " ^5.13.1" ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import Email from "./email.svg";
66import Map from "./map.svg" ;
77import YouTube from "./youtube.svg" ;
88import Facebook from "./facebook.svg" ;
9+ import RSS from "./rss.svg" ;
910import { footerYear } from "../../data/lastUpdated" ;
1011import { freelanceStatus , location } from "../../data/announcements"
1112import { startHoursUTC , endHoursUTC } from '../../utils/freelance' ;
@@ -57,6 +58,9 @@ const Footer = () => {
5758 < a className = { styles . footerLink } href = "https://www.google.com/maps/d/viewer?mid=1X9b0bo11WcY9on87ZQXoB3YUkccwnK49& ll = 0.3349379679001004 % 2 C0 & z = 2 " >
5859 < img src = { Map } className = { styles . linkImg } alt = "map-logo" />
5960 </ a >
61+ < a className = { styles . footerLink } href = "/rss.xml" >
62+ < img src = { RSS } className = { styles . linkImg } alt = "rss-logo" />
63+ </ a >
6064 </ div >
6165
6266 { /* badges on the left */ }
You can’t perform that action at this time.
0 commit comments