aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIndrajith K L2023-02-14 14:10:55 +0530
committerIndrajith K L2023-02-14 14:10:55 +0530
commitc3d597bb89170a1f4b8db5cd621d348edf5f2bed (patch)
treec5db4be8121a0504060cd55a66dfd6bd0de74003 /src
parent18d89a5482b32d2ee38b94fc6182cc3535ef75cf (diff)
downloadindrajith-dev-c3d597bb89170a1f4b8db5cd621d348edf5f2bed.tar.gz
indrajith-dev-c3d597bb89170a1f4b8db5cd621d348edf5f2bed.tar.bz2
indrajith-dev-c3d597bb89170a1f4b8db5cd621d348edf5f2bed.zip
Adds Good Reads widget
Diffstat (limited to 'src')
-rw-r--r--src/css/styles.css13
-rw-r--r--src/index.njk9
2 files changed, 21 insertions, 1 deletions
diff --git a/src/css/styles.css b/src/css/styles.css
index a951211..40bad6f 100644
--- a/src/css/styles.css
+++ b/src/css/styles.css
@@ -238,4 +238,17 @@ p.first-letter::first-letter {
.etyone {
margin-bottom: 5px;
+}
+
+.gr_grid_container {
+ /* customize grid container div here. eg: width: 500px; */
+}
+
+.gr_grid_book_container {
+ /* customize book cover container div here */
+ float: left;
+ width: 98px;
+ height: 160px;
+ padding: 0;
+ overflow: hidden;
} \ No newline at end of file
diff --git a/src/index.njk b/src/index.njk
index 5373f06..7491bdf 100644
--- a/src/index.njk
+++ b/src/index.njk
@@ -13,12 +13,18 @@ alternatetitle: "Hello Friend!! My name is Indrajith K L."
</div>
<div>
+ <div>
+ <h4>Books I'm reading now</h4>
+ <div id="gr_grid_widget_1676363812"></div>
+ </div>
<h4>Recent Posts</h4>
<ul>
{% for post in collections.posts | reverse %}
{% if (loop.index <= 4) %}
<li>
- <p><a href="{{post.url}}">{{post.data.title}}</a></p>
+ <p>
+ <a href="{{post.url}}">{{post.data.title}}</a>
+ </p>
</li>
{% endif %}
{% else %}
@@ -28,3 +34,4 @@ alternatetitle: "Hello Friend!! My name is Indrajith K L."
{% endfor %}
</ul>
</div>
+<script src="https://www.goodreads.com/review/grid_widget/162656738.Indrajith's%20currently-reading%20book%20montage?cover_size=medium&hide_link=&hide_title=true&num_books=20&order=a&shelf=currently-reading&sort=date_added&widget_id=1676363812" type="text/javascript" charset="utf-8"></script> \ No newline at end of file