RSS fixes
This commit is contained in:
		
							parent
							
								
									4bfce7c928
								
							
						
					
					
						commit
						ec4dc11bec
					
				|  | @ -2151,9 +2151,9 @@ dependencies = [ | ||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "rustix" | name = "rustix" | ||||||
| version = "0.38.42" | version = "0.38.43" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
| checksum = "f93dc38ecbab2eb790ff964bb77fa94faf256fd3e73285fd7ba0903b76bedb85" | checksum = "a78891ee6bf2340288408954ac787aa063d8e8817e9f53abb37c695c6d834ef6" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "bitflags 2.6.0", |  "bitflags 2.6.0", | ||||||
|  "errno", |  "errno", | ||||||
|  |  | ||||||
|  | @ -828,7 +828,7 @@ pub(crate) async fn rss(db: &BlogDb) -> String { | ||||||
|             } |             } | ||||||
|             #[cfg(not(debug_assertions))] |             #[cfg(not(debug_assertions))] | ||||||
|             { |             { | ||||||
|                 ["https://", env!("DOMAIN"), "/blog/", &entry.id].concat() |                 ["https://", env!("DOMAIN"), "/blog/", &post.id].concat() | ||||||
|             } |             } | ||||||
|         }; |         }; | ||||||
|         let item = rewrite_str( |         let item = rewrite_str( | ||||||
|  |  | ||||||
|  | @ -102,7 +102,18 @@ impl Block { | ||||||
|             ] |             ] | ||||||
|             .concat(), |             .concat(), | ||||||
|             Block::image { file, caption } => { |             Block::image { file, caption } => { | ||||||
|                 ["<img src=\"", &file.url, "\" alt=\"", &caption.replace(r#"""#, """).replace("<br>", ""), "\"/>"].concat() |                 let src = { | ||||||
|  | 
 | ||||||
|  |                             #[cfg(debug_assertions)] | ||||||
|  |                             { | ||||||
|  |                                 &file.url | ||||||
|  |                             } | ||||||
|  |                             #[cfg(not(debug_assertions))] | ||||||
|  |                             { | ||||||
|  |                                 &["https://", env!("DOMAIN"), &file.url].concat() | ||||||
|  |                             } | ||||||
|  |                 }; | ||||||
|  |                 ["<img src=\"", src, "\" alt=\"", &caption.replace(r#"""#, """).replace("<br>", ""), "\"/>"].concat() | ||||||
|             } |             } | ||||||
|             Block::delimiter {} => "<div style=\"inline-size: 100%; block-size: 1px; background: var(--color-text)\"></div>".to_string(), |             Block::delimiter {} => "<div style=\"inline-size: 100%; block-size: 1px; background: var(--color-text)\"></div>".to_string(), | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue