Skip to content

Commit 3a0581c

Browse files
author
Dhruva Shaw
committed
some updates
1 parent 618dec4 commit 3a0581c

File tree

3 files changed

+64
-82
lines changed

3 files changed

+64
-82
lines changed

_config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: > # the ">" symbol means to ignore newlines until "footer_text:"
1111
Building Together, Sharing Freely , सर्वेषां कृते सुलभं नवीनता |
1212
footer_text: >
1313
<a href="https://razorpay.me/@creativenet" target="_blank">Donate Us</a> | <a href="/careers/">Careers</a>.
14-
keywords: Dhruva Shaw, Dhruva, Shaw,Creative, Net, automation, company, developer, engineer, robotics, robotics engineer, discord, discord.py, cuber, lpu, cubing, electronics, ieee, arduino, esp32, academic-website, startup-website, robotics startup # add your own keywords or leave empty
14+
keywords: Dhruva Shaw, Dhruva, Shaw,Creative, Net, automation, company, developer, engineer, robotics, robotics engineer, discord, discord.py, cuber, lpu, cubing, electronics, ieee, arduino, esp32, academic-website, startup-website, robotics startup, creative net, startup, defence, adverse, phishnet, courses, india # add your own keywords or leave empty
1515
lang: en # the language of your site (for example: en, fr, cn, ru, etc.)
1616
icon: logo.jpg # the emoji used as the favicon (alternatively, provide image name in /assets/img/)
1717

@@ -149,9 +149,9 @@ collections:
149149
layout: post
150150
output: true
151151
permalink: /news/:path/
152-
projects:
152+
products:
153153
output: true
154-
permalink: /projects/:path/
154+
permalink: /products/:path/
155155

156156
announcements:
157157
enabled: true
@@ -385,7 +385,7 @@ enable_math: true # enables math typesetting (uses MathJax)
385385
enable_tooltips: true # enables automatic tooltip links generated for each section titles on pages and posts
386386
enable_darkmode: true # enables switching between light/dark modes
387387
enable_navbar_social: false # enables displaying social links in the navbar on the about page
388-
enable_project_categories: true # enables categorization of projects into multiple categories
388+
enable_product_categories: true # enables categorization of products into multiple categories
389389
enable_medium_zoom: true # enables image zoom feature (as on medium.com)
390390
enable_progressbar: true # enables a horizontal progress bar linked to the vertical scroll position
391391
enable_video_embedding: true # enables video embedding for bibtex entries. If false, the button opens the video link in a new window.

_pages/products.md

Lines changed: 60 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,65 @@
11
---
22
layout: page
33
title: Products
4+
permalink: /products/
5+
description: Ongoing/Finished Products.
46
nav: true
5-
nav_order: 4
6-
dropdown: true
7-
children:
8-
- title: Adverse
9-
permalink: /adverse/
10-
- title: divider
11-
- title: Minato Namikaze Bot
12-
permalink: https://minatonamikaze.thecreativenet.in
13-
- title: divider
14-
- title: fluxpoint.py
15-
newtab: true
16-
permalink: https://fluxpointpy.thecreativenet.in
7+
nav_order: 3
8+
display_categories: [defence, work, fun]
9+
horizontal: false
1710
---
11+
12+
13+
<div class="projects">
14+
{% if site.enable_product_categories and page.display_categories %}
15+
<!-- Display categorized projects -->
16+
{% for category in page.display_categories %}
17+
<a id="{{ category }}" href=".#{{ category }}">
18+
<h2 class="category">{{ category }}</h2>
19+
</a>
20+
{% assign categorized_projects = site.products | where: "category", category %}
21+
{% assign sorted_projects = categorized_projects | sort: "importance" %}
22+
<!-- Generate cards for each project -->
23+
{% if page.horizontal %}
24+
<div class="container">
25+
<div class="row row-cols-1 row-cols-md-2">
26+
{% for project in sorted_projects %}
27+
{% include projects_horizontal.liquid %}
28+
{% endfor %}
29+
</div>
30+
</div>
31+
{% else %}
32+
<div class="row row-cols-1 row-cols-md-3">
33+
{% for project in sorted_projects %}
34+
{% include projects.liquid %}
35+
{% endfor %}
36+
</div>
37+
{% endif %}
38+
{% endfor %}
39+
40+
{% else %}
41+
42+
<!-- Display projects without categories -->
43+
44+
{% assign sorted_projects = site.products | sort: "importance" %}
45+
46+
<!-- Generate cards for each project -->
47+
48+
{% if page.horizontal %}
49+
50+
<div class="container">
51+
<div class="row row-cols-1 row-cols-md-2">
52+
{% for project in sorted_projects %}
53+
{% include projects_horizontal.liquid %}
54+
{% endfor %}
55+
</div>
56+
</div>
57+
{% else %}
58+
<div class="row row-cols-1 row-cols-md-3">
59+
{% for project in sorted_projects %}
60+
{% include projects.liquid %}
61+
{% endfor %}
62+
</div>
63+
{% endif %}
64+
{% endif %}
65+
</div>

_pages/projects.md

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)