diff --git a/config.example.json b/config.example.json
index 6e1ecd50..daf20866 100644
--- a/config.example.json
+++ b/config.example.json
@@ -5,12 +5,20 @@
"url": "https://afilmory.innei.in/",
"accentColor": "#007bff",
"author": {
- "name": "Photo Gallery",
+ "name": "Innei",
"url": "https://innei.in/",
"avatar": "https://cdn.jsdelivr.net/gh/Innei/static@master/avatar.png"
},
"social": {
"twitter": "@__oQuery",
"github": "Innei"
+ },
+ "feed": {
+ "folo": {
+ "challenge": {
+ "feedId": "155982289762921472",
+ "userId": "41312624216137728"
+ }
+ }
}
}
\ No newline at end of file
diff --git a/plugins/vite/feed-sitemap.ts b/plugins/vite/feed-sitemap.ts
index c83a79b7..56294219 100644
--- a/plugins/vite/feed-sitemap.ts
+++ b/plugins/vite/feed-sitemap.ts
@@ -4,6 +4,8 @@ import { fileURLToPath } from 'node:url'
import type { Plugin } from 'vite'
+import type { SiteConfig } from '../../site.config'
+
interface PhotoData {
id: string
title: string
@@ -24,18 +26,6 @@ interface PhotoData {
isLivePhoto: boolean
}
-interface SiteConfig {
- name: string
- title: string
- description: string
- url: string
- author: {
- name: string
- url: string
- avatar?: string
- }
-}
-
const __dirname = fileURLToPath(new URL('.', import.meta.url))
export function createFeedSitemapPlugin(siteConfig: SiteConfig): Plugin {
@@ -135,6 +125,17 @@ ${exifTags}
${lastBuildDate}
${now}
60
+ Copyright ${config.author.name}
+${
+ config.feed?.folo?.challenge
+ ? `
+
+ ${config.feed?.folo?.challenge.feedId}
+ ${config.feed?.folo?.challenge.userId}
+
+`
+ : ''
+}
${config.author.name}
${config.author.name}
diff --git a/site.config.ts b/site.config.ts
index 92644dcb..595d1227 100644
--- a/site.config.ts
+++ b/site.config.ts
@@ -2,7 +2,7 @@ import { merge } from 'es-toolkit/compat'
import userConfig from './config.json'
-interface SiteConfig {
+export interface SiteConfig {
name: string
title: string
description: string
@@ -10,6 +10,16 @@ interface SiteConfig {
accentColor: string
author: Author
social?: Social
+ feed?: Feed
+}
+
+interface Feed {
+ folo?: {
+ challenge?: {
+ feedId: string
+ userId: string
+ }
+ }
}
interface Author {
name: string
@@ -22,16 +32,16 @@ interface Social {
}
const defaultConfig: SiteConfig = {
- name: "Innei's Photo Gallery",
- title: "Innei's Photo Gallery",
+ name: "Innei's Afilmory",
+ title: "Innei's Afilmory",
description:
'Capturing beautiful moments in life, documenting daily warmth and emotions through my lens.',
- url: 'https://gallery.innei.in',
+ url: 'https://afilmory.innei.in',
accentColor: '#007bff',
author: {
- name: 'Photo Gallery',
+ name: 'Innei',
url: 'https://innei.in/',
- avatar: '//cdn.jsdelivr.net/gh/Innei/static@master/avatar.png',
+ avatar: 'https://cdn.jsdelivr.net/gh/Innei/static@master/avatar.png',
},
social: {
twitter: '@__oQuery',