Skip to content

Commit

Permalink
chore: update tagline
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jan 27, 2024
1 parent 8b70caa commit 069200e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions src/components/intro.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { Image } from "astro:assets";
<div class="relative">
<ContentSection title="Configure less, code more" id="intro">
<Fragment slot="lead">
AstroNvim is an aesthetic and feature-rich Neovim configuration that
focuses on
AstroNvim is an aesthetically pleasing and feature-rich Neovim
configuration that focuses on
<span class="text-primary">extensibility</span> and
<span class="text-primary">usability</span>.
</Fragment>
Expand Down
38 changes: 19 additions & 19 deletions src/components/metadata.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ const { title = "AstroNvim" } = Astro.props;

<AstroSeo
title={title}
description="An aesthetic and feature-rich neovim config that is extensible and easy to use with a great set of plugins"
description="An aesthetically pleasing and feature-rich neovim config that is extensible and easy to use with a great set of plugins"
canonical="https://astronvim.com"
openGraph={{
url: "https://astronvim.com",
title: title,
description:
"An aesthetic and feature-rich neovim config that is extensible and easy to use with a great set of plugins",
"An aesthetically pleasing and feature-rich neovim config that is extensible and easy to use with a great set of plugins",
images: [
{
url: "https://astronvim.com/logo/banner.png",
Expand Down Expand Up @@ -60,24 +60,24 @@ const { title = "AstroNvim" } = Astro.props;

<!-- initialize theme -->
<script is:inline>
const rawThemeSaved = localStorage.getItem("raw_theme");
document.documentElement.dataset.raw_theme = rawThemeSaved
? rawThemeSaved
: "auto";
const rawThemeSaved = localStorage.getItem("raw_theme");
document.documentElement.dataset.raw_theme = rawThemeSaved
? rawThemeSaved
: "auto";

const updateTheme = () => {
const theme = document.documentElement.dataset.raw_theme;
document.documentElement.dataset.theme =
theme === "auto"
? window.matchMedia("(prefers-color-scheme: dark)").matches
? "dark"
: "light"
: theme;
};
const updateTheme = () => {
const theme = document.documentElement.dataset.raw_theme;
document.documentElement.dataset.theme =
theme === "auto"
? window.matchMedia("(prefers-color-scheme: dark)").matches
? "dark"
: "light"
: theme;
};

window
.matchMedia("(prefers-color-scheme: dark)")
.addEventListener("change", updateTheme);
window
.matchMedia("(prefers-color-scheme: dark)")
.addEventListener("change", updateTheme);

updateTheme();
updateTheme();
</script>

0 comments on commit 069200e

Please sign in to comment.