feat: add auto ad integration
- Add a new file to render the ad. - Modify `app/views/cities/show.html.erb` to render the ad. - The change is to add a new feature to the ad.
This commit is contained in:
parent
98a335100b
commit
983564d534
@ -65,6 +65,10 @@
|
||||
<%= render 'shared/map', city: @city %>
|
||||
</div>
|
||||
|
||||
<div class="card bg-base-100 backdrop-blur-md shadow-lg overflow-hidden"> <!-- 调整透明度和阴影 -->
|
||||
<%= render 'shared/auto_ad' %>
|
||||
</div>
|
||||
|
||||
<%= render 'cities/admin_panel' %>
|
||||
</div>
|
||||
</div>
|
||||
|
10
app/views/shared/_auto_ad.html.erb
Normal file
10
app/views/shared/_auto_ad.html.erb
Normal file
@ -0,0 +1,10 @@
|
||||
<!-- today_ai_weather -->
|
||||
<ins class="adsbygoogle"
|
||||
style="display:block"
|
||||
data-ad-client="ca-pub-7296634171837358"
|
||||
data-ad-slot="7447936130"
|
||||
data-ad-format="auto"
|
||||
data-full-width-responsive="true"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user