bilingual-jekyll-resume-theme 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e95865459117ab43ae43114972d1ae82245a2d459b51e1d9980396400d18a79e
4
- data.tar.gz: 470648d6f71bed91528b11cbefe960747741116c428b013e3f058fe1c5f00b48
3
+ metadata.gz: f2f1c7e48b7ef1d8f1c500e1faccfeb19ebb5d9653b0ad5724bd2cd391e15261
4
+ data.tar.gz: c117b219149ec9daa3b2bc180058ce787da21dbe1ebcffb497dfefa8c8481fa7
5
5
  SHA512:
6
- metadata.gz: 94e77ff29daca018126fdc63b4e8a4445216ad52dafd895e5acd63bc65aa230350c6474254163fb11a9929cdfa900948d83c9dd4cef5d071b825e073abdd050b
7
- data.tar.gz: 432b7ecb3b58cc6ef27bcb7d2c040dfda60cf0b3793e8a1d184b6602eac0856d83a369401251d7387f563253cfee877da96da8b88d7a5331d2bde4590bb996d2
6
+ metadata.gz: 8c3f397191c599b514a94fb3cd9c287a7badf6aeb62651e105a9b6740d96161ba5b8a17bc3f0055adfb877af0869f4118a4abab49abd859ca4e0d6affa7ea86f
7
+ data.tar.gz: 3aaeebda86f58edea05c94aa4f5ecbe3078ceef449c78fca7edbacaea6b591e1a4a18d67ea422e351123763284ac0ca94d4e51b158312f95e65eaf29afbf90cb
data/CHANGELOG.md ADDED
@@ -0,0 +1,85 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+ ## [0.3.0] - 2025-11-03
8
+
9
+ ### Added
10
+ * Add SCSS/SASS Guide Documentation ([`77c9e2e`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/77c9e2e6a83188382e5c26033955438438d78beb))
11
+
12
+ * Add _config.yml Guide Documentation and a full sample file ([`a08d4f5`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/a08d4f5675ca902e8a2b5e23a2f3d2b4b5e02902))
13
+
14
+ * Add _layouts Guide Documentation ([`94830fe`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/94830fe4ac59667cc1514e45e5fc82af18440b5e))
15
+
16
+ * Add _includes Guide Documentation ([`b586225`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/b5862259e2f3d955b71417ec9506b1a778c5440a))
17
+
18
+ * Add Data Structure Documentation ([`077184c`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/077184ccd038441c0bfbd7644228d6efd743e75f))
19
+
20
+ * Add comments to the dynamic data loader ar&en layouts ([`4efe0a4`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/4efe0a453f2ca767d55f601ca7b02c7372357e74))
21
+
22
+
23
+ ### Changed
24
+ * Add WARP.md file ([`ff38359`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/ff383590d783e17af1432d257f4f325b101dc574))
25
+
26
+ * Upload changelog file ([`d4ba77b`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/d4ba77b2f17a1d53f9e7e93db57569840fd0e03f))
27
+
28
+ * Create git-cliff config file ([`ad72acd`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/ad72acd74d03bc42c8380ff7d0a5362de66fff81))
29
+
30
+
31
+ ### Fixed
32
+ * Update dynamic data loader to use specific active_resume_path variables for Arabic and English ([`f4852cc`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/f4852cc01410deb358df978041a980a6e671ed00))
33
+
34
+ ## [0.2.0] - 2025-11-02
35
+
36
+ ### Added
37
+ * Add runtime dependency plugins ([`7b21773`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/7b2177300f683939b9cb045fc3403db962d56193))
38
+
39
+
40
+ ### Changed
41
+ * Update to version 0.2.0 ([`bd1ab3a`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/bd1ab3af75041c5b17109bd3c20fd3c971266dd8))
42
+
43
+
44
+ ### Fixed
45
+ * Correct theme asset paths for gem ([`189fc46`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/189fc4693cdce7c2195909405bf97e1647d1aad8))
46
+
47
+ * Fix spec.files ([`92003e7`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/92003e7865100961b60376bd63daa1b8705e4e81))
48
+
49
+ ## [0.1.1] - 2025-11-02
50
+
51
+ ### Added
52
+ * Add assets folder ([`41fbb34`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/41fbb34708d28da99e1730cffdd485b3e6a1e1af))
53
+
54
+ * Add _sass folder ([`15ddfe1`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/15ddfe1245dbc855eebd481d1529bfad28bf6916))
55
+
56
+ * Add _layouts folder ([`0d2bd65`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/0d2bd65458760b7787a7fcca16fb9b5d805c8857))
57
+
58
+ * Add _includes folder ([`8c87411`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/8c87411b64a9a66870a1e71f13e8d08ed3a29680))
59
+
60
+ * Add CODE_OF_CONDUCT.MD ([`abea110`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/abea11088296b04f3f7ccbd845f7268c84b3e9cf))
61
+
62
+ * Add .whitesource configuration file ([`1958aa0`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/1958aa04a25ce3aa8c60ddda3a5e9eb9fe43d79c))
63
+
64
+
65
+ ### Changed
66
+ * Update to version 0.1.1 ([`07c61a7`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/07c61a70da763e2258020c41c3d2198eb89dc1f7))
67
+
68
+ * Update gemspec with metadata ([`2c1f1a7`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/2c1f1a7138314e6481edaa96391640d35349515e))
69
+
70
+ * Merge pull request #1 from kmutahar/whitesource/configure ([`058663b`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/058663b282b2b839cb244a80dc4a1ca0cbdaedab))
71
+
72
+ ## [0.1.0] - 2025-11-02
73
+
74
+ ### Changed
75
+ * Update gemspec with correct email, summary, and homepage ([`39e7b88`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/39e7b8872c1092c52261c9524245ebf73804a99e))
76
+
77
+ * Update LICENSE file with orginal author copyright ([`ff03b02`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/ff03b02b285c14ac393b0ee71596961fb760c5b9))
78
+
79
+ * Initial commit (New Theme Template) ([`00af662`](https://github.com/kmutahar/bilingual-jekyll-resume-theme/commit/00af6628dfec7aefe0ef7d7083bf98c9713a5ffd))
80
+
81
+ [0.3.0]: https://github.com/kmutahar/bilingual-jekyll-resume-theme/compare/v0.2.0...v0.3.0
82
+ [0.2.0]: https://github.com/kmutahar/bilingual-jekyll-resume-theme/compare/v0.1.1...v0.2.0
83
+ [0.1.1]: https://github.com/kmutahar/bilingual-jekyll-resume-theme/compare/v0.1.0...v0.1.1
84
+
85
+ <!-- generated by git-cliff -->
@@ -0,0 +1,92 @@
1
+
2
+ # Contributor Covenant 3.0 Code of Conduct
3
+
4
+ ## Our Pledge
5
+
6
+ We pledge to make our community welcoming, safe, and equitable for all.
7
+
8
+ We are committed to fostering an environment that respects and promotes the dignity, rights, and contributions of all individuals, regardless of characteristics including race, ethnicity, caste, color, age, physical characteristics, neurodiversity, disability, sex or gender, gender identity or expression, sexual orientation, language, philosophy or religion, national or social origin, socio-economic position, level of education, or other status. The same privileges of participation are extended to everyone who participates in good faith and in accordance with this Covenant.
9
+
10
+ ## Encouraged Behaviors
11
+
12
+ While acknowledging differences in social norms, we all strive to meet our community's expectations for positive behavior. We also understand that our words and actions may be interpreted differently than we intend based on culture, background, or native language.
13
+
14
+ With these considerations in mind, we agree to behave mindfully toward each other and act in ways that center our shared values, including:
15
+
16
+ 1. Respecting the **purpose of our community**, our activities, and our ways of gathering.
17
+ 2. Engaging **kindly and honestly** with others.
18
+ 3. Respecting **different viewpoints** and experiences.
19
+ 4. **Taking responsibility** for our actions and contributions.
20
+ 5. Gracefully giving and accepting **constructive feedback**.
21
+ 6. Committing to **repairing harm** when it occurs.
22
+ 7. Behaving in other ways that promote and sustain the **well-being of our community**.
23
+
24
+
25
+ ## Restricted Behaviors
26
+
27
+ We agree to restrict the following behaviors in our community. Instances, threats, and promotion of these behaviors are violations of this Code of Conduct.
28
+
29
+ 1. **Harassment.** Violating explicitly expressed boundaries or engaging in unnecessary personal attention after any clear request to stop.
30
+ 2. **Character attacks.** Making insulting, demeaning, or pejorative comments directed at a community member or group of people.
31
+ 3. **Stereotyping or discrimination.** Characterizing anyone’s personality or behavior on the basis of immutable identities or traits.
32
+ 4. **Sexualization.** Behaving in a way that would generally be considered inappropriately intimate in the context or purpose of the community.
33
+ 5. **Violating confidentiality**. Sharing or acting on someone's personal or private information without their permission.
34
+ 6. **Endangerment.** Causing, encouraging, or threatening violence or other harm toward any person or group.
35
+ 7. Behaving in other ways that **threaten the well-being** of our community.
36
+
37
+ ### Other Restrictions
38
+
39
+ 1. **Misleading identity.** Impersonating someone else for any reason, or pretending to be someone else to evade enforcement actions.
40
+ 2. **Failing to credit sources.** Not properly crediting the sources of content you contribute.
41
+ 3. **Promotional materials**. Sharing marketing or other commercial content in a way that is outside the norms of the community.
42
+ 4. **Irresponsible communication.** Failing to responsibly present content which includes, links or describes any other restricted behaviors.
43
+
44
+
45
+ ## Reporting an Issue
46
+
47
+ Tensions can occur between community members even when they are trying their best to collaborate. Not every conflict represents a code of conduct violation, and this Code of Conduct reinforces encouraged behaviors and norms that can help avoid conflicts and minimize harm.
48
+
49
+ When an incident does occur, it is important to report it promptly. To report a possible violation, **please open an issue at https://github.com/kmutahar/bilingual-jekyll-resume-theme/issues/new**
50
+
51
+ Community Moderators take reports of violations seriously and will make every effort to respond in a timely manner. They will investigate all reports of code of conduct violations, reviewing messages, logs, and recordings, or interviewing witnesses and other participants. Community Moderators will keep investigation and enforcement actions as transparent as possible while prioritizing safety and confidentiality. In order to honor these values, enforcement actions are carried out in private with the involved parties, but communicating to the whole community may be part of a mutually agreed upon resolution.
52
+
53
+
54
+ ## Addressing and Repairing Harm
55
+
56
+ ****
57
+
58
+ If an investigation by the Community Moderators finds that this Code of Conduct has been violated, the following enforcement ladder may be used to determine how best to repair harm, based on the incident's impact on the individuals involved and the community as a whole. Depending on the severity of a violation, lower rungs on the ladder may be skipped.
59
+
60
+ 1) Warning
61
+ 1) Event: A violation involving a single incident or series of incidents.
62
+ 2) Consequence: A private, written warning from the Community Moderators.
63
+ 3) Repair: Examples of repair include a private written apology, acknowledgement of responsibility, and seeking clarification on expectations.
64
+ 2) Temporarily Limited Activities
65
+ 1) Event: A repeated incidence of a violation that previously resulted in a warning, or the first incidence of a more serious violation.
66
+ 2) Consequence: A private, written warning with a time-limited cooldown period designed to underscore the seriousness of the situation and give the community members involved time to process the incident. The cooldown period may be limited to particular communication channels or interactions with particular community members.
67
+ 3) Repair: Examples of repair may include making an apology, using the cooldown period to reflect on actions and impact, and being thoughtful about re-entering community spaces after the period is over.
68
+ 3) Temporary Suspension
69
+ 1) Event: A pattern of repeated violation which the Community Moderators have tried to address with warnings, or a single serious violation.
70
+ 2) Consequence: A private written warning with conditions for return from suspension. In general, temporary suspensions give the person being suspended time to reflect upon their behavior and possible corrective actions.
71
+ 3) Repair: Examples of repair include respecting the spirit of the suspension, meeting the specified conditions for return, and being thoughtful about how to reintegrate with the community when the suspension is lifted.
72
+ 4) Permanent Ban
73
+ 1) Event: A pattern of repeated code of conduct violations that other steps on the ladder have failed to resolve, or a violation so serious that the Community Moderators determine there is no way to keep the community safe with this person as a member.
74
+ 2) Consequence: Access to all community spaces, tools, and communication channels is removed. In general, permanent bans should be rarely used, should have strong reasoning behind them, and should only be resorted to if working through other remedies has failed to change the behavior.
75
+ 3) Repair: There is no possible repair in cases of this severity.
76
+
77
+ This enforcement ladder is intended as a guideline. It does not limit the ability of Community Managers to use their discretion and judgment, in keeping with the best interests of our community.
78
+
79
+
80
+ ## Scope
81
+
82
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public or other spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
83
+
84
+
85
+ ## Attribution
86
+
87
+ This Code of Conduct is adapted from the Contributor Covenant, version 3.0, permanently available at [https://www.contributor-covenant.org/version/3/0/](https://www.contributor-covenant.org/version/3/0/).
88
+
89
+ Contributor Covenant is stewarded by the Organization for Ethical Source and licensed under CC BY-SA 4.0. To view a copy of this license, visit [https://creativecommons.org/licenses/by-sa/4.0/](https://creativecommons.org/licenses/by-sa/4.0/)
90
+
91
+ For answers to common questions about Contributor Covenant, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are provided at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations). Additional enforcement and community guideline resources can be found at [https://www.contributor-covenant.org/resources](https://www.contributor-covenant.org/resources). The enforcement ladder was inspired by the work of [Mozilla’s code of conduct team](https://github.com/mozilla/inclusion).
92
+
@@ -1,16 +1,147 @@
1
+ {% comment %}
2
+ =============================================================================
3
+ DYNAMIC DATA LOADER FOR JEKYLL
4
+ =============================================================================
5
+ This entire block dynamically sets the 'resume_data' variable.
6
+ Its goal is to find the correct data folder (or "data object") based on the
7
+ 'active_resume_path_ar' variable set in your _config.yml file.
8
+
9
+ The rest of the template can then use 'resume_data'
10
+ (e.g., 'resume_data.experience', 'resume_data.links') without
11
+ caring *where* that data actually came from.
12
+ {% endcomment %}
13
+
14
+ {% comment %}
15
+ STEP 1: Get the path string from the config file.
16
+ 'site.active_resume_path_ar' reads the value from _config.yml.
17
+ We assign it to a new, shorter variable called 'data_path_string'.
18
+ {% endcomment %}
1
19
  {% assign data_path_string = site.active_resume_path_ar %}
2
20
 
21
+ {% comment %}
22
+ STEP 2: Check if the path is empty.
23
+ This 'if' statement checks if 'data_path_string' is either an
24
+ empty string ("") or 'nil' (which means it wasn't defined at all).
25
+ This is our "default" or "fallback" case for files in the root _data/ folder.
26
+ {% endcomment %}
3
27
  {% if data_path_string == "" or data_path_string == nil %}
28
+
29
+ {% comment %}
30
+ FALLBACK CASE: The path was empty.
31
+ We assign 'resume_data' to be the top-level 'site.data' object.
32
+ This means the rest of the template will look for files directly in
33
+ the _data/ folder (e.g., 'site.data.experience' from _data/experience.yml).
34
+ {% endcomment %}
4
35
  {% assign resume_data = site.data %}
5
- {% else %}
36
+
37
+ {% else %}
38
+
39
+ {% comment %}
40
+ ACTIVE CASE: A path was provided (e.g., "ar" or "ProjectManager").
41
+ Now we need to "drill down" to find the correct data object.
42
+ {% endcomment %}
43
+
44
+ {% comment %}
45
+ STEP 3: Split the path string into parts.
46
+ The 'split: "."' filter takes the string and breaks it into an
47
+ array (a list) using the dot '.' as the separator.
48
+ If data_path_string = "2025-06.20250621-PM"
49
+ Then path_parts = ["2025-06", "20250621-PM"]
50
+ If data_path_string = "ar"
51
+ Then path_parts = ["ar"]
52
+ {% endcomment %}
6
53
  {% assign path_parts = data_path_string | split: '.' %}
54
+
55
+ {% comment %}
56
+ STEP 4: Set the starting point for our loop.
57
+ We create a temporary variable 'data_object' and set it to the
58
+ very top of the data tree, 'site.data'. This is the object
59
+ we will "drill down" into.
60
+ {% endcomment %}
7
61
  {% assign data_object = site.data %}
62
+
63
+ {% comment %}
64
+ STEP 5: The Loop.
65
+ This 'for' loop iterates over the 'path_parts' array we created.
66
+ For each 'part' in the list, it will run the code inside.
67
+ {% endcomment %}
8
68
  {% for part in path_parts %}
69
+
70
+ {% comment %}
71
+ THE CORE LOGIC: Drilling Down with Bracket Notation.
72
+
73
+ This is the most important line. It re-assigns 'data_object'
74
+ to be a *child* of itself, using the current 'part' as the key.
75
+
76
+ It uses BRACKET NOTATION: data_object[part]
77
+
78
+ WHY BRACKET NOTATION?
79
+ In Liquid, you can access data in two ways:
80
+ 1. Dot Notation: site.data.ar
81
+ 2. Bracket Notation: site.data['ar']
82
+
83
+ Dot notation fails if the key starts with a number (like "2025-06").
84
+ Liquid sees 'site.data.2025-06' and gets confused.
85
+
86
+ Bracket notation *always* works because it treats the key as a
87
+ string, no matter what it contains. 'site.data['2025-06']' is valid.
88
+
89
+ Since our 'part' variable holds a string, 'data_object[part]' is
90
+ the perfect way to safely access the next level down.
91
+
92
+ HOW THE LOOP WORKS (Example: Your path is _data/2025-06/20250621-PM/)
93
+
94
+ - Your config string is: data_path_string = "2025-06.20250621-PM"
95
+ - The split array is: path_parts = ["2025-06", "20250621-PM"]
96
+
97
+ - Before loop: data_object = site.data
98
+
99
+ - Loop 1:
100
+ - part = "2025-06"
101
+ - code runs: data_object = data_object["2025-06"]
102
+ - result: data_object = site.data['2025-06']
103
+
104
+ - Loop 2:
105
+ - part = "20250621-PM"
106
+ - code runs: data_object = data_object["20250621-PM"]
107
+ - result: data_object = site.data['2025-06']['20250621-PM']
108
+
109
+ - Loop ends.
110
+ {% endcomment %}
9
111
  {% assign data_object = data_object[part] %}
112
+
10
113
  {% endfor %}
114
+
115
+ {% comment %}
116
+ STEP 6: Final Assignment.
117
+
118
+ After the loop has finished, 'data_object' holds our target folder
119
+ (e.g., site.data.ar or site.data['2025-06']['20250621-PM']).
120
+
121
+ We now assign this final object to the 'resume_data' variable that
122
+ the rest of the template will use.
123
+ {% endcomment %}
11
124
  {% assign resume_data = data_object %}
125
+
12
126
  {% endif %}
13
127
 
128
+ {% comment %}
129
+ =============================================================================
130
+ DYNAMIC DATA LOADER ENDS
131
+ =============================================================================
132
+
133
+ From this point on, you can just use 'resume_data' variable.
134
+
135
+ - If config was empty (""):
136
+ resume_data.experience == site.data.experience
137
+
138
+ - If config was "ar":
139
+ resume_data.experience == site.data.ar.experience
140
+
141
+ - If config was "2025-06.20250621-PM":
142
+ resume_data.experience == site.data['2025-06']['20250621-PM'].experience
143
+ {% endcomment %}
144
+
14
145
  <!DOCTYPE html>
15
146
  <html lang="ar" dir="rtl">
16
147
  <!-- هذه الصفحة تم تحديثها آخر مرة في {{ "now" | date: "%Y-%m-%d %H:%M:%S" }}Z -->
@@ -1,16 +1,147 @@
1
+ {% comment %}
2
+ =============================================================================
3
+ DYNAMIC DATA LOADER FOR JEKYLL
4
+ =============================================================================
5
+ This entire block dynamically sets the 'resume_data' variable.
6
+ Its goal is to find the correct data folder (or "data object") based on the
7
+ 'active_resume_path_en' variable set in your _config.yml file.
8
+
9
+ The rest of the template can then use 'resume_data'
10
+ (e.g., 'resume_data.experience', 'resume_data.links') without
11
+ caring *where* that data actually came from.
12
+ {% endcomment %}
13
+
14
+ {% comment %}
15
+ STEP 1: Get the path string from the config file.
16
+ 'site.active_resume_path_en' reads the value from _config.yml.
17
+ We assign it to a new, shorter variable called 'data_path_string'.
18
+ {% endcomment %}
1
19
  {% assign data_path_string = site.active_resume_path_en %}
2
20
 
21
+ {% comment %}
22
+ STEP 2: Check if the path is empty.
23
+ This 'if' statement checks if 'data_path_string' is either an
24
+ empty string ("") or 'nil' (which means it wasn't defined at all).
25
+ This is our "default" or "fallback" case for files in the root _data/ folder.
26
+ {% endcomment %}
3
27
  {% if data_path_string == "" or data_path_string == nil %}
28
+
29
+ {% comment %}
30
+ FALLBACK CASE: The path was empty.
31
+ We assign 'resume_data' to be the top-level 'site.data' object.
32
+ This means the rest of the template will look for files directly in
33
+ the _data/ folder (e.g., 'site.data.experience' from _data/experience.yml).
34
+ {% endcomment %}
4
35
  {% assign resume_data = site.data %}
5
- {% else %}
36
+
37
+ {% else %}
38
+
39
+ {% comment %}
40
+ ACTIVE CASE: A path was provided (e.g., "en" or "ProjectManager").
41
+ Now we need to "drill down" to find the correct data object.
42
+ {% endcomment %}
43
+
44
+ {% comment %}
45
+ STEP 3: Split the path string into parts.
46
+ The 'split: "."' filter takes the string and breaks it into an
47
+ array (a list) using the dot '.' as the separator.
48
+ If data_path_string = "2025-06.20250621-PM"
49
+ Then path_parts = ["2025-06", "20250621-PM"]
50
+ If data_path_string = "en"
51
+ Then path_parts = ["en"]
52
+ {% endcomment %}
6
53
  {% assign path_parts = data_path_string | split: '.' %}
54
+
55
+ {% comment %}
56
+ STEP 4: Set the starting point for our loop.
57
+ We create a temporary variable 'data_object' and set it to the
58
+ very top of the data tree, 'site.data'. This is the object
59
+ we will "drill down" into.
60
+ {% endcomment %}
7
61
  {% assign data_object = site.data %}
62
+
63
+ {% comment %}
64
+ STEP 5: The Loop.
65
+ This 'for' loop iterates over the 'path_parts' array we created.
66
+ For each 'part' in the list, it will run the code inside.
67
+ {% endcomment %}
8
68
  {% for part in path_parts %}
69
+
70
+ {% comment %}
71
+ THE CORE LOGIC: Drilling Down with Bracket Notation.
72
+
73
+ This is the most important line. It re-assigns 'data_object'
74
+ to be a *child* of itself, using the current 'part' as the key.
75
+
76
+ It uses BRACKET NOTATION: data_object[part]
77
+
78
+ WHY BRACKET NOTATION?
79
+ In Liquid, you can access data in two ways:
80
+ 1. Dot Notation: site.data.en
81
+ 2. Bracket Notation: site.data['en']
82
+
83
+ Dot notation fails if the key starts with a number (like "2025-06").
84
+ Liquid sees 'site.data.2025-06' and gets confused.
85
+
86
+ Bracket notation *always* works because it treats the key as a
87
+ string, no matter what it contains. 'site.data['2025-06']' is valid.
88
+
89
+ Since our 'part' variable holds a string, 'data_object[part]' is
90
+ the perfect way to safely access the next level down.
91
+
92
+ HOW THE LOOP WORKS (Example: Your path is _data/2025-06/20250621-PM/)
93
+
94
+ - Your config string is: data_path_string = "2025-06.20250621-PM"
95
+ - The split array is: path_parts = ["2025-06", "20250621-PM"]
96
+
97
+ - Before loop: data_object = site.data
98
+
99
+ - Loop 1:
100
+ - part = "2025-06"
101
+ - code runs: data_object = data_object["2025-06"]
102
+ - result: data_object = site.data['2025-06']
103
+
104
+ - Loop 2:
105
+ - part = "20250621-PM"
106
+ - code runs: data_object = data_object["20250621-PM"]
107
+ - result: data_object = site.data['2025-06']['20250621-PM']
108
+
109
+ - Loop ends.
110
+ {% endcomment %}
9
111
  {% assign data_object = data_object[part] %}
112
+
10
113
  {% endfor %}
114
+
115
+ {% comment %}
116
+ STEP 6: Final Assignment.
117
+
118
+ After the loop has finished, 'data_object' holds our target folder
119
+ (e.g., site.data.en or site.data['2025-06']['20250621-PM']).
120
+
121
+ We now assign this final object to the 'resume_data' variable that
122
+ the rest of the template will use.
123
+ {% endcomment %}
11
124
  {% assign resume_data = data_object %}
125
+
12
126
  {% endif %}
13
127
 
128
+ {% comment %}
129
+ =============================================================================
130
+ DYNAMIC DATA LOADER ENDS
131
+ =============================================================================
132
+
133
+ From this point on, you can just use 'resume_data' variable.
134
+
135
+ - If config was empty (""):
136
+ resume_data.experience == site.data.experience
137
+
138
+ - If config was "en":
139
+ resume_data.experience == site.data.en.experience
140
+
141
+ - If config was "2025-06.20250621-PM":
142
+ resume_data.experience == site.data['2025-06']['20250621-PM'].experience
143
+ {% endcomment %}
144
+
14
145
  <!DOCTYPE html>
15
146
  <html lang="en">
16
147
  <!-- This page was last updated on {{ "now" | date: "%Y-%m-%d %H:%M:%S" }}Z -->
@@ -3,17 +3,17 @@
3
3
 
4
4
  // "Reset" styles and SCSS reusable components
5
5
  // Arabic CV entrypoint: load base styles then RTL overrides
6
- @use "../../_sass/normalize";
7
- @use "../../_sass/mixins";
8
- @use "../../_sass/variables";
6
+ @use "normalize";
7
+ @use "mixins";
8
+ @use "variables";
9
9
 
10
10
  // Generic site base & layout styles
11
- @use "../../_sass/base";
12
- @use "../../_sass/layout";
11
+ @use "base";
12
+ @use "layout";
13
13
 
14
14
  // Layouts
15
- @use "../../_sass/resume";
16
- @use "../../_sass/all-pages";
15
+ @use "resume";
16
+ @use "all-pages";
17
17
 
18
18
  // RTL-specific overrides and Arabic typography
19
- @use "../../_sass/resume-rtl";
19
+ @use "resume-rtl";
data/assets/css/cv.scss CHANGED
@@ -2,15 +2,15 @@
2
2
  ---
3
3
 
4
4
  // "Reset" styles and SCSS reusable components
5
- @use "../../_sass/normalize";
6
- @use "../../_sass/mixins";
7
- @use "../../_sass/variables";
5
+ @use "normalize";
6
+ @use "mixins";
7
+ @use "variables";
8
8
 
9
9
  // Generic site base & layout styles
10
- @use "../../_sass/base";
11
- @use "../../_sass/layout";
10
+ @use "base";
11
+ @use "layout";
12
12
 
13
13
  // Layouts
14
- @use "../../_sass/resume";
14
+ @use "resume";
15
15
 
16
- @use "../../_sass/all-pages";
16
+ @use "all-pages";
data/assets/css/main.scss CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  ---
3
3
  // "Reset" styles and SCSS reusable components
4
- @use "../../_sass/normalize";
5
- @use "../../_sass/profile";
6
- @use "../../_sass/all-pages";
4
+ @use "normalize";
5
+ @use "profile";
6
+ @use "all-pages";