Skip to content

Commit

Permalink
page_cover
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-kali-team committed Feb 22, 2024
1 parent 68a6069 commit c9a7b49
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 197 deletions.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,10 @@ fn rewriter(
) -> Vec<u8> {
let mut output = vec![];
let title = title.unwrap_or(blog_env.description);
let icon_url = icon_url.unwrap_or(blog_env.icon);
let mut icon_url = icon_url.unwrap_or(blog_env.icon);
if icon_url.starts_with("/images/") {
icon_url = format!("https://{}{}", blog_env.my_domain, icon_url);
}
let mut rewriter = HtmlRewriter::new(
Settings {
element_content_handlers: vec![
Expand Down
Loading

0 comments on commit c9a7b49

Please sign in to comment.