diff --git a/gatsby-config.js b/gatsby-config.js index abcac51..fd228d9 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -4,6 +4,12 @@ module.exports = { description: `Technologie et philosophie`, author: `Maxime Bonin`, siteUrl: `https://socratic.dev`, + // Default social preview image (relative to `src/images/` or served from /static) + image: `/images/cropped_solid_blue.png`, + social: { + twitter: `@socraticDevBlog`, + twitterCard: `summary_large_image`, + }, }, plugins: [ { @@ -51,22 +57,25 @@ module.exports = { }, query: ` { - allMarkdownRemark( - sort: { order: DESC, fields: [frontmatter___date] }, - ) { - edges { - node { - excerpt - html - fields { slug } - frontmatter { - title - date - } + allMarkdownRemark( + sort: {frontmatter: {date: DESC}} + filter: { frontmatter: { is_archived: { eq: false } } } + ) { + edges { + node { + excerpt + html + fields { + slug + } + frontmatter { + title + date } } } } + } `, output: "/rss.xml", title: "Blogue de SocraticDev", diff --git a/gatsby-node.js b/gatsby-node.js index eef1c66..bb4d73d 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -26,7 +26,10 @@ exports.createPages = ({ actions, graphql }) => { return graphql(` { - allMarkdownRemark { + allMarkdownRemark( + filter: { frontmatter: { is_archived: { eq: false } } } + sort: { frontmatter: { date: DESC } } + ) { edges { node { frontmatter { diff --git a/package-lock.json b/package-lock.json index 82aaca3..a38b3b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6268,9 +6268,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001727", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001727.tgz", - "integrity": "sha512-pB68nIHmbN6L/4C6MH1DokyR3bYqFwjaSs/sWDHGj4CTcFtQUQMuJftVwWkXq7mNWOybD3KhUv3oWHoGxgP14Q==", + "version": "1.0.30001762", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001762.tgz", + "integrity": "sha512-PxZwGNvH7Ak8WX5iXzoK1KPZttBXNPuaOvI2ZYU7NrlM+d9Ov+TUvlLOBNGzVXAntMSMMlJPd+jY6ovrVjSmUw==", "funding": [ { "type": "opencollective", diff --git a/src/components/footer.js b/src/components/footer.js index bec3129..979e1f3 100644 --- a/src/components/footer.js +++ b/src/components/footer.js @@ -1,7 +1,6 @@ import React from "react" import TwitterLogo from "../images/x-logo-black.png" import GithubLogo from "../images/github.png" -import GitlabLogo from "../images/gitlab.png" import MastadonLogo from "../images/mastadon48x48.png" const Footer = () => ( @@ -25,22 +24,6 @@ const Footer = () => ( > -
socraticDev ne contacte pas les gens qu'il ne connaît pas
+ +Utilisez PGP pour valider la signature des messages transmis par email ou média sociaux
+ + +PGP Fingerprint: + CAC5 6323 864C 10F2 E043 E1FD D29B 5195 73AA DDD8 +
+ +{pgpKey}
+
+