Skip to content

Commit

Permalink
resolve warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Nelson committed Aug 15, 2023
1 parent 3914436 commit f16200e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 36 deletions.
6 changes: 4 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import AutoImport from "astro-auto-import";
import { defineConfig } from "astro/config";
import remarkCollapse from "remark-collapse";
import remarkToc from "remark-toc";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
import config from "./src/config/config.json";

// https://astro.build/config
Expand Down Expand Up @@ -47,10 +49,10 @@ export default defineConfig({
test: "Table of contents",
},
],
'remark-math',
remarkMath,
],
rehypePlugins: [
['rehype-katex', {
[rehypeKatex, {
// Katex plugin options
}]
],
Expand Down
34 changes: 0 additions & 34 deletions src/layouts/Base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ import Footer from "@/partials/Footer.astro";
import Header from "@/partials/Header.astro";
import "@/styles/main.scss";
// font families
const pf = theme.fonts.font_family.primary;
const sf = theme.fonts.font_family.secondary;
// types for frontmatters
export interface Props {
title?: string;
Expand Down Expand Up @@ -46,36 +42,6 @@ const { title, meta_title, description, image, noindex, canonical } =
<meta name="generator" content={Astro.generator} />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<!-- fonts -->
<link
rel="preload"
href="/fonts/open-sans/open-sans-400.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>
<link
rel="preload"
href="/fonts/open-sans/open-sans-600.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>
<link
rel="preload"
href="/fonts/cormorant/cormorant-500.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>
<link
rel="preload"
href="/fonts/cormorant/cormorant-700.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>

<!-- responsive meta -->
<meta
name="viewport"
Expand Down

0 comments on commit f16200e

Please sign in to comment.