Skip to content

Commit

Permalink
fix: more disqus cleanup and check for node
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Jun 29, 2020
1 parent ff608a9 commit 566aca5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 102 deletions.
7 changes: 6 additions & 1 deletion src/app/blog/comments.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,13 @@ export class CommentsService {
const thread = document.getElementById(this.containerId);

while (thread.hasChildNodes()) {
thread.removeChild(thread.firstChild);
if (thread.firstChild instanceof Node) {
thread.removeChild(thread.firstChild);
}
}

document.querySelectorAll('iframe[id^="dsq"]')
.forEach(node => document.body.removeChild(node));
}

private initialized() {
Expand Down
102 changes: 1 addition & 101 deletions src/assets/scully-routes.json
Original file line number Diff line number Diff line change
@@ -1,101 +1 @@
[
{
"route": "/about",
"title": "About Me",
"description": "About Me",
"published": true,
"slug": "about",
"sourceFile": "about.md"
},
{
"route": "/talks",
"title": "Tech Talks and Appearances",
"description": "Stuff",
"published": true,
"slug": "talks",
"sourceFile": "talks.md"
},
{
"route": "/blog/posts/2019-03-04-handling-error-states-with-ngrx",
"title": "Handling Error States with NgRx",
"description": "Handling Error States with NgRx",
"published": true,
"slug": "2019-03-04-handling-error-states-with-ngrx",
"publishedDate": "2019-03-04T00:00:00.000Z",
"sourceFile": "2019-03-04-handling-error-states-with-ngrx.md"
},
{
"route": "/blog/posts/2019-03-27-custom-route-matching-angular-router",
"title": "Custom Route Matching with the Angular Router",
"description": "Custom Route Matching with the Angular Router",
"published": true,
"slug": "2019-03-27-custom-route-matching-angular-router",
"publishedDate": "2019-03-27T00:00:00.000Z",
"sourceFile": "2019-03-27-custom-route-matching-angular-router.md"
},
{
"route": "/blog/posts/2020-05-14-angular-unfiltered-001",
"title": "Angular Unfiltered Episode 001: Angular Forms w/Mike Ryan",
"description": "Chatting with Mike Ryan about Forms in Angular",
"published": true,
"slug": "2020-05-14-angular-unfiltered-001",
"publishedDate": "2020-05-14 02:00 PM CST",
"sourceFile": "2020-05-14-angular-unfiltered-001.md"
},
{
"route": "/blog/posts/2020-05-14-mixing-action-styles-ngrx",
"title": "Mixing Action Styles in NgRx State",
"description": "Mixing Action Styles in NgRx State",
"published": true,
"slug": "2020-05-14-mixing-action-styles-ngrx",
"publishedDate": "2020-05-14 02:00 PM CST",
"sourceFile": "2020-05-14-mixing-action-styles-ngrx.md"
},
{
"route": "/blog/posts/2020-05-15-angular-unfiltered-002",
"title": "Angular Unfiltered Episode 002: Angular Forms Pt. 2 w/Zack DeRose",
"description": "Chatting with Zack DeRose about Forms in Angular",
"published": true,
"slug": "2020-05-15-angular-unfiltered-002",
"publishedDate": "2020-05-15 02:00 PM CST",
"sourceFile": "2020-05-15-angular-unfiltered-002.md"
},
{
"route": "/blog/posts/2020-05-22-angular-unfiltered-003",
"title": "Angular Unfiltered Episode 003: Quick Chat w/Austin Akers",
"description": "Chatting with Austin Akers",
"published": true,
"slug": "2020-05-22-angular-unfiltered-003",
"publishedDate": "2020-05-22 02:00 PM CST",
"sourceFile": "2020-05-22-angular-unfiltered-003.md"
},
{
"route": "/blog/posts/2020-05-22-angular-unfiltered-004",
"title": "Angular Unfiltered Episode 004: Quick Chat w/Devin Shoemaker",
"description": "Chatting with Devin Shoemaker",
"published": true,
"slug": "2020-05-22-angular-unfiltered-004",
"publishedDate": "2020-06-12 02:00 PM CST",
"sourceFile": "2020-06-12-angular-unfiltered-004.md"
},
{
"route": "/blog/posts/2020-06-19-angular-unfiltered-005",
"title": "Angular Unfiltered Episode 005: Quick Chat w/Luke Howell",
"description": "Chatting with Luke Howell",
"published": true,
"slug": "2020-06-19-angular-unfiltered-005",
"publishedDate": "2020-06-19 02:00 PM CST",
"sourceFile": "2020-06-19-angular-unfiltered-005.md"
},
{
"route": "/blog/posts/2020-06-26-angular-unfiltered-006",
"title": "Angular Unfiltered Episode 006: Quick Chat w/Bryan Wilhite",
"description": "Chatting with Bryan Wilhite",
"published": true,
"slug": "2020-06-26-angular-unfiltered-006",
"publishedDate": "2020-06-26 02:00 PM CST",
"sourceFile": "2020-06-26-angular-unfiltered-006.md"
},
{ "route": "/blog" },
{ "route": "/" }
]
[{"route":"/about","title":"About Me","description":"About Me","published":true,"slug":"about","sourceFile":"about.md"},{"route":"/talks","title":"Tech Talks and Appearances","description":"Stuff","published":true,"slug":"talks","sourceFile":"talks.md"},{"route":"/blog/posts/2019-03-04-handling-error-states-with-ngrx","title":"Handling Error States with NgRx","description":"Handling Error States with NgRx","published":true,"slug":"2019-03-04-handling-error-states-with-ngrx","publishedDate":"2019-03-04T00:00:00.000Z","sourceFile":"2019-03-04-handling-error-states-with-ngrx.md"},{"route":"/blog/posts/2019-03-27-custom-route-matching-angular-router","title":"Custom Route Matching with the Angular Router","description":"Custom Route Matching with the Angular Router","published":true,"slug":"2019-03-27-custom-route-matching-angular-router","publishedDate":"2019-03-27T00:00:00.000Z","sourceFile":"2019-03-27-custom-route-matching-angular-router.md"},{"route":"/blog/posts/2020-05-14-angular-unfiltered-001","title":"Angular Unfiltered Episode 001: Angular Forms w/Mike Ryan","description":"Chatting with Mike Ryan about Forms in Angular","published":true,"slug":"2020-05-14-angular-unfiltered-001","publishedDate":"2020-05-14 02:00 PM CST","sourceFile":"2020-05-14-angular-unfiltered-001.md"},{"route":"/blog/posts/2020-05-14-mixing-action-styles-ngrx","title":"Mixing Action Styles in NgRx State","description":"Mixing Action Styles in NgRx State","published":true,"slug":"2020-05-14-mixing-action-styles-ngrx","publishedDate":"2020-05-14 02:00 PM CST","sourceFile":"2020-05-14-mixing-action-styles-ngrx.md"},{"route":"/blog/posts/2020-05-15-angular-unfiltered-002","title":"Angular Unfiltered Episode 002: Angular Forms Pt. 2 w/Zack DeRose","description":"Chatting with Zack DeRose about Forms in Angular","published":true,"slug":"2020-05-15-angular-unfiltered-002","publishedDate":"2020-05-15 02:00 PM CST","sourceFile":"2020-05-15-angular-unfiltered-002.md"},{"route":"/blog/posts/2020-05-22-angular-unfiltered-003","title":"Angular Unfiltered Episode 003: Quick Chat w/Austin Akers","description":"Chatting with Austin Akers","published":true,"slug":"2020-05-22-angular-unfiltered-003","publishedDate":"2020-05-22 02:00 PM CST","sourceFile":"2020-05-22-angular-unfiltered-003.md"},{"route":"/blog/posts/2020-05-22-angular-unfiltered-004","title":"Angular Unfiltered Episode 004: Quick Chat w/Devin Shoemaker","description":"Chatting with Devin Shoemaker","published":true,"slug":"2020-05-22-angular-unfiltered-004","publishedDate":"2020-06-12 02:00 PM CST","sourceFile":"2020-06-12-angular-unfiltered-004.md"},{"route":"/blog/posts/2020-06-19-angular-unfiltered-005","title":"Angular Unfiltered Episode 005: Quick Chat w/Luke Howell","description":"Chatting with Luke Howell","published":true,"slug":"2020-06-19-angular-unfiltered-005","publishedDate":"2020-06-19 02:00 PM CST","sourceFile":"2020-06-19-angular-unfiltered-005.md"},{"route":"/blog/posts/2020-06-26-angular-unfiltered-006","title":"Angular Unfiltered Episode 006: Quick Chat w/Bryan Wilhite","description":"Chatting with Bryan Wilhite","published":true,"slug":"2020-06-26-angular-unfiltered-006","publishedDate":"2020-06-26 02:00 PM CST","sourceFile":"2020-06-26-angular-unfiltered-006.md"},{"route":"/blog"},{"route":"/"}]

0 comments on commit 566aca5

Please sign in to comment.