Skip to content

Commit

Permalink
CI test: update data files
Browse files Browse the repository at this point in the history
  • Loading branch information
rediris committed Nov 13, 2024
1 parent e11d97f commit 80af03b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 24 deletions.
18 changes: 3 additions & 15 deletions src/_data/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,23 +283,11 @@ msg:
instructor: Meet the Instructor
learning:
exam_success: |
<h2>You did it! 🎉</h2>
<p>Congratulations on passing the final exam!</p>
<p>Now you can share your achievement on social media. You can always access your credential from the <a href="GYM_LMS_URL/dashboard">Dashboard</a>.</p>
<div class="survey">
<p>Want to let us know how we’re doing? Take a moment to share your thoughts with us. Your feedback will help shape our future courses.</p>
<a class="btn" href="https://www.surveymonkey.com/s/JYJPMSS" target="_blank" rel="noopener">Take Survey</a>
</div>
<h2>You did it! 🎉</h2><p>Congratulations on passing the final exam!</p><p>Now you can share your achievement on social media. You can always access your credential from the <a href="GYM_LMS_URL/dashboard">Dashboard</a>.</p><div class="survey"><p>Want to let us know how we’re doing? Take a moment to share your thoughts with us. Your feedback will help shape our future courses.</p><a class="btn" href="https://www.surveymonkey.com/s/JYJPMSS" target="_blank" rel="noopener">Take Survey</a></div>
exam_failed_attempt: |
<h2>You’re Close!</h2>
<p>You didn't score high enough on the exam. The good news is that you still have one more chance to pass. This would be a great time to review the course material. Good luck!</p>
<h2>You’re Close!</h2><p>You didn't score high enough on the exam. The good news is that you still have one more chance to pass. This would be a great time to review the course material. Good luck!</p>
exam_failure: |
<h2>Darn.</h2>
<p>The bad news is that you didn’t pass the exam. But the good news is that we have plenty of other free courses.</p>
<div class="survey">
<p>In the meantime, please take a moment to share your thoughts with us. Your feedback will help shape our future courses!</p>
<a class="btn" href="https://www.surveymonkey.com/s/JYJPMSS" target="_blank" rel="noopener">Take Survey</a>
</div>
<h2>Darn.</h2><p>The bad news is that you didn’t pass the exam. But the good news is that we have plenty of other free courses.</p><div class="survey"><p>In the meantime, please take a moment to share your thoughts with us. Your feedback will help shape our future courses!</p><a class="btn" href="https://www.surveymonkey.com/s/JYJPMSS" target="_blank" rel="noopener">Take Survey</a></div>
theme:
custom: "<p>This is an example of a custom message for anywhere in the theme.</p>"
html:
Expand Down
6 changes: 3 additions & 3 deletions src/_data/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = async function() {
type: "json"
});

let markets2 = await EleventyFetch(MARKET_FEED, {
let markets = await EleventyFetch(MARKET_FEED, {
duration: ENV === ('dev' || 'development' || 'default' || 'local') ? 0 : '24h',
type: "json"
});
Expand All @@ -45,7 +45,7 @@ module.exports = async function() {

// const feed = feed1.items.concat(feed2.items);

// console.log(markets2)
// console.log(markets)

return {
// live values
Expand All @@ -70,7 +70,7 @@ module.exports = async function() {
}
},
// markets: markets.items,
markets2: markets2,
markets: markets,

// blog: feed,
};
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/modules/api-config.njk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"courses": {{ courses | stringify | safe }}, #}
"bios": "",
"courses": "",
"markets": {{ data.markets2 | stringify | safe }},
"markets": {{ data.markets | stringify | safe }},
"paths": {{ config.paths | stringify | safe }},
"colors": {{ config.colors | stringify | safe }},
"css": {{ config.css | stringify | safe }}
Expand Down
10 changes: 5 additions & 5 deletions src/_includes/modules/jobs.njk
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,31 @@
<hr>

<optgroup label="Australia">
{%- for market in data.markets2 -%}{%- if market['regions'][0] == 'Australia' -%}
{%- for market in data.markets -%}{%- if market['regions'][0] == 'Australia' -%}
<option data-slug="{{ market.id }}" value="{{ market.cloudwall_id }}">{{ market.name }}</option>
{%- endif -%}{%- endfor -%}
</optgroup>

<optgroup label="Canada">
{%- for market in data.markets2 -%}{%- if market.country == 'Canada' -%}
{%- for market in data.markets -%}{%- if market.country == 'Canada' -%}
<option data-slug="{{ market.id }}" value="{{ market.cloudwall_id }}">{{ market.name }}</option>
{%- endif -%} {%- endfor -%}
</optgroup>

<optgroup label="Europe">
{%- for market in data.markets2 -%}{%- if market['regions'][0] == 'Europe' -%}
{%- for market in data.markets -%}{%- if market['regions'][0] == 'Europe' -%}
<option data-slug="{{ market.id }}" value="{{ market.cloudwall_id }}">{{ market.name }}</option>
{%- endif -%}{%- endfor -%}
</optgroup>

<optgroup label="Japan">
{%- for market in data.markets2 -%}{%- if market['regions'][0] == 'Japan' -%}
{%- for market in data.markets -%}{%- if market['regions'][0] == 'Japan' -%}
<option data-slug="{{ market.id }}" value="{{ market.cloudwall_id }}">{{ market.name }}</option>
{%- endif -%}{%- endfor -%}
</optgroup>

<optgroup label="United States">
{%- for market in data.markets2 -%}{%- if market['regions'][0] == 'North America' and market.country != 'Canada' -%}
{%- for market in data.markets -%}{%- if market['regions'][0] == 'North America' and market.country != 'Canada' -%}
<option data-slug="{{ market.id }}" value="{{ market.cloudwall_id }}">{{ market.name }}</option>
{%- endif -%}{%- endfor -%}
</optgroup>
Expand Down

0 comments on commit 80af03b

Please sign in to comment.