public static HTMLBuilder <X, Y> Rel <X, Y>(this HTMLBuilder <X, Y> builder, LinkRel rel) where X : Link where Y : HTMLBuilder { builder.CurrentTag.AddRel(rel); return(builder); }
public Link(LinkRel rel, LinkType type, string href) : base("link") { Rel = rel; Type = type; Href = href; this.Attr("rel", rel.AsPath()); this.Attr("type", type.AsPath()); this.Attr("href", href); }
/// <summary> /// /// </summary> /// <param name="href"></param> /// <param name="rel"></param> /// <param name="type"></param> /// <param name="hreflang"></param> /// <param name="title"></param> /// <param name="length"></param> public AtomLink(string href, LinkRel rel, string type, string hreflang, string title, string length) { this.HRef = href; this.Rel = rel; this.Type = type; this.HRefLang = hreflang; this.Title = title; this.Length = length; this.Modules = new SyndicationModuleCollection(); }
public virtual void AddRel(LinkRel rel) { AddAttribute("rel", rel.LiteralValue()); }
public static Link Link(LinkRel rel, LinkType type, string href) => new Link(rel, type, href);