Skip to content

Commit 09101ce

Browse files
committed
merge with master
2 parents 7b86241 + 5ef8882 commit 09101ce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+4342
-4280
lines changed

.eleventy.js

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module.exports = function (eleventyConfig) {
5555
result = {
5656
dayName: "Monday",
5757
monthDay: "September 15th",
58-
label: "DevSprint",
58+
label: "Dev Sprint",
5959
};
6060
break;
6161
}
@@ -69,7 +69,7 @@ module.exports = function (eleventyConfig) {
6969

7070
// Total minutes
7171
let totalMinutes = sh * 60 + sm + dh * 60 + dm;
72-
72+
7373
// Calculate end hour and minutes
7474
let endHour = Math.floor(totalMinutes / 60);
7575
let endMinute = totalMinutes % 60;
@@ -119,6 +119,25 @@ module.exports = function (eleventyConfig) {
119119
return content;
120120
});
121121

122+
// add a sectionheader shortcode
123+
eleventyConfig.addPairedShortcode("sectionheader", function (content) {
124+
return `<div class="black-han-sans-regular font-normal text-2xl md:text-4xl md:text-center text-[#000000] text-center lg:text-left">
125+
<p>${content}</p>
126+
</div>`;
127+
});
128+
129+
// add an aside shortcode
130+
eleventyConfig.addPairedShortcode("aside", function (content) {
131+
return `<blockquote class="p-4 my-4">
132+
<p class="text-xl italic font-medium leading-relaxed">${content}</p>
133+
</blockquote>`;
134+
});
135+
136+
// TODO: Add more shortcodes as needed
137+
// - defaultlist
138+
// - cards
139+
// ...
140+
122141
return {
123142
pathPrefix: isProd ? "inpycon2025" : "",
124143
dir: {

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,6 @@ dist
108108

109109
# Mac
110110
.DS_Store
111+
112+
# schedule.json
113+
src/_data/schedule.json

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SCHEDULE_MANIFEST=src/_data/schedule.json
44
PRETALX_SCHEDULE=https://cfp.in.pycon.org/2025/schedule/export/schedule.json
55

6-
${SCHEDULE_MANIFEST}:
6+
${SCHEDULE_MANIFEST}: clean-schedule-info
77
curl -o ${SCHEDULE_MANIFEST} ${PRETALX_SCHEDULE}
88

99
schedule-info: ${SCHEDULE_MANIFEST}

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This repository contains the source code for the PyCon India 2025 website, built
2424

2525
3. Start the development server:
2626
```sh
27-
npm run serve
27+
make deploy-dev-server
2828
```
2929

3030
4. Open your browser and visit `http://localhost:8080`
@@ -103,6 +103,27 @@ We use a component-based approach with Nunjucks templates:
103103
{{ componentName("value1", "value2") }}
104104
```
105105

106+
#### Custom Icons for Page Layouts
107+
108+
You can add icons to your page by specifying an `iconset` key in the frontmatter.
109+
110+
Only one iconset is allowed per page. Each iconset maps to one or more images based on a predefined list in the layout.
111+
112+
```markdown
113+
---
114+
title: Contact Us
115+
description: |
116+
PyCon India 2025 is a purely volunteer community conference, driven by people passionate about Python.
117+
layout: page.njk
118+
iconset: question
119+
---
120+
```
121+
This will display the "Question Mark" icon near the top of the page.
122+
123+
If you want to use a new combination of icons, you must:
124+
1. Add the new iconset and its image mapping to the [src/_data/icon_map.json](https://github.com/pythonindia/inpycon2025/blob/main/src/_data_/icon_map.json).
125+
2. Use the new key in your page frontmatter.
126+
106127
### 5. Styling Guidelines
107128

108129
We use Tailwind CSS for styling:

0 commit comments

Comments
 (0)