Compare commits

...

11 Commits

Author SHA1 Message Date
reuterShawn
64567e0441 Initial commit 2024-08-17 22:53:49 -05:00
Maxi Ferreira
17feb86655
Update README.md 2023-12-06 08:58:54 -08:00
Maxi Ferreira
a8aec707dc Updated to Astro 4 2023-12-05 17:15:44 -08:00
Maxi Ferreira
5c2ef4127a CSS Updates and View Transitions 2023-12-05 16:40:04 -08:00
Maxi Ferreira
795d1e8c13
Merge pull request #11 from hobthross/main
Works with Astro 3. Fixes #10. Fixes #4.
2023-12-05 16:13:17 -08:00
Rachel Willmer
357df29de0 Turn devDependencies into dependencies to fix dependency issues 2023-10-04 17:01:10 +01:00
Rachel Willmer
c1431a4d7e Works with Astro 3 2023-10-04 09:03:46 +01:00
Maxi Ferreira
e15aebe3cd
Merge pull request #5 from Exerra/main
Fixed [slug].astro not giving correct permalink
2023-03-19 08:42:07 -07:00
Maxi Ferreira
dd38a2feeb
Merge pull request #2 from swapnilmishra/main
Fix markdown table not rendering issue
2023-03-19 08:41:08 -07:00
Exerra
364f6ac2f0
Fixed [slug].astro not giving correct permalink 2022-11-19 19:43:42 +02:00
Swapnil Mishra
7972561808 Fix markdown table not rendering issue
- markdown table rendering is broken because of using `rehypePlugins` in astro config.
  This is due to the fact that enabling custom `remarkPlugins` or `rehypePlugins` will remove `remark-gfm`, `remark-smartypants` which are built-in plugins and we need to explicitly add these plugins.
- added `remark-gfm` and `remark-smartypants` to fix this
2022-08-25 16:39:55 +02:00
24 changed files with 4659 additions and 7652 deletions

View File

@ -18,7 +18,7 @@ npm init astro -- --template Charca/astro-blog-template
## ✨ Features:
- ✅ Astro 1.0
- ✅ Astro 4.0
- ✅ Dark Mode
- ✅ Full Markdown support
- ✅ SEO-friendly setup with canonical URLs and OpenGraph data

View File

@ -1,6 +1,9 @@
import { defineConfig } from 'astro/config'
import svelte from '@astrojs/svelte'
import mdx from '@astrojs/mdx'
import remarkGfm from 'remark-gfm'
import remarkSmartypants from 'remark-smartypants'
import rehypeExternalLinks from 'rehype-external-links'
// https://astro.build/config
export default defineConfig({
@ -10,9 +13,10 @@ export default defineConfig({
shikiConfig: {
theme: 'nord',
},
remarkPlugins: [remarkGfm, remarkSmartypants],
rehypePlugins: [
[
'rehype-external-links',
rehypeExternalLinks,
{
target: '_blank',
},

12183
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -9,13 +9,13 @@
"preview": "astro preview",
"astro": "astro"
},
"devDependencies": {
"@astrojs/mdx": "^0.8.3",
"@astrojs/svelte": "^1.0.0",
"astro": "^1.0.3",
"rehype-external-links": "^2.0.0"
},
"dependencies": {
"reading-time": "^1.5.0"
"@astrojs/mdx": "^2.0.0",
"@astrojs/svelte": "^5.0.0",
"astro": "^4.0.1",
"reading-time": "^1.5.0",
"rehype-external-links": "^3.0.0",
"remark-gfm": "^4.0.0",
"remark-smartypants": "^2.0.0"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 KiB

BIN
public/assets/reuterdev.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 387 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -1,14 +1,15 @@
---
import { ViewTransitions } from 'astro:transitions'
import '../styles/fonts.css'
import '../styles/global.css'
export interface Props {
title: string;
description: string;
permalink: string;
title: string
description: string
permalink: string
}
const { title, description, permalink } = Astro.props;
const { title, description, permalink } = Astro.props
const socialUrl = Astro.site.href + 'assets/social.png'
---
@ -17,7 +18,6 @@ const socialUrl = Astro.site.href + 'assets/social.png'
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<!-- Primary Meta Tags -->
<title>{title}</title>
<meta name="title" content={title} />
@ -37,13 +37,18 @@ const socialUrl = Astro.site.href + 'assets/social.png'
<meta property="twitter:description" content={description} />
<meta property="twitter:image" content={socialUrl} />
<ViewTransitions />
<!-- This is intentionally inlined to avoid FOUC -->
<script>
const root = document.documentElement;
const theme = localStorage.getItem('theme');
if (theme === 'dark' || (!theme) && window.matchMedia('(prefers-color-scheme: dark)').matches) {
root.classList.add('theme-dark');
<script is:inline>
const root = document.documentElement
const theme = localStorage.getItem('theme')
if (
theme === 'dark' ||
(!theme && window.matchMedia('(prefers-color-scheme: dark)').matches)
) {
root.classList.add('theme-dark')
} else {
root.classList.remove('theme-dark');
root.classList.remove('theme-dark')
}
</script>

View File

@ -16,6 +16,6 @@ const { current = '' } = Astro.props;
</style>
<header>
<Logo />
<Logo/>
<Nav current={current} />
</header>

View File

@ -1,10 +1,32 @@
<style>
img {
display: block;
width: 75px;
}
@media screen and (max-width: 520px) {
img {
display: none;
}
}
.light {
visibility: hidden;
}
.dark {
visibility: hidden;
}
</style>
<a href="/">
<img alt="Blog Logo" src="/assets/logo.webp" width="75" height="50">
<div class="light">
<img alt="Blog Logo" src="/assets/reuterLight3.png" width="200" height="200" />
</div>
<!--
<div class="dark">
<img alt="Blog Logo" src="/assets/reuterDark.png" width="200" height="200" />
</div> -->
</a>

View File

@ -1,6 +1,6 @@
---
import ThemeToggleButton from './ThemeToggleButton.svelte';
const { current = '' } = Astro.props;
var { current = '' } = Astro.props;
---
<style>

View File

@ -200,3 +200,5 @@ Incididunt in culpa cupidatat mollit cillum qui proident sit. In cillum aliquip
<iframe width="100%" height="400" src="https://www.youtube.com/embed/PCp2iXA1uLE" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Reprehenderit non eu quis in ad elit esse qui aute id [incididunt](#) dolore cillum. Esse laboris consequat dolor anim exercitation tempor aliqua deserunt velit magna laboris. Culpa culpa minim duis amet mollit do quis amet commodo nulla irure.
[Hello World](/blog/hello-world)

View File

@ -9,7 +9,11 @@ const permalink = `${Astro.site.href}about`;
<BaseLayout title={title} description={description} permalink={permalink} current="about">
<div class="container">
<h1>About</h1>
<figure class="about-image">
<p>
Reuter
</p>
<!-- <figure class="about-image">
<img src="/assets/about-illustration.webp" alt="Illustration of a notebook" width="330">
<figcaption>
Illustration by
@ -17,13 +21,7 @@ const permalink = `${Astro.site.href}about`;
from
<a href="https://icons8.com/illustrations" target="_blank" rel="noopener">Ouch!</a>
</figcaption>
</figure>
<p>Text placeholder via <a href="https://jeffsum.com/" target="_blank">Jeffsum</a>.</p>
<p>So you two dig up, dig up dinosaurs? What do they got in there? King Kong? My dad once told me, laugh and the world laughs with you, Cry, and I'll give you something to cry about you little bastard! Life finds a way. God creates dinosaurs. God destroys dinosaurs. God creates Man. Man destroys God. Man creates Dinosaurs.</p>
<p>You really think you can fly that thing? You know what? It is beets. I've crashed into a beet truck. Forget the fat lady! You're obsessed with the fat lady! Drive us out of here! Is this my espresso machine? Wh-what is-h-how did you get my espresso machine?</p>
<p>Hey, you know how I'm, like, always trying to save the planet? Here's my chance. Hey, take a look at the earthlings. Goodbye! I was part of something special. Just my luck, no ice. You're a very talented young man, with your own clever thoughts and ideas. Do you need a manager?</p>
<p>Jaguar shark! So tell me - does it really exist? This thing comes fully loaded. AM/FM radio, reclining bucket seats, and... power windows. Yes, Yes, without the oops! You're a very talented young man, with your own clever thoughts and ideas. Do you need a manager?</p>
<p>Yes, Yes, without the oops! Do you have any idea how long it takes those cups to decompose. They're using our own satellites against us. And the clock is ticking. Do you have any idea how long it takes those cups to decompose. My dad once told me, laugh and the world laughs with you, Cry, and I'll give you something to cry about you little bastard!</p>
</figure> -->
</div>
</BaseLayout>

View File

@ -14,7 +14,7 @@ export async function getStaticPaths() {
const { Content, frontmatter } = Astro.props.post;
const { title, description, publishDate } = frontmatter;
const { slug, readingTime } = getPostData(Astro.props.post);
const permalink = `${Astro.site.href}${slug}`;
const permalink = `${Astro.site.href}blog/${slug}`;
---
<BaseLayout title={title} description={description} permalink={permalink} current="blog">

View File

@ -9,11 +9,12 @@ const permalink = Astro.site.href;
<BaseLayout title={title} description={description} permalink={permalink}>
<div class="home-container">
<div class="home-copy">
<h1>Welcome to your new Astro Blog</h1>
<p>Check out the docs on <a href="https://www.github.com/Charca/astro-blog-template" target="_blank" rel="noopener">GitHub</a> to get started.</p>
<h1>Welcome to Reuter Development</h1>
<p>Where we make a clearing for you, cutting down the obstacles in your path.
</div>
<div class="hero-image-container">
<!-- <div class="hero-image-container">
<picture>
<source srcset="/assets/home-illustration.webp" media="(min-width: 600px)">
<img class="hero-image" alt="Illustration of person reading a book" src="/assets/home-illustration-small.webp" width="550" height="466">
@ -25,9 +26,18 @@ const permalink = Astro.site.href;
<a href="https://icons8.com/illustrations" target="_blank" rel="noopener">Ouch!</a>
</p>
</div>
</div>
</div> -->
</BaseLayout>
<h1>What defines Reuter Development</h1>
<ul>
<li>Client-focused</li>
<li>Strong Center</li>
<li></li>
</ul>
<style>
.home-container {
align-items: center;

View File

@ -1,4 +1,4 @@
:root {
:root :theme-light{
--background-body: #fff;
--text-main: #36393b;
--text-secondary: #6b6f72;
@ -14,6 +14,17 @@
--primary-color: #548e9b;
}
html {
overflow-y: scroll;
}
@supports (scrollbar-gutter: stable) {
html {
overflow-y: auto;
scrollbar-gutter: stable;
}
}
*,
*:before,
*:after {