From 82ba3a11575337d03b7bcfaf216de40071d20e79 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Tue, 28 Mar 2023 18:24:16 -0400 Subject: atom feed: show content Closes #609 Signed-off-by: Xe Iaso --- lib/xesite_templates/src/lib.rs | 2 +- src/app/config.rs | 2 +- src/handlers/streams.rs | 2 +- src/main.rs | 1 - src/tmpl/nag.rs | 1 - 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, ai: Option) -> 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 @@ https://xeiaso.net/@post.link @post.front_matter.title @post.date.to_rfc3339() + @post.date.to_rfc3339() + } -- cgit v1.2.3