Skip to content

Commit

Permalink
include subtle-ads via api instead of submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
Per-Starke committed Feb 5, 2024
1 parent 3b062b5 commit d7243f7
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
1 change: 0 additions & 1 deletion _includes/subtle-ads
Submodule subtle-ads deleted from 4f0cfe
21 changes: 20 additions & 1 deletion _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,25 @@

{% if site.show-subtle-ads %}
<section class="subtle-ads">
{% include subtle-ads/subtle-ads.html %}
<script src="https://unpkg.com/[email protected]"
integrity="sha384-FhXw7b6AlE/jyjlZH5iHa/tTe9EpJ1Y55RjcgPbjeWMskSxZt1v9qkxLJWNJaGni"
crossorigin="anonymous"></script>

<div hx-get="https://arc42-subtle-ads-backend.vercel.app/api"
hx-trigger="load delay"
hx-swap="outerHTML"
hx-target="#subtle-ads">
</div>

<div id="subtle-ads">
<h4>arc42 offers architecture training.</h4>
<p>
The data is currently loaded from the backend and should display here shortly.
If not, you can see the next dates at
<a rel="noopener noreferrer nofollow" target="_blank" href="https://dates.arc42.org">
dates.arc42.org
</a>.
</p>
</div>
</section>
{% endif %}
21 changes: 20 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,25 @@

{% if site.show-subtle-ads %}
<section class="subtle-ads">
{% include subtle-ads/subtle-ads.html %}
<script src="https://unpkg.com/[email protected]"
integrity="sha384-FhXw7b6AlE/jyjlZH5iHa/tTe9EpJ1Y55RjcgPbjeWMskSxZt1v9qkxLJWNJaGni"
crossorigin="anonymous"></script>

<div hx-get="https://arc42-subtle-ads-backend.vercel.app/api"
hx-trigger="load delay"
hx-swap="outerHTML"
hx-target="#subtle-ads">
</div>

<div id="subtle-ads">
<h4>arc42 offers architecture training.</h4>
<p>
The data is currently loaded from the backend and should display here shortly.
If not, you can see the next dates at
<a rel="noopener noreferrer nofollow" target="_blank" href="https://dates.arc42.org">
dates.arc42.org
</a>.
</p>
</div>
</section>
{% endif %}

0 comments on commit d7243f7

Please sign in to comment.