Skip to content

Commit 638f02c

Browse files
committed
feat: re-order blog elements
1 parent e46db49 commit 638f02c

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

.astro/data-store.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

content/blog/lorem_ipsum.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Lorem ipsum
33
description: "Discover Explainer is a tool that helps you create beautiful, responsive, and accessible web documentation using Astro. It's built with Astro, Tailwind CSS, and TypeScript."
4-
permalink: welcome
4+
permalink: lorem-ipsum
55
authors:
66
- leadcode_dev
77
# thumbnail: https://github-production-user-asset-6210df.s3.amazonaws.com/904724/261574805-5af726c5-0113-4676-9ee9-c464393caee0.png

content/docs/framework/_default.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ collection:
1313
- routing: false
1414
- configuration: true
1515
- docs: true
16-
- deploy: false
1716
- blog: true
17+
- deploy: false
1818
---

src/lib/plugins/blog-list/BlogListWrapper.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const itemPerLine = {
3737
{
3838
posts
3939
.filter((post) => post.id !== current)
40+
.reverse()
4041
.map((post) => (
4142
<a
4243
href={`/blog/${post.data.permalink}`}

src/pages/docs/[...slug].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const { element } = Astro.props;
2929
const { Content, headings } = await render(element);
3030
3131
const issueUrl = config.repository + "/issues/new";
32-
const repositoryUrl = config.repository + "/" + element.filePath;
32+
const repositoryUrl = config.repository + "/blob/main/" + element.filePath;
3333
3434
const availableHeadings = headings.filter((heading) =>
3535
[2, 3].includes(heading.depth),

0 commit comments

Comments
 (0)