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 b50e4c6 commit 5f0171a
Show file tree
Hide file tree
Showing 2 changed files with 5 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 @@ -8,6 +8,8 @@ import { defineConfig } from "astro/config";
import remarkCollapse from "remark-collapse";
import remarkToc from "remark-toc";
import config from "./src/config/config.json";
import rehypeKatex from "rehype-katex";
import remarkMath from "remark-math";

// https://astro.build/config
export default defineConfig({
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
35 changes: 1 addition & 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 All @@ -30,6 +26,7 @@ const { title, meta_title, description, image, noindex, canonical } =
<head>
<!-- favicon -->
<link rel="shortcut icon" href={config.site.favicon} />

<!-- theme meta -->
<meta name="theme-name" content="pages" />
<meta name="msapplication-TileColor" content="#000000" />
Expand All @@ -46,36 +43,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/noto-sans/noto-sans-400.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>
<link
rel="preload"
href="/fonts/noto-sans/noto-sans-600.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>
<link
rel="preload"
href="/fonts/noto-serif/noto-serif-500.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>
<link
rel="preload"
href="/fonts/noto-serif/noto-serif-700.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>

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

0 comments on commit 5f0171a

Please sign in to comment.