Skip to content

Commit 4748b79

Browse files
Added dedicated page for projects (#82)
* Recreating site for 2022 * updating main page projects images * removing cache * uploading image from other source * adding page for commuity members * updating members page * script added for auto update the members data * adding script to scrap data Signed-off-by: Deepak Raj <[email protected]> * moving to folder * updating site * updating post title * code refactoring * fixing code error * updating site css * updating nav bar Signed-off-by: Deepak Raj <[email protected]> Co-authored-by: Rahul Sharma <[email protected]>
1 parent 696664d commit 4748b79

File tree

5 files changed

+93
-67
lines changed

5 files changed

+93
-67
lines changed

_includes/navbar.html

Lines changed: 33 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,36 +16,42 @@ <h3 class="mainHeading"><a class="text-white" href="/"><img src="/assets/img/log
1616
<ul >
1717
{% if page.active == "home" %}
1818
<li class=" active"><a class="" href="/" data-after="Home">Home</a></li>
19-
{% else %}
20-
<li class=""><a class="" href="/" data-after="Home">Home</a></li>
21-
{% endif %}
19+
{% else %}
20+
<li class=""><a class="" href="/" data-after="Home">Home</a></li>
21+
{% endif %}
22+
23+
{% if page.active == "projects" %}
24+
<li class=" active"><a class="" href="/projects/index.html" data-after="Join">Join Us</a></li>
25+
{% else %}
26+
<li class=""><a class="" href="/projects/index.html" data-after="Projects">Community Projects</a></li>
27+
{% endif %}
2228

23-
{% if page.active == "join-us" %}
24-
<li class=" active"><a class="" href="/join-us/index.html" data-after="Join">Join Us</a></li>
25-
{% else %}
26-
<li class=""><a class="" href="/join-us/index.html" data-after="Join">Join Us</a></li>
27-
{% endif %}
29+
{% if page.active == "join-us" %}
30+
<li class=" active"><a class="" href="/join-us/index.html" data-after="Join">Join Us</a></li>
31+
{% else %}
32+
<li class=""><a class="" href="/join-us/index.html" data-after="Join">Join Us</a></li>
33+
{% endif %}
2834

29-
{% if page.active == "updates" %}
30-
<li class=" active"><a class="" href="/updates/index.html" data-after="Updates">Updates</a></li>
31-
{% else %}
32-
<li class=""><a class="" href="/updates/index.html" data-after="Updates">Updates</a></li>
33-
{% endif %}
35+
{% if page.active == "updates" %}
36+
<li class=" active"><a class="" href="/updates/index.html" data-after="Updates">Updates</a></li>
37+
{% else %}
38+
<li class=""><a class="" href="/updates/index.html" data-after="Updates">Updates</a></li>
39+
{% endif %}
3440

35-
{% if page.active == "developers" %}
36-
<li class=" active"><a class="" href="/developers/index.html" data-after="Developers">Developers</a></li>
37-
{% else %}
38-
<li class=""><a class="" href="/developers/index.html" data-after="Developers">Developers</a></li>
39-
{% endif %}
40-
{% if page.active == "community" %}
41-
<li class=" active"><a class="" href="/community/index.html" data-after="Community">community</a></li>
42-
{% else %}
43-
<li class=""><a class="" href="/community/index.html" data-after="Community">community</a></li>
44-
{% endif %}
45-
</ul>
46-
</div>
47-
</div>
48-
</div>
41+
{% if page.active == "developers" %}
42+
<li class=" active"><a class="" href="/developers/index.html" data-after="Developers">Developers</a></li>
43+
{% else %}
44+
<li class=""><a class="" href="/developers/index.html" data-after="Developers">Developers</a></li>
45+
{% endif %}
46+
{% if page.active == "community" %}
47+
<li class=" active"><a class="" href="/community/index.html" data-after="Community">community</a></li>
48+
{% else %}
49+
<li class=""><a class="" href="/community/index.html" data-after="Community">community</a></li>
50+
{% endif %}
51+
</ul>
52+
</div>
53+
</div>
54+
</div>
4955
</section>
5056

5157
<script>

assets/css/main.css

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

index.html

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,18 @@
88
---
99

1010
<div class="container">
11-
<div class="jumbotron text-dark text-center">
11+
<div class="jumbotron text-center">
1212
<div class="jumbo-content">
1313
<h1 class="display-3"><strong>Welcome to PyContributors</strong></h1>
14-
<p>A open Source community for Machine Learning and Artificial intelligence.</p>
14+
<p>An open Source community for Machine Learning and Artificial intelligence.</p>
1515
</div>
1616
</div>
1717
</div>
1818

19-
<div class="row">
20-
<div class="container">
2119

22-
<div class="row" data-masonry='{"percentPosition": true }'>
23-
{% for project in site.data.projects %}
24-
<div class="col-sm-6 col-lg-4 mb-4">
25-
<div class="card text-center text-info bg-dark p-3">
26-
<figure class="p-3 mb-0">
27-
<blockquote class="blockquote mb-0">
28-
{% if project.project_image %}
29-
<img class="card-img-top" src="{{project.project_image}}">
30-
{% endif %}
31-
<h2 class="card-title mb-0 text-primary">{{project.project_name}}</h2>
32-
</blockquote><p>{{project.description}}</p>
33-
<a href="{{project.github_url}}" class="btn btn-info">Github</a>
34-
{% if project.pypi_url %}
35-
<a href="{{project.pypi_url}}" class="btn btn-info">PyPi</a>
36-
{% endif %}
37-
{% if project.project_tags %}
38-
<p class="card-text"><small class="text-muted">{{project.project_tags}}</small></p>
39-
{% endif %}
40-
</figure>
41-
</div>
42-
</div>
43-
{% endfor %}
44-
</div>
4520

46-
<div>
21+
<div class="row">
4722
<div class="container">
48-
<!-- Quote-->
4923
<blockquote class="p-4 blockquote mt-4 text-center bgCst">
5024
<p class="mb-0"><i class="fa fa-quote-left mr-2"></i> Code never lies; comments often do. 😉😉 <i class="fa fa-quote-right ml-2"></i></p>
5125
<footer class="blockquote-footer">By <cite title="Source Title">Ron Jeffries</cite></footer>

projects/index.html

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
layout : default
3+
title : Projects | PyContributors
4+
description : Dedeicated page for PyContributors projects.
5+
image :
6+
active : projects
7+
8+
---
9+
<div class="container">
10+
<div class="jumbotron text-light text-center">
11+
<div class="jumbo-content">
12+
<h1 class="display-3"><strong>Community Projects</strong></h1>
13+
<p>Projects maintained by Py-Contributors community</p>
14+
</div>
15+
</div>
16+
</div>
17+
18+
<div class="row">
19+
<div class="container">
20+
21+
<div class="row" data-masonry='{"percentPosition": true }'>
22+
{% for project in site.data.projects %}
23+
<div class="col-sm-6 col-lg-4 mb-4">
24+
<div class="card text-center text-info bg-dark p-3">
25+
<figure class="p-3 mb-0">
26+
<blockquote class="blockquote mb-0">
27+
{% if project.project_image %}
28+
<img class="card-img-top" src="{{project.project_image}}">
29+
{% endif %}
30+
<h2 class="card-title mb-0 text-primary">{{project.project_name}}</h2>
31+
</blockquote><p>{{project.description}}</p>
32+
<a href="{{project.github_url}}" class="btn btn-info">Github</a>
33+
{% if project.pypi_url %}
34+
<a href="{{project.pypi_url}}" class="btn btn-info">PyPi</a>
35+
{% endif %}
36+
{% if project.project_tags %}
37+
<p class="card-text"><small class="text-muted">{{project.project_tags}}</small></p>
38+
{% endif %}
39+
</figure>
40+
</div>
41+
</div>
42+
{% endfor %}
43+
</div>
44+
45+
</div> <!-- Row closed-->

updates/index.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h2 class="bg-dark p-2 text-white txet-center"><a href="{{post.url | prepend: si
3232
<div class="col-md-5">
3333
<div class="text-center bdrRadius shadow-lg">
3434
<div class="card-header bg-dark text-white p-2">
35-
<h3 class="mb-0">Blog</h3>
35+
<h3 class="mb-0">Latest Updates</h3>
3636
</div>
3737
<ul class="list-group list-group-flush">
3838
{% for post in paginator.posts %}
@@ -42,13 +42,13 @@ <h3 class="mb-0">Blog</h3>
4242
</li>
4343
{% endfor %}
4444
<!-- pagination -->
45-
{% if paginator.total_pages > 1 %}
46-
<div class="pagination">
47-
{% if paginator.previous_page %}
48-
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a>
49-
{% else %}
50-
<span>&laquo; Prev</span>
51-
{% endif %}
45+
{% if paginator.total_pages > 1 %}
46+
<div class="pagination">
47+
{% if paginator.previous_page %}
48+
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a>
49+
{% else %}
50+
<span>&laquo; Prev</span>
51+
{% endif %}
5252

5353
{% for page in (2..paginator.total_pages) %}
5454
{% if page == paginator.page %}
@@ -69,6 +69,7 @@ <h3 class="mb-0">Blog</h3>
6969
</ul>
7070
</div>
7171
</div>
72+
7273
</div> <!--Row Div Close-->
7374
<style>
7475
.pagination a, .pagination span {

0 commit comments

Comments
 (0)