Skip to content

Commit b49edd3

Browse files
updates
1 parent afe1a7b commit b49edd3

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

_layouts/interview-index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ <h1 class="mb-4">Interview Questions</h1>
387387
Real interview questions and answers to prepare for IT job interviews. Learn from real-world scenarios.
388388
</p>
389389

390-
{% for post in site.interviews | sort: "date" | reverse %}
390+
{% assign sorted_interviews = site.interviews | sort: "date" | reverse %}
391+
{% for post in sorted_interviews %}
391392
<div class="mb-4 p-4 bg-white rounded shadow-sm">
392393
<h3 class="mb-2">
393394
<a href="{{ post.url }}" class="text-decoration-none">
@@ -400,7 +401,7 @@ <h3 class="mb-2">
400401
{{ post.date | date: "%B %d, %Y" }}
401402
</p>
402403

403-
<p>{{ post.intro }}</p>
404+
<p>{{ post.description | default: post.intro }}</p>
404405

405406
<a href="{{ post.url }}" class="btn btn-sm btn-primary">
406407
Read More →

_layouts/interview-post.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -606,9 +606,6 @@
606606
<li class="nav-item">
607607
<a class="nav-link" href="/#contact">Contact</a>
608608
</li>
609-
<li class="nav-item">
610-
<a class="nav-link" href="/#contact">Contact</a>
611-
</li>
612609
</ul>
613610
</div>
614611
</div>
@@ -633,7 +630,7 @@ <h1>{{ page.title }}</h1>
633630
<!-- Intro Section -->
634631
<div class="interview-intro">
635632
<h5><i class="fas fa-lightbulb me-2"></i>About This Question</h5>
636-
<p>{{ page.intro }}</p>
633+
<p>{{ page.intro | default: page.description }}</p>
637634
</div>
638635

639636
<!-- Content Area -->
@@ -665,7 +662,7 @@ <h4><i class="fas fa-bookmark me-2"></i>Related Interview Questions</h4>
665662
<div class="col-md-6 col-lg-4 mb-4">
666663
<div class="related-post-card">
667664
<h5>{{ post.title }}</h5>
668-
<p>{{ post.intro | truncate: 100 }}</p>
665+
<p>{{ post.description | default: post.intro | truncate: 100 }}</p>
669666
<a href="{{ post.url }}">
670667
Read More <i class="fas fa-arrow-right"></i>
671668
</a>

interviews/index.html

-32 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)