mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 09:56:51 +01:00
parent
affe7276df
commit
041b05b22a
@ -5,4 +5,4 @@ title: Santuário de Cristo Rei
|
|||||||
image: 2021-10-23-santuario-de-cristo-rei.jpg
|
image: 2021-10-23-santuario-de-cristo-rei.jpg
|
||||||
---
|
---
|
||||||
|
|
||||||
The [Santuário de Cristo Rei](https://en.wikipedia.org/wiki/Christ_the_King_(Almada)) in Almada overlooking Lisbon, Portugal.
|
The [Santuário de Cristo Rei](<https://en.wikipedia.org/wiki/Christ_the_King_(Almada)>) in Almada overlooking Lisbon, Portugal.
|
||||||
|
@ -183,32 +183,30 @@ module.exports = {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
query: `
|
query: `{
|
||||||
{
|
allMarkdownRemark(sort: {fields: {date: DESC}}, limit: 40) {
|
||||||
allMarkdownRemark(
|
edges {
|
||||||
sort: { order: DESC, fields: [fields___date] },
|
node {
|
||||||
limit: 40
|
html
|
||||||
) {
|
fields {
|
||||||
edges {
|
slug
|
||||||
node {
|
date
|
||||||
html
|
}
|
||||||
fields { slug, date }
|
excerpt
|
||||||
excerpt
|
frontmatter {
|
||||||
frontmatter {
|
title
|
||||||
title
|
image {
|
||||||
image {
|
childImageSharp {
|
||||||
childImageSharp {
|
resize(width: 940, quality: 85) {
|
||||||
resize(width: 940, quality: 85) {
|
src
|
||||||
src
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
`,
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}`,
|
||||||
output: '/feed.xml',
|
output: '/feed.xml',
|
||||||
title: siteConfig.siteTitle
|
title: siteConfig.siteTitle
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
|
|||||||
|
|
||||||
const result = await graphql(`
|
const result = await graphql(`
|
||||||
{
|
{
|
||||||
all: allMarkdownRemark(sort: { order: DESC, fields: [fields___date] }) {
|
all: allMarkdownRemark(sort: { fields: { date: DESC } }) {
|
||||||
edges {
|
edges {
|
||||||
next {
|
next {
|
||||||
fields {
|
fields {
|
||||||
@ -54,7 +54,6 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
photos: allMarkdownRemark(filter: { fields: { type: { eq: "photo" } } }) {
|
photos: allMarkdownRemark(filter: { fields: { type: { eq: "photo" } } }) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
@ -62,7 +61,6 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
archive: allMarkdownRemark(
|
archive: allMarkdownRemark(
|
||||||
filter: { fields: { type: { nin: "photo" } } }
|
filter: { fields: { type: { nin: "photo" } } }
|
||||||
) {
|
) {
|
||||||
@ -72,9 +70,8 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tags: allMarkdownRemark {
|
tags: allMarkdownRemark {
|
||||||
group(field: frontmatter___tags) {
|
group(field: { frontmatter: { tags: SELECT } }) {
|
||||||
tag: fieldValue
|
tag: fieldValue
|
||||||
totalCount
|
totalCount
|
||||||
}
|
}
|
||||||
@ -112,7 +109,7 @@ exports.onPostBuild = async ({ graphql }) => {
|
|||||||
// JSON Feed query
|
// JSON Feed query
|
||||||
const result = await graphql(`
|
const result = await graphql(`
|
||||||
{
|
{
|
||||||
allMarkdownRemark(sort: { order: DESC, fields: [fields___date] }) {
|
allMarkdownRemark(sort: { fields: { date: DESC } }) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
html
|
html
|
||||||
|
3218
package-lock.json
generated
3218
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
46
package.json
46
package.json
@ -38,30 +38,30 @@
|
|||||||
"fast-exif": "^1.0.1",
|
"fast-exif": "^1.0.1",
|
||||||
"feather-icons": "^4.29.0",
|
"feather-icons": "^4.29.0",
|
||||||
"fraction.js": "^4.2.0",
|
"fraction.js": "^4.2.0",
|
||||||
"gatsby": "^4.23.0",
|
"gatsby": "^5.0.0",
|
||||||
"gatsby-plugin-catch-links": "^4.23.0",
|
"gatsby-plugin-catch-links": "^5.0.0",
|
||||||
"gatsby-plugin-feed": "^4.23.0",
|
"gatsby-plugin-feed": "^5.0.0",
|
||||||
"gatsby-plugin-image": "^2.23.0",
|
"gatsby-plugin-image": "^3.0.0",
|
||||||
"gatsby-plugin-lunr": "^1.5.2",
|
"gatsby-plugin-lunr": "^1.5.2",
|
||||||
"gatsby-plugin-manifest": "^4.23.0",
|
"gatsby-plugin-manifest": "^5.0.0",
|
||||||
"gatsby-plugin-matomo": "^0.13.0",
|
"gatsby-plugin-matomo": "^0.14.0",
|
||||||
"gatsby-plugin-meta-redirect": "^1.1.1",
|
"gatsby-plugin-meta-redirect": "^1.1.1",
|
||||||
"gatsby-plugin-offline": "^5.23.0",
|
"gatsby-plugin-offline": "^6.0.0",
|
||||||
"gatsby-plugin-react-helmet": "^5.23.0",
|
"gatsby-plugin-react-helmet": "^6.0.0",
|
||||||
"gatsby-plugin-sharp": "^4.23.0",
|
"gatsby-plugin-sharp": "^5.0.0",
|
||||||
"gatsby-plugin-sitemap": "^5.23.0",
|
"gatsby-plugin-sitemap": "^6.0.0",
|
||||||
"gatsby-plugin-svgr": "^3.0.0-beta.0",
|
"gatsby-plugin-svgr": "^3.0.0-beta.0",
|
||||||
"gatsby-redirect-from": "^0.5.0",
|
"gatsby-redirect-from": "^1.0.0",
|
||||||
"gatsby-remark-autolink-headers": "^5.23.0",
|
"gatsby-remark-autolink-headers": "^6.0.0",
|
||||||
"gatsby-remark-copy-linked-files": "^5.23.0",
|
"gatsby-remark-copy-linked-files": "^6.0.0",
|
||||||
"gatsby-remark-images": "^6.23.0",
|
"gatsby-remark-images": "^7.0.0",
|
||||||
"gatsby-remark-images-medium-zoom": "^1.7.0",
|
"gatsby-remark-images-medium-zoom": "^1.7.0",
|
||||||
"gatsby-remark-smartypants": "^5.23.0",
|
"gatsby-remark-smartypants": "^6.0.0",
|
||||||
"gatsby-remark-vscode": "^3.3.1",
|
"gatsby-remark-vscode": "^3.3.1",
|
||||||
"gatsby-source-filesystem": "^4.23.0",
|
"gatsby-source-filesystem": "^5.0.0",
|
||||||
"gatsby-source-graphql": "^4.23.0",
|
"gatsby-source-graphql": "^5.0.0",
|
||||||
"gatsby-transformer-remark": "^5.23.0",
|
"gatsby-transformer-remark": "^6.0.0",
|
||||||
"gatsby-transformer-sharp": "^4.23.0",
|
"gatsby-transformer-sharp": "^5.0.0",
|
||||||
"nord-visual-studio-code": "github:arcticicestudio/nord-visual-studio-code",
|
"nord-visual-studio-code": "github:arcticicestudio/nord-visual-studio-code",
|
||||||
"pigeon-maps": "^0.21.0",
|
"pigeon-maps": "^0.21.0",
|
||||||
"pigeon-marker": "^0.3.4",
|
"pigeon-marker": "^0.3.4",
|
||||||
@ -93,7 +93,7 @@
|
|||||||
"@typescript-eslint/eslint-plugin": "^5.36.2",
|
"@typescript-eslint/eslint-plugin": "^5.36.2",
|
||||||
"@typescript-eslint/parser": "^5.36.2",
|
"@typescript-eslint/parser": "^5.36.2",
|
||||||
"@welldone-software/why-did-you-render": "^7.0.1",
|
"@welldone-software/why-did-you-render": "^7.0.1",
|
||||||
"babel-preset-gatsby": "^2.23.0",
|
"babel-preset-gatsby": "^3.0.0",
|
||||||
"eslint": "^8.23.1",
|
"eslint": "^8.23.1",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-graphql": "^4.0.0",
|
"eslint-plugin-graphql": "^4.0.0",
|
||||||
@ -120,6 +120,12 @@
|
|||||||
"typescript": "^4.8.3",
|
"typescript": "^4.8.3",
|
||||||
"typescript-plugin-css-modules": "^3.4.0"
|
"typescript-plugin-css-modules": "^3.4.0"
|
||||||
},
|
},
|
||||||
|
"overrides": {
|
||||||
|
"graphql": "^16.6.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "18"
|
||||||
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/kremalicious/blog.git"
|
"url": "https://github.com/kremalicious/blog.git"
|
||||||
|
@ -6,8 +6,8 @@ import { Post, Frontmatter } from '../../@types/Post'
|
|||||||
import { PhotoThumb } from '../templates/Photos'
|
import { PhotoThumb } from '../templates/Photos'
|
||||||
|
|
||||||
const query = graphql`
|
const query = graphql`
|
||||||
query {
|
{
|
||||||
allMarkdownRemark(sort: { order: DESC, fields: [fields___date] }) {
|
allMarkdownRemark(sort: { fields: { date: DESC } }) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
...PostTeaser
|
...PostTeaser
|
||||||
|
@ -53,7 +53,7 @@ export const archiveQuery = graphql`
|
|||||||
fields: { type: { nin: "photo" } }
|
fields: { type: { nin: "photo" } }
|
||||||
frontmatter: { tags: { eq: $tag } }
|
frontmatter: { tags: { eq: $tag } }
|
||||||
}
|
}
|
||||||
sort: { order: DESC, fields: [fields___date] }
|
sort: { fields: { date: DESC } }
|
||||||
skip: $skip
|
skip: $skip
|
||||||
limit: $limit
|
limit: $limit
|
||||||
) {
|
) {
|
||||||
|
@ -70,7 +70,7 @@ export const photosQuery = graphql`
|
|||||||
query ($skip: Int, $limit: Int) {
|
query ($skip: Int, $limit: Int) {
|
||||||
allMarkdownRemark(
|
allMarkdownRemark(
|
||||||
filter: { fields: { type: { eq: "photo" } } }
|
filter: { fields: { type: { eq: "photo" } } }
|
||||||
sort: { order: DESC, fields: [fields___date] }
|
sort: { fields: { date: DESC } }
|
||||||
skip: $skip
|
skip: $skip
|
||||||
limit: $limit
|
limit: $limit
|
||||||
) {
|
) {
|
||||||
|
@ -44,10 +44,10 @@ export default function Home({ data }: PageProps): ReactElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const homeQuery = graphql`
|
export const homeQuery = graphql`
|
||||||
query {
|
{
|
||||||
latestArticles: allMarkdownRemark(
|
latestArticles: allMarkdownRemark(
|
||||||
filter: { fields: { type: { ne: "photo" } } }
|
filter: { fields: { type: { ne: "photo" } } }
|
||||||
sort: { order: DESC, fields: [fields___date] }
|
sort: { fields: { date: DESC } }
|
||||||
limit: 8
|
limit: 8
|
||||||
) {
|
) {
|
||||||
edges {
|
edges {
|
||||||
@ -56,10 +56,9 @@ export const homeQuery = graphql`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
latestPhotos: allMarkdownRemark(
|
latestPhotos: allMarkdownRemark(
|
||||||
filter: { fields: { type: { eq: "photo" } } }
|
filter: { fields: { type: { eq: "photo" } } }
|
||||||
sort: { order: DESC, fields: [fields___date] }
|
sort: { fields: { date: DESC } }
|
||||||
limit: 12
|
limit: 12
|
||||||
) {
|
) {
|
||||||
edges {
|
edges {
|
||||||
|
@ -48,9 +48,9 @@ const TagsPage = (props: TagsPageProps): ReactElement => (
|
|||||||
export default TagsPage
|
export default TagsPage
|
||||||
|
|
||||||
export const tagsPageQuery = graphql`
|
export const tagsPageQuery = graphql`
|
||||||
query {
|
{
|
||||||
allMarkdownRemark {
|
allMarkdownRemark {
|
||||||
group(field: frontmatter___tags) {
|
group(field: { frontmatter: { tags: SELECT } }) {
|
||||||
fieldValue
|
fieldValue
|
||||||
totalCount
|
totalCount
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user