Skip to content

Commit

Permalink
Use sitemeta variables for blog feed metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
helenclx committed Oct 4, 2024
1 parent cf2a956 commit b395a5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
16 changes: 8 additions & 8 deletions eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ import filtersConfig from "./src/_config/filters.js";
import shortCodesConfig from "./src/_config/shortcodes.js";

// Sitemeta
import { } from "./src/_data/sitemeta.js";
import { siteLang, feedPath, siteAuthor, siteUrl } from "./src/_data/sitemeta.js";

export default function(eleventyConfig) {
// Installed Plugins
eleventyConfig.addPlugin(feedPlugin, {
type: "atom",
outputPath: "/blog/feed.xml",
outputPath: feedPath,
collection: {
name: "posts",
limit: 10,
},
metadata: {
language: "en",
title: "Helen Chong's Developer Blog",
subtitle: "Helen Chong talks about tech, coding and development.",
base: "https://helenchong.dev/blog/",
language: siteLang,
title: siteAuthor.name + "'s Developer Blog",
subtitle: siteAuthor.name + " talks about tech, coding and development.",
base: siteUrl + "/blog/",
author: {
name: "Helen Chong",
email: "[email protected]",
name: siteAuthor.name,
email: siteAuthor.email,
}
}
});
Expand Down
8 changes: 1 addition & 7 deletions src/_data/sitemeta.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,4 @@ export const siteAuthor = {
export const siteDescription = siteAuthor.name + "'s developer portfolio and blog website.";
export const siteLang = "en";
export const siteLocale = "en_MY";
export const feedPath = "/blog/feed.xml"
export const siteBlog = {
title: siteAuthor.name + "'s Developer Blog",
desc: siteAuthor.name + " talks about tech, coding and development",
url: siteUrl + "/blog",
feedUrl: siteUrl + feedPath
};
export const feedPath = "/blog/feed.xml"

0 comments on commit b395a5f

Please sign in to comment.