-
Notifications
You must be signed in to change notification settings - Fork 0
/
320.0ad0d9ceedc3da61.js
1 lines (1 loc) · 3.54 KB
/
320.0ad0d9ceedc3da61.js
1
"use strict";(self.webpackChunkblog_new=self.webpackChunkblog_new||[]).push([[320],{320:(A,c,l)=>{l.r(c),l.d(c,{BlogModule:()=>Z});var i=l(808),r=l(101),a=l(247),t=l(96),u=l(645),d=l(313);let p=(()=>{class o{constructor(){}ngOnInit(){this.imageStyle=this.bgImageUrl?{"background-image":`url("${this.bgImageUrl}")`}:{"background-image":'url("assets/images/bg1920x872.jpg")'}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-post-header"]],inputs:{title:"title",postDate:"postDate",bgImageUrl:"bgImageUrl"},decls:9,vars:3,consts:[[1,"intro-header",3,"ngStyle"],[1,"container"],[1,"row"],[1,"col-lg-8","col-lg-offset-2","col-md-10","col-md-offset-1"],[1,"post-heading"],[1,"meta"]],template:function(e,s){1&e&&(t.TgZ(0,"header",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t.TgZ(5,"h1"),t._uU(6),t.qZA(),t.TgZ(7,"span",5),t._uU(8),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("ngStyle",s.imageStyle),t.xp6(6),t.Oqu(s.title),t.xp6(2),t.hij("on ",s.postDate,""))},directives:[i.PC],styles:[""]}),o})();function m(o,n){if(1&o&&t._UZ(0,"app-post-header",5),2&o){const e=t.oxw();t.Q6J("title",e.post.title)("postDate",e.post.date)("bgImageUrl",e.post.bgImageUrl)}}let g=(()=>{class o{constructor(e,s,v,b,y){this.scullyService=e,this.blogService=s,this.titleService=v,this.renderer2=b,this.document=y}ngOnInit(){this.scullyService.getCurrent().subscribe(s=>{this.post=s,this.post.date=this.blogService.getPostDateFormRoute(this.post.route),this.titleService.setTitle(s.title)});const e=this.renderer2.createElement("script");e.type="text/javascript",e.src="https://utteranc.es/client.js",e.setAttribute("repo","thomascsd/thomascsd.github.io"),e.setAttribute("issue-term","pathname"),e.setAttribute("theme","github-light"),e.setAttribute("crossorigin","anonymous"),e.text="",this.renderer2.appendChild(this.document.querySelector("#comments"),e)}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(r.sG),t.Y36(u.Z),t.Y36(d.Dx),t.Y36(t.Qsj),t.Y36(i.K0))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-blog"]],decls:30,vars:1,consts:[[3,"title","postDate","bgImageUrl",4,"ngIf"],[1,"container"],[1,"row"],[1,"col-lg-8","col-lg-offset-2","col-md-10","col-md-offset-1"],["id","comments"],[3,"title","postDate","bgImageUrl"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t._uU(1,"\n "),t._uU(2,"\n "),t.YNc(3,m,1,3,"app-post-header",0),t._uU(4,"\n\n "),t.TgZ(5,"article"),t._uU(6,"\n "),t.TgZ(7,"div",1),t._uU(8,"\n "),t.TgZ(9,"div",2),t._uU(10,"\n "),t.TgZ(11,"div",3),t._uU(12,"\n "),t._UZ(13,"scully-content"),t._uU(14,"\n "),t.qZA(),t._uU(15,"\n "),t.qZA(),t._uU(16,"\n\n "),t._UZ(17,"hr"),t._uU(18,"\n "),t.TgZ(19,"div",2),t._uU(20,"\n "),t.TgZ(21,"div",3),t._uU(22,"\n "),t._UZ(23,"div",4),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n "),t.qZA(),t._uU(26,"\n "),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n"),t.qZA(),t._uU(29,"\n")),2&e&&(t.xp6(3),t.Q6J("ngIf",s.post))},directives:[i.O5,r.zS,p],styles:["[_ngcontent-%COMP%]::slotted(h1){color:#330625;background-color:#f8d3ec;padding:5px;border-radius:5px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}"]}),o})();const h=[{path:":slug",component:g},{path:"**",component:g}];let f=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[a.Bz.forChild(h)],a.Bz]}),o})();var U=l(466);let Z=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[i.ez,f,r.cx,U.m]]}),o})()}}]);