Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repetitive markup in _pages/developers.html #129

Open
anuraghazra opened this issue Nov 3, 2019 · 1 comment
Open

Repetitive markup in _pages/developers.html #129

anuraghazra opened this issue Nov 3, 2019 · 1 comment
Labels
enhancement Enhancement to existing features good first issue Good for newcomers

Comments

@anuraghazra
Copy link
Contributor

I guess we can loop over, instead of hard coding them? 馃 (i'm not familiar with jekyll though)

<div class="col-xs-12 col-sm-6 col-md-4">
<div class="image-flip" ontouchstart="this.classList.toggle('hover');">
<div class="mainflip">
<div class="frontside">
<div class="card">
<div class="card-body text-center">
<p><img class=" img-fluid" src="{{ site.authors.absingh.gravatar }}" alt="card image"></p>
<h4 class="card-title" style="font-family: 'Oswald', sans-serif;" >Abhijeet Singh</h4>
<p class="card-text">GLUG Lead | Microsoft Student Partner | AI Developer</p>
<a href="#" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i></a>
</div>
</div>
</div>
<div class="backside">
<div class="card">
<div class="card-body text-center mt-4">
<h4 class="card-title" style="font-family: 'Oswald', sans-serif;">Abhijeet Singh</h4>
<p class="card-text">Neighbourhood friendly Software Engineer</p>
<ul class="list-inline">
<li class="list-inline-item">
<a class="social-icon text-xs-center" target="_blank" href="https://twitter.com/cse_as">
<i class="fab fa-twitter"></i>
</a>
</li>
<li class="list-inline-item">
<a class="social-icon text-xs-center" target="_blank" href="https://www.linkedin.com/in/thatniceman/">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li class="list-inline-item">
<a class="social-icon text-xs-center" target="_blank" href="https://github.com/cseas">
<i class="fa fa-github"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>

@cseas cseas added enhancement Enhancement to existing features good first issue Good for newcomers labels Nov 17, 2019
@cseas
Copy link
Member

cseas commented Nov 17, 2019

You're correct. This can be done using a Liquid for loop.

You can find an example use case code in the authors.html file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to existing features good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants