-
Notifications
You must be signed in to change notification settings - Fork 0
/
320.5b0ba012940c9c10.js
1 lines (1 loc) · 4.07 KB
/
320.5b0ba012940c9c10.js
1
"use strict";(self.webpackChunkblog_new=self.webpackChunkblog_new||[]).push([[320],{320:(S,g,i)=>{i.r(g),i.d(g,{BlogModule:()=>T});var r=i(808),c=i(101),d=i(247),t=i(96),p=i(645),u=i(313);let h=(()=>{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,n){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",n.imageStyle),t.xp6(6),t.Oqu(n.title),t.xp6(2),t.hij("on ",n.postDate,""))},directives:[r.PC],styles:[""]}),o})();function v(o,s){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 m=(()=>{class o{constructor(e,n,a,l,b,y){this.scullyService=e,this.blogService=n,this.titleService=a,this.renderer2=l,this.document=b,this.metaService=y}ngOnInit(){this.scullyService.getCurrent().subscribe(n=>{const a=`${n.title} - Thomas Blog`,l=`${n.title} ${n.description||""}`;this.post=n,this.post.date=this.blogService.getPostDateFormRoute(this.post.route),this.titleService.setTitle(a),this.metaService.updateTag({name:"og:title",content:a}),this.metaService.updateTag({name:"twitter:title",content:a}),this.metaService.updateTag({name:"og:site_name",content:a}),this.metaService.updateTag({name:"keywords",content:`${n.title} ${n.keyword||""}`}),this.metaService.updateTag({name:"description",content:l}),this.metaService.updateTag({name:"og:description",content:l}),this.metaService.updateTag({name:"twitter:description",content:l})});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(c.sG),t.Y36(p.Z),t.Y36(u.Dx),t.Y36(t.Qsj),t.Y36(r.K0),t.Y36(u.h_))},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,n){1&e&&(t.TgZ(0,"div"),t._uU(1,"\n "),t._uU(2,"\n "),t.YNc(3,v,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",n.post))},directives:[r.O5,c.zS,h],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 f=[{path:":slug",component:m},{path:"**",component:m}];let U=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[d.Bz.forChild(f)],d.Bz]}),o})();var Z=i(466);let T=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[r.ez,U,c.cx,Z.m]]}),o})()}}]);