Skip to content

Commit e47a193

Browse files
committed
chore: fix broken blog post links and CSS
1 parent 743d7ea commit e47a193

File tree

3 files changed

+23
-28
lines changed

3 files changed

+23
-28
lines changed

.github/workflows/deploy-website.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
name: Deploy Website to GitHub Pages
22

33
on:
4-
# Trigger the workflow on pushes to master/main that affect the website
54
push:
65
branches: [ master, main ]
76
paths:
87
- 'infra/website/**'
98
# Allow manual triggers
109
workflow_dispatch:
1110

12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1311
permissions:
1412
contents: read
1513
pages: write
1614
id-token: write
1715

18-
# Allow only one concurrent deployment
1916
concurrency:
2017
group: "pages"
2118
cancel-in-progress: true

infra/website/src/pages/index.astro

+14-15
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ import BaseLayout from '../layouts/BaseLayout.astro';
33
import Navigation from '../components/Navigation.astro';
44
import { Code } from 'astro/components';
55
6+
const posts = await Astro.glob('../../docs/blog/*.md');
7+
const sortedPosts = posts.sort((a, b) => {
8+
const dateA = new Date(a.frontmatter.date || '2000-01-01');
9+
const dateB = new Date(b.frontmatter.date || '2000-01-01');
10+
return dateB.getTime() - dateA.getTime();
11+
}).slice(0, 3);
12+
613
const codeString = `from feast import FeatureStore
714
815
# Initialize the feature store
@@ -236,21 +243,13 @@ features = store.get_online_features(
236243
<h3 class="integrations-subtitle text-smooth text-center">THE LATEST FROM FEAST</h3>
237244

238245
<div class="blog-grid">
239-
<a href="#" class="blog-post">
240-
<div class="blog-type">Blog</div>
241-
<h4 class="blog-title">Learn how to use Feast with Denormalized</h4>
242-
<p class="blog-excerpt">Learn how to use Feast with Denormalized to build real-time features for ML and AI.This article was originally posted on…</p>
243-
</a>
244-
<a href="#" class="blog-post">
245-
<div class="blog-type">Blog</div>
246-
<h4 class="blog-title">Faster Feature Transformations in Feast</h4>
247-
<p class="blog-excerpt">Thank you to Shuchu Han and Francisco Javier Arceo for their contributions evaluating the latency of transformation for On Demand…</p>
248-
</a>
249-
<a href="#" class="blog-post">
250-
<div class="blog-type">Blog</div>
251-
<h4 class="blog-title">Feast Launches Role Based Access Control (RBAC)</h4>
252-
<p class="blog-excerpt">Feast is proud to introduce Role-Based Access Control (RBAC), a game-changing feature for secure and scalable feature store management. With…</p>
253-
</a>
246+
{sortedPosts.map((post) => (
247+
<a href={`/blog/${post.file.split('/').pop().replace('.md', '')}`} class="blog-post">
248+
<div class="blog-type">Blog</div>
249+
<h4 class="blog-title">{post.frontmatter.title}</h4>
250+
<p class="blog-excerpt">{post.frontmatter.description}</p>
251+
</a>
252+
))}
254253
</div>
255254
</div>
256255
</section>

infra/website/src/styles/global.css

+9-10
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ main::before {
755755
/* CTA section */
756756
.cta-section {
757757
padding: calc(var(--spacing-lg) * 0.5) 0 calc(var(--spacing-lg) * 0.75) 0;
758-
margin: 0;
758+
margin: 0 0 var(--spacing-lg) 0;
759759
border-bottom: 1px solid var(--border-color);
760760
}
761761

@@ -771,20 +771,15 @@ main::before {
771771
text-align: center;
772772
position: relative;
773773
margin: 0;
774-
min-height: 300px;
774+
min-height: 200px;
775775
display: flex;
776776
flex-direction: column;
777777
justify-content: center;
778+
align-items: center;
778779
}
779780

780781
.cta-tile:not(:last-child)::after {
781-
content: '';
782-
position: absolute;
783-
right: 0;
784-
top: 0;
785-
bottom: 0;
786-
width: 1px;
787-
background-color: var(--border-color);
782+
display: none;
788783
}
789784

790785
.cta-title {
@@ -819,6 +814,8 @@ main::before {
819814
transition: all 0.2s ease;
820815
text-decoration: none;
821816
display: inline-block;
817+
min-width: 140px;
818+
max-width: 180px;
822819
}
823820

824821
.cta-button:hover {
@@ -829,7 +826,9 @@ main::before {
829826
/* Bordered container */
830827
.bordered-container {
831828
position: relative;
832-
border: 1px solid var(--border-color);
829+
border-top: 1px solid var(--border-color);
830+
border-left: 1px solid var(--border-color);
831+
border-right: 1px solid var(--border-color);
833832
margin: 52px auto 0;
834833
max-width: calc(var(--content-max-width) - (var(--content-padding) * 2));
835834
box-sizing: border-box;

0 commit comments

Comments
 (0)