mirror of
https://gitlab.com/Anson-Projects/projects.git
synced 2025-09-19 12:02:38 +00:00
Compare commits
20 Commits
master
...
7652873b9e
Author | SHA1 | Date | |
---|---|---|---|
7652873b9e | |||
d3966eaf53 | |||
21ad5cb862 | |||
9e2596c070 | |||
f93746e2c0 | |||
ae1be54f8f | |||
e479c96e44 | |||
890775b2bc | |||
788052233a | |||
1a4773b3ef | |||
84f4e48386 | |||
52229040c6 | |||
b70c57e23e | |||
f6532e4fb6 | |||
0675f1f1b7 | |||
b5a4b33b56 | |||
9fc6a9bae1 | |||
05474b986d | |||
cdb96a50b7 | |||
e233a96f55 |
@@ -16,8 +16,6 @@ staging:
|
|||||||
script:
|
script:
|
||||||
- echo "Building the main website with Quarto..."
|
- echo "Building the main website with Quarto..."
|
||||||
- quarto render --to html --output-dir public
|
- quarto render --to html --output-dir public
|
||||||
- echo "Checking for RSS feed after render..."
|
|
||||||
- ls -la public/ | grep -E "\.xml|index\.xml" || echo "No XML files found in public directory"
|
|
||||||
- echo "Building Ghost-optimized version..."
|
- echo "Building Ghost-optimized version..."
|
||||||
- quarto render --profile ghost --to html --output-dir public/ghost-content
|
- quarto render --profile ghost --to html --output-dir public/ghost-content
|
||||||
artifacts:
|
artifacts:
|
||||||
|
11
_quarto.yml
11
_quarto.yml
@@ -1,18 +1,12 @@
|
|||||||
project:
|
project:
|
||||||
type: website
|
type: website
|
||||||
|
|
||||||
website:
|
|
||||||
title: "Anson's Projects"
|
|
||||||
site-url: https://projects.ansonbiggs.com
|
|
||||||
description: A Blog for Technical Topics
|
|
||||||
|
|
||||||
profiles:
|
profiles:
|
||||||
default:
|
default:
|
||||||
website:
|
website:
|
||||||
title: "Anson's Projects"
|
title: "Anson's Projects"
|
||||||
site-url: https://projects.ansonbiggs.com
|
site-url: https://projects.ansonbiggs.com
|
||||||
description: A Blog for Technical Topics
|
description: A Blog for Technical Topics
|
||||||
author: "Anson Biggs"
|
|
||||||
navbar:
|
navbar:
|
||||||
left:
|
left:
|
||||||
- text: "About"
|
- text: "About"
|
||||||
@@ -23,11 +17,6 @@ profiles:
|
|||||||
# - icon: gitlab
|
# - icon: gitlab
|
||||||
# href: https://gitlab.com/MisterBiggs
|
# href: https://gitlab.com/MisterBiggs
|
||||||
open-graph: true
|
open-graph: true
|
||||||
feed:
|
|
||||||
title: "Anson's Projects"
|
|
||||||
description: "A Blog for Technical Topics"
|
|
||||||
author: "Anson Biggs"
|
|
||||||
items: 10
|
|
||||||
format:
|
format:
|
||||||
html:
|
html:
|
||||||
theme: zephyr
|
theme: zephyr
|
||||||
|
@@ -227,11 +227,10 @@ async fn get_existing_post_id(slug: &str, token: &str) -> Option<String> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn fetch_feed(path: &str) -> Vec<Entry> {
|
async fn fetch_feed(url: &str) -> Vec<Entry> {
|
||||||
// Read from local file instead of HTTP request
|
let content = reqwest::get(url).await.unwrap().text().await.unwrap();
|
||||||
let content = std::fs::read_to_string(path).expect("Failed to read RSS feed file");
|
|
||||||
|
|
||||||
let feed = parser::parse(content.as_bytes()).expect("Failed to parse RSS feed");
|
let feed = parser::parse(content.as_bytes()).unwrap();
|
||||||
|
|
||||||
feed.entries
|
feed.entries
|
||||||
}
|
}
|
||||||
@@ -297,7 +296,7 @@ async fn main() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
let feed = "../public/index.xml";
|
let feed = "https://projects.ansonbiggs.com/index.xml";
|
||||||
|
|
||||||
// Split the key into ID and SECRET
|
// Split the key into ID and SECRET
|
||||||
let (id, secret) = ghost_admin_api_key
|
let (id, secret) = ghost_admin_api_key
|
||||||
|
Reference in New Issue
Block a user