diff options
| -rw-r--r-- | lib/xesite_templates/src/lib.rs | 2 | ||||
| -rw-r--r-- | src/app/config.rs | 2 | ||||
| -rw-r--r-- | src/handlers/streams.rs | 2 | ||||
| -rw-r--r-- | src/main.rs | 1 | ||||
| -rw-r--r-- | src/tmpl/nag.rs | 1 | ||||
| -rw-r--r-- | templates/blog_atom.rs.xml | 2 |
6 files changed, 5 insertions, 5 deletions
diff --git a/lib/xesite_templates/src/lib.rs b/lib/xesite_templates/src/lib.rs index 79d4004..767ac45 100644 --- a/lib/xesite_templates/src/lib.rs +++ b/lib/xesite_templates/src/lib.rs @@ -42,7 +42,7 @@ pub fn picture(path: String) -> Markup { pub fn hero(file: String, prompt: Option<String>, ai: Option<String>) -> Markup { let ai = ai.unwrap_or("MidJourney".to_string()); html! { - meta property="og:image" content={"https://cdn.xeiaso.net/file/christine-static/hero/" (file) "-smol.png"} + meta property="og:image" content={"https://cdn.xeiaso.net/file/christine-static/hero/" (file) "-smol.png"}; figure.hero style="margin:0" { picture style="margin:0" { source type="image/avif" srcset={"https://cdn.xeiaso.net/file/christine-static/hero/" (file) ".avif"}; diff --git a/src/app/config.rs b/src/app/config.rs index fd0ac6b..e1a9b53 100644 --- a/src/app/config.rs +++ b/src/app/config.rs @@ -1,6 +1,6 @@ use crate::signalboost::Person; use chrono::prelude::*; -use maud::{html, Markup, PreEscaped, Render}; +use maud::{html, Markup, Render}; use serde::{Deserialize, Serialize}; use std::{ collections::HashMap, diff --git a/src/handlers/streams.rs b/src/handlers/streams.rs index 0d582a8..3eb3b27 100644 --- a/src/handlers/streams.rs +++ b/src/handlers/streams.rs @@ -1,6 +1,6 @@ use crate::{ app::{State, VOD}, - tmpl::{base, nag}, + tmpl::base, }; use axum::{extract::Path, Extension}; use chrono::prelude::*; diff --git a/src/main.rs b/src/main.rs index d24086c..90f8fba 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,6 @@ use axum::{ Router, }; use color_eyre::eyre::Result; -use hyper::StatusCode; use prometheus::{Encoder, TextEncoder}; use std::{ env, diff --git a/src/tmpl/nag.rs b/src/tmpl/nag.rs index 7d5f4d8..6ecbf41 100644 --- a/src/tmpl/nag.rs +++ b/src/tmpl/nag.rs @@ -1,5 +1,4 @@ use crate::post::Post; -use chrono::prelude::*; use lazy_static::lazy_static; use maud::{html, Markup}; use regex::Regex; diff --git a/templates/blog_atom.rs.xml b/templates/blog_atom.rs.xml index 4678094..4882858 100644 --- a/templates/blog_atom.rs.xml +++ b/templates/blog_atom.rs.xml @@ -20,6 +20,8 @@ <id>https://xeiaso.net/@post.link</id> <title>@post.front_matter.title</title> <published>@post.date.to_rfc3339()</published> + <updated>@post.date.to_rfc3339()</updated> + <content type="html" xml:base="https://xeiaso.net/@post.link"><![CDATA[@Html(post.body_html)]]></content> <link href="https://xeiaso.net/@post.link" rel="alternate"/> </entry> } |
