//! 站点不允许内嵌,渲染成带平台标识的卡片。 use crate::parse::{EmbedRule, Platform}; use crate::Category; pub struct Hashnode; impl Platform for Hashnode { fn id(&self) -> &'static str { "hashnode" } fn name(&self) -> &'static str { "Hashnode" } fn category(&self) -> Category { Category::Dev } fn domains(&self) -> &'static [&'static str] { &["hashnode.dev", "hashnode.com"] } fn embed_rule(&self) -> Option { None } } pub static PLATFORM: Hashnode = Hashnode;