Skip to content

Commit

Permalink
Ad support!
Browse files Browse the repository at this point in the history
  • Loading branch information
galadhremmin committed May 11, 2020
1 parent a993985 commit bd21824
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/resources/assets/ts/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -334,4 +334,12 @@ blockquote h3 a {
margin: 0;
}

.ed-ad-container {
width: 100%;
margin-top: 2rem;
}
.ed-ad-container:empty {
display: none;
}

@import './apps/discuss/index.scss'; /* Discuss is pretty much everywhere, so no point in separation here. */
3 changes: 2 additions & 1 deletion src/resources/views/home/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
developed and maintained by Leonard (<a href="https://twitter.com/parmaeldo" target="_blank">@parmaeldo</a>).
If you are a developer, you can follow the project on <a href="https://github.com/galadhremmin/Parf-Edhellen" target="_blank">Github</a>.
</p>
<div class="ed-ad-container" data-inject-module="ad" data-inject-prop-ad="frontpage"></div>
</div>
<div class="col-xs-12 col-sm-6 col-md-4">
<h4>Gloss of the hour</h4>
Expand All @@ -55,7 +56,6 @@
'sentence' => $sentence
])
@endif
<div class="ed-ad-container" data-inject-module="ad" data-inject-prop-ad="frontpage"></div>
</div>
<div class="col-xs-12 col-sm-12 col-md-4">
<h4>Community activity</h4>
Expand All @@ -67,5 +67,6 @@
])
</div>
</div>
<div class="ed-ad-container" data-inject-module="ad" data-inject-prop-ad="frontpage"></div>

@endsection

0 comments on commit bd21824

Please sign in to comment.