From 0aaa1a3f391dc9e5eb6ecf46f7e9b333ffde2284 Mon Sep 17 00:00:00 2001 From: Nilanchal Panigrahy Date: Tue, 19 Dec 2023 19:55:29 +0000 Subject: [PATCH] Added adsense --- bloggy/.DS_Store | Bin 10244 -> 10244 bytes bloggy/templates/pages/archive/posts.html | 8 ++++++-- bloggy/templates/pages/search_result.html | 1 + bloggy/templates/pages/single/course.html | 2 +- bloggy/templates/pages/single/lesson.html | 1 + bloggy/templates/pages/single/post.html | 13 +++++++++++-- bloggy/templates/pages/single/quiz.html | 2 +- .../ad-unit-horizontal-responsive.html | 18 ++++++++++++++++++ bloggy/templates/widgets/ad-unit-in-feed.html | 17 +++++++++++++++++ .../widgets/ad-unit-vertical-responsive.html | 18 ++++++++++++++++++ bloggy_frontend/sass/content/_home.scss | 2 +- bloggy_frontend/sass/content/post.scss | 2 +- 12 files changed, 76 insertions(+), 8 deletions(-) create mode 100644 bloggy/templates/widgets/ad-unit-horizontal-responsive.html create mode 100644 bloggy/templates/widgets/ad-unit-in-feed.html create mode 100644 bloggy/templates/widgets/ad-unit-vertical-responsive.html diff --git a/bloggy/.DS_Store b/bloggy/.DS_Store index 8e1f43bac36deb1d093dd7b7af261133079bfd13..9ca3d8525c0c6be2267c41738238b6b4d80b94aa 100644 GIT binary patch delta 24 fcmZn(XbIR5D8S0j$Y delta 16 XcmZn(XbIR5C@|SqJaO|Tfgo`JHctic diff --git a/bloggy/templates/pages/archive/posts.html b/bloggy/templates/pages/archive/posts.html index 3854362..328815e 100644 --- a/bloggy/templates/pages/archive/posts.html +++ b/bloggy/templates/pages/archive/posts.html @@ -12,15 +12,18 @@ {% categories_widget count=99 content_type="post" widget_style="list" %}
- {% if posts|length <= 0 %} + {% if posts|length <= 0 %}

No contents found!

- {% endif %} + {% endif %} {% for post in posts %}
{% include "partials/post_list_item.html" with post=post cssClass="card-rounded" %}
{% if forloop.counter == 3 %} + {% include "widgets/ad-unit-in-feed.html" %} + {% endif %} + {% if forloop.counter == 2 %} {% include "partials/course_row_grid.html" with courses=courses %} {% endif %} @@ -32,6 +35,7 @@ diff --git a/bloggy/templates/pages/search_result.html b/bloggy/templates/pages/search_result.html index 82c1eb0..5a115ff 100644 --- a/bloggy/templates/pages/search_result.html +++ b/bloggy/templates/pages/search_result.html @@ -94,6 +94,7 @@

{{ post.title | highlight_search:se

{% endwith %} diff --git a/bloggy/templates/pages/single/lesson.html b/bloggy/templates/pages/single/lesson.html index d568e4e..4deec4e 100644 --- a/bloggy/templates/pages/single/lesson.html +++ b/bloggy/templates/pages/single/lesson.html @@ -56,6 +56,7 @@
+ {% include 'widgets/ad-unit-horizontal-responsive.html' %}
diff --git a/bloggy/templates/pages/single/quiz.html b/bloggy/templates/pages/single/quiz.html index 3b4f9d5..7cbb4f0 100644 --- a/bloggy/templates/pages/single/quiz.html +++ b/bloggy/templates/pages/single/quiz.html @@ -33,9 +33,9 @@
diff --git a/bloggy/templates/widgets/ad-unit-horizontal-responsive.html b/bloggy/templates/widgets/ad-unit-horizontal-responsive.html new file mode 100644 index 0000000..378e226 --- /dev/null +++ b/bloggy/templates/widgets/ad-unit-horizontal-responsive.html @@ -0,0 +1,18 @@ +{% if LOAD_GOOGLE_ADS %} + + + + +{% else %} +
+ AD-SPACE +
+{% endif %} diff --git a/bloggy/templates/widgets/ad-unit-in-feed.html b/bloggy/templates/widgets/ad-unit-in-feed.html new file mode 100644 index 0000000..9044a1b --- /dev/null +++ b/bloggy/templates/widgets/ad-unit-in-feed.html @@ -0,0 +1,17 @@ +{% if LOAD_GOOGLE_ADS %} + + + +{% else %} +
+ AD-SPACE +
+{% endif %} diff --git a/bloggy/templates/widgets/ad-unit-vertical-responsive.html b/bloggy/templates/widgets/ad-unit-vertical-responsive.html new file mode 100644 index 0000000..9777ef7 --- /dev/null +++ b/bloggy/templates/widgets/ad-unit-vertical-responsive.html @@ -0,0 +1,18 @@ +{% if LOAD_GOOGLE_ADS %} + + + + +{% else %} +
+ AD-SPACE +
+{% endif %} \ No newline at end of file diff --git a/bloggy_frontend/sass/content/_home.scss b/bloggy_frontend/sass/content/_home.scss index 992d9e4..196378d 100644 --- a/bloggy_frontend/sass/content/_home.scss +++ b/bloggy_frontend/sass/content/_home.scss @@ -66,7 +66,7 @@ @media screen and (min-width: 992px) { .latest-feed-container { - padding: 0 1rem; + padding: 0 2rem; margin: 0 0 0 1rem; //.col:first-child { diff --git a/bloggy_frontend/sass/content/post.scss b/bloggy_frontend/sass/content/post.scss index 358f600..1d1629c 100644 --- a/bloggy_frontend/sass/content/post.scss +++ b/bloggy_frontend/sass/content/post.scss @@ -435,7 +435,7 @@ article { } .feed-card { - padding: 1rem; + padding: 1rem 0; } }