Skip to content

Commit

Permalink
Tidy up following Ell's review
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinEtchells committed Dec 16, 2024
1 parent 89e59c0 commit dd97bc0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
3 changes: 0 additions & 3 deletions src/_data/blogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ module.exports = async () => {
}
// convert carousel items
if (component.type === "carousel" && Array.isArray(component.carouselItems)) {
component.carouselItems.forEach((item) => {
item.carouselContent = item.carouselContent;
});
const items = Array.isArray(component.carouselItems) ? component.carouselItems.map((item) => item.carouselContent) : [];
component.carouselItems = JSON.stringify(items);
}
Expand Down
29 changes: 1 addition & 28 deletions src/blog.njk
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ permalink: "blogs/{{ blog.title | slugify }}/"


{# Custom blog components #}
<script type="module" src="/js/lit-components/blog-carousel.mjs"></script>
{% if blog.title == "The i.AI Taxonomy" %}
{% from "./_includes/blog-components/project-types.njk" import projectTypes %}
{{ projectTypes() }}
Expand All @@ -101,34 +102,6 @@ permalink: "blogs/{{ blog.title | slugify }}/"
{% endif %}


{# This can be removed once added to the CMS #}
{% set carouselItems = [
{
carouselContent: '<h4 class="iai-blog-carousel__author"><span>Ben Rowell</span><span> - Job title</span></h4><span class="iai-blog-carousel__text">' + "I was drawn to i.AI because I wanted to make a real difference in people's lives, and I found a team of brilliant minds who share that passion. It's exciting that I get to work with cutting-edge technology while innovating services that have the potential to positively impact people up and down the country; that combination is pretty special.</span>"
},
{
carouselContent: '<h4 class="iai-blog-carousel__author"><span>Jude Webb</span><span> - Job title</span></h4><span class="iai-blog-carousel__text">' + "To experiment and test with how we build digital products. AI products are not as predictable as more traditional products, so what do we do the same and what do we need to learn to do differently?</span>"
},
{
carouselContent: '<h4 class="iai-blog-carousel__author"><span>Liam Wilkinson</span><span> - Job title</span></h4><span class="iai-blog-carousel__text">' + "To have impact outside of a quarterly earnings report!</span>"
},
{
carouselContent: '<h4 class="iai-blog-carousel__author"><span>James Lowe</span><span> - Job title</span></h4><span class="iai-blog-carousel__text">' + "I wanted to build AI products that made a positive impact, and believed the best way to do this was inside government working in an empowered and highly skilled team.</span>"
},
{
carouselContent: '<h4 class="iai-blog-carousel__author"><span>Charlotte Ryall</span><span> - Job title</span></h4><span class="iai-blog-carousel__text">' + "To be part of an exciting, innovative team that I could bring a user centred design perspective to. There are incredible minds and expertise in the technical AI space. I hope to bring how we make products useful, useable and delightful for the people who are using the tools we create.</span>"
},
{
carouselContent: '<h4 class="iai-blog-carousel__author"><span>Nina Menezes</span><span> - Job title</span></h4><span class="iai-blog-carousel__text">' + "It was an exciting opportunity to work in a technical team, working on projects for the public good.</span>"
},
{
carouselContent: '<h4 class="iai-blog-carousel__author"><span>Victoria Bew</span><span> - Job title</span></h4><span class="iai-blog-carousel__text">' + "To take what I know about social innovation and government strategy, and apply it to one of the biggest opportunity areas of modern life - Artificial Intelligence.</span>"
}
] %}
{#<blog-carousel title="Testing" items="{{ '[\"<b>Testing</b><p>dsgsagsa</p>\", \"<b>Testing</b><p>dsgsagsa</p>\"]' }}"></blog-carousel>#}
<script type="module" src="/js/lit-components/blog-carousel.mjs"></script>


{% if blog.contentPart2 %}
<div class="iai-blog-content__inner-container">
{{ blog.contentPart2 | richTextToHTML | safe }}
Expand Down

0 comments on commit dd97bc0

Please sign in to comment.