fix(formatter): fixed formatter max line length
This commit is contained in:
parent
45e6358a4c
commit
b5c3e41def
3 changed files with 10 additions and 39 deletions
|
|
@ -9,4 +9,5 @@ indent_size = 2
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
insert_final_newline = false
|
insert_final_newline = false
|
||||||
|
max_line_length = 150
|
||||||
|
|
@ -5,9 +5,7 @@ import TransFlagPanel from "../../layouts/TransFlagPanel.astro";
|
||||||
import Panel from "../../layouts/Panel.astro";
|
import Panel from "../../layouts/Panel.astro";
|
||||||
import "../../styles/blogIndex.scss";
|
import "../../styles/blogIndex.scss";
|
||||||
|
|
||||||
const latestPosts = (await getCollection("blog")).sort(
|
const latestPosts = (await getCollection("blog")).sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf());
|
||||||
(a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf(),
|
|
||||||
);
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<Main title="Blog">
|
<Main title="Blog">
|
||||||
|
|
@ -18,10 +16,7 @@ const latestPosts = (await getCollection("blog")).sort(
|
||||||
latestPosts.map((post) => {
|
latestPosts.map((post) => {
|
||||||
return (
|
return (
|
||||||
<a href={`/blog/${post.id}`} class="blog-post-link">
|
<a href={`/blog/${post.id}`} class="blog-post-link">
|
||||||
<Panel
|
<Panel title={`${post.data.title} - ${post.data.pubDate.toLocaleString()}`} customClass="blog-post-panel">
|
||||||
title={`${post.data.title} - ${post.data.pubDate.toLocaleString()}`}
|
|
||||||
customClass="blog-post-panel"
|
|
||||||
>
|
|
||||||
<p>{post.data.description}</p>
|
<p>{post.data.description}</p>
|
||||||
</Panel>
|
</Panel>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -15,50 +15,25 @@ import "../styles/Badge.scss";
|
||||||
</TransFlagPanel>
|
</TransFlagPanel>
|
||||||
<Panel title="bwa">
|
<Panel title="bwa">
|
||||||
<p>
|
<p>
|
||||||
Hai! I'm Riley! A <WavyText colour="transgender">transfem</WavyText> foxgirl
|
Hai! I'm Riley! A <WavyText colour="transgender">transfem</WavyText> foxgirl who likes programming & self-hosting who lives in the UK. Nice
|
||||||
who likes programming & self-hosting who lives in the UK. Nice to meet you meow!
|
to meet you meow! >^w^<
|
||||||
>^w^<
|
|
||||||
</p>
|
</p>
|
||||||
</Panel>
|
</Panel>
|
||||||
<Panel title="My Friens :3">
|
<Panel title="My Friens :3">
|
||||||
<div class="badgeBanner">
|
<div class="badgeBanner">
|
||||||
{
|
{FriendBadges.map((badge) => <Badge image={badge.image} url={badge.url} title={badge.title} alt={badge.alt} />)}
|
||||||
FriendBadges.map((badge) => (
|
|
||||||
<Badge
|
|
||||||
image={badge.image}
|
|
||||||
url={badge.url}
|
|
||||||
title={badge.title}
|
|
||||||
alt={badge.alt}
|
|
||||||
/>
|
|
||||||
))
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
</Panel>
|
</Panel>
|
||||||
<Panel title="Other Badges">
|
<Panel title="Other Badges">
|
||||||
<div class="badgeBanner">
|
<div class="badgeBanner">
|
||||||
{
|
{OtherBadges.map((badge) => <Badge image={badge.image} url={badge.url} title={badge.title} alt={badge.alt} />)}
|
||||||
OtherBadges.map((badge) => (
|
|
||||||
<Badge
|
|
||||||
image={badge.image}
|
|
||||||
url={badge.url}
|
|
||||||
title={badge.title}
|
|
||||||
alt={badge.alt}
|
|
||||||
/>
|
|
||||||
))
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
</Panel>
|
</Panel>
|
||||||
<Panel title="Webring!">
|
<Panel title="Webring!">
|
||||||
<p>
|
<p>
|
||||||
<a
|
<a href="https://tilde.linuxposting.xyz/ring.py?prev&foxgirlriley.neocities.org">🡠</a>
|
||||||
href="https://tilde.linuxposting.xyz/ring.py?prev&foxgirlriley.neocities.org"
|
|
||||||
>🡠</a
|
|
||||||
>
|
|
||||||
<a href="#" title="Coming soon">Linuxposting webring</a>
|
<a href="#" title="Coming soon">Linuxposting webring</a>
|
||||||
<a
|
<a href="https://tilde.linuxposting.xyz/ring.py?next&foxgirlriley.neocities.org">🡢</a>
|
||||||
href="https://tilde.linuxposting.xyz/ring.py?next&foxgirlriley.neocities.org"
|
|
||||||
>🡢</a
|
|
||||||
>
|
|
||||||
</p>
|
</p>
|
||||||
</Panel>
|
</Panel>
|
||||||
</Main>
|
</Main>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue