diff --git a/pub/docs/dev/hoon/tutorial/0-nouns.mdy b/pub/docs/dev/hoon/tutorial/0-nouns.mdy index a6ca503647..2523ca4e6f 100644 --- a/pub/docs/dev/hoon/tutorial/0-nouns.mdy +++ b/pub/docs/dev/hoon/tutorial/0-nouns.mdy @@ -1,6 +1,7 @@ --- title: Hoon 101.0: nouns, spans, and molds sort: 0 +spam: true next: true --- diff --git a/pub/tree/src/js/components/BodyComponent.coffee b/pub/tree/src/js/components/BodyComponent.coffee index 1f98b18858..92ef0294bf 100644 --- a/pub/tree/src/js/components/BodyComponent.coffee +++ b/pub/tree/src/js/components/BodyComponent.coffee @@ -57,7 +57,7 @@ module.exports = query { render: -> className = (@props.meta.layout?.replace /,/g," ") || "" body = [reactify @props.body] - if document.location.hostname is 'urbit.org' + if document.location.hostname is 'urbit.org' and @props.meta.spam? body.unshift (Spam {}, "") if @props.meta.logo? body.unshift (Logo color:@props.meta.logo) diff --git a/pub/tree/src/js/main.js b/pub/tree/src/js/main.js index 4fbcd7fe32..396a297d76 100644 --- a/pub/tree/src/js/main.js +++ b/pub/tree/src/js/main.js @@ -519,7 +519,7 @@ module.exports = query({ var body, className, ref1; className = ((ref1 = this.props.meta.layout) != null ? ref1.replace(/,/g, " ") : void 0) || ""; body = [reactify(this.props.body)]; - if (document.location.hostname === 'urbit.org') { + if (document.location.hostname === 'urbit.org' && (this.props.meta.spam != null)) { body.unshift(Spam({}, "")); } if (this.props.meta.logo != null) {