Hi, I’m new to jekyll and a new dev also. I don’t really know how to report an issue. It’s my first time. Hope you can help me. Here is my problem. I don’t really know what’s wrong but when I add the {{ post.url }} while for looping my posts to display all the posts of course, it randomly puts multiple anchor tags with the post url in my html file even though I’ve only called it once. it looks like this.
This is how I loop my posts:
---
layout: layout-blog
---
<div class="row">
{% for post in site.posts %}
<div class="col-4">
<a href="{{ post.url }}">
<div class="blog-card">
<div class="featured-image" style="background-image: url('assets/images/uploads/conf-blog-header.jpg')">
<img src="{{ post.image | absolute_url }}" alt="">
</div>
<div class="blog-article">
<p class="category-time text-uppercase letter-spacing-0">Category | {{ post.time-to-read }} mins read</p>
<p class="h5 letter-spacing-0 title">{{ post.title }}</p>
<div class="blog-body-text letter-spacing-0">
{{ post.content | markdownify}}
</div>
</div>
<div class="author-div">
<p class="name-and-position letter-spacing-0">by <span class="text-tanda-l">{{ post.author-name }}, {{ post.author-job-title }}</span></p>
<p class="publish-date letter-spacing-0">published {{ post.publish-date }}</p>
</div>
</div>
</a>
</div>
{% endfor %}
</div>
And this is the the output on my browser which is the problem
<div class="col-4">
<a href="/2018/04/27/test.html"></a>
<div class="blog-card">
<a href="/2018/04/27/test.html">
<div class="featured-image" style="background-image: url('assets/images/uploads/conf-blog-header.jpg')">
<img src="http://192.168.1.125:4000//assets/images/uploads/conf-blog-header.jpg" alt="">
</div>
</a>
<div class="blog-article">
<a href="/2018/04/27/test.html">
<p class="category-time text-uppercase letter-spacing-0">Category | 3 mins read</p>
<p class="h5 letter-spacing-0 title">Lorem ipsum dolor sit amet consectetur adipisicing elit Pariatur, impedit. Laboriosam, voluptate! Accusantium, voluptatibus necessitatibus!</p>
</a>
<div class="blog-body-text letter-spacing-0">
<a href="/2018/04/27/test.html">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempora possimus accusamus exercitationem facilis voluptatem labore earum deserunt quam, quasi commodi ipsum a veniam quas optio est impedit nobis placeat inventore.</p>
<ol>
<li>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Error quo eos, ea fuga molestiae nesciunt voluptas dolor fugit delectus facere quam enim tempora voluptatibus, doloremque blanditiis aut ab consequuntur repellat voluptates molestias veritatis dolorem? Ipsam ad dolore officia dolorum hic?</li>
<li>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Error quo eos, ea fuga molestiae nesciunt voluptas dolor fugit delectus facere quam enim tempora voluptatibus, doloremque blanditiis aut ab consequuntur repellat voluptates molestias veritatis dolorem? Ipsam ad dolore officia dolorum hic?</li>
<li>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Error quo eos, ea fuga molestiae nesciunt voluptas dolor fugit delectus facere quam enim tempora voluptatibus, doloremque blanditiis aut ab consequuntur repellat voluptates molestias veritatis dolorem? Ipsam ad dolore officia dolorum hic?</li>
</ol>
<blockquote>
<p><strong><em>“Lorem ipsum, dolor sit amet consectetur adipisicing elit. Error quo eos, ea fuga molestiae nesciunt voluptas dolor fugit delectus facere quam enim tempora voluptatibus?”</em></strong></p>
</blockquote>
</a>
<p><a href="/2018/04/27/test.html"></a><a href="www.test.com"><em>www.loremipsum.com</em></a></p>
</div>
</div>
<div class="author-div">
<p class="name-and-position letter-spacing-0">by <span class="text-tanda-l">Monic Del Rosario, Content Curator / Resident Wordsmith / Door Opener</span></p>
<p class="publish-date letter-spacing-0">published April 27, 2018</p>
</div>
</div>
</div>
The Output I Wanted
<div class="col-4">
<a href="/2018/04/27/test.html">
<div class="blog-card">
<div class="featured-image" style="background-image: url('assets/images/uploads/conf-blog-header.jpg')">
<img src="http://192.168.1.125:4000//assets/images/uploads/conf-blog-header.jpg" alt="">
</div>
<div class="blog-article">
<p class="category-time text-uppercase letter-spacing-0">Category | 3 mins read</p>
<p class="h5 letter-spacing-0 title">Lorem ipsum dolor sit amet consectetur adipisicing elit Pariatur, impedit. Laboriosam, voluptate! Accusantium, voluptatibus necessitatibus!</p>
<div class="blog-body-text letter-spacing-0">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempora possimus accusamus exercitationem facilis voluptatem labore earum deserunt quam, quasi commodi ipsum a veniam quas optio est impedit nobis placeat inventore.</p>
<ol>
<li>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Error quo eos, ea fuga molestiae nesciunt voluptas dolor fugit delectus facere quam enim tempora voluptatibus, doloremque blanditiis aut ab consequuntur repellat voluptates molestias veritatis dolorem? Ipsam ad dolore officia dolorum hic?</li>
<li>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Error quo eos, ea fuga molestiae nesciunt voluptas dolor fugit delectus facere quam enim tempora voluptatibus, doloremque blanditiis aut ab consequuntur repellat voluptates molestias veritatis dolorem? Ipsam ad dolore officia dolorum hic?</li>
<li>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Error quo eos, ea fuga molestiae nesciunt voluptas dolor fugit delectus facere quam enim tempora voluptatibus, doloremque blanditiis aut ab consequuntur repellat voluptates molestias veritatis dolorem? Ipsam ad dolore officia dolorum hic?</li>
</ol>
<blockquote>
<p><strong><em>“Lorem ipsum, dolor sit amet consectetur adipisicing elit. Error quo eos, ea fuga molestiae nesciunt voluptas dolor fugit delectus facere quam enim tempora voluptatibus?”</em></strong></p>
</blockquote>
<p><a href="www.test.com"><em>www.loremipsum.com</em></a></p>
</div>
</div>
<div class="author-div">
<p class="name-and-position letter-spacing-0">by <span class="text-tanda-l">Monic Del Rosario, Content Curator / Resident Wordsmith / Door Opener</span></p>
<p class="publish-date letter-spacing-0">published April 27, 2018</p>
</div>
</div>
</a>
</div>