This commit is contained in:
parent
4d38a4762a
commit
466dbc5af7
Binary file not shown.
After Width: | Height: | Size: 571 KiB |
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
import type { Settings } from "@matthiesenxyz/astro-ghostcms/api";
|
import type { Settings } from "@matthiesenxyz/astro-ghostcms/api";
|
||||||
import { ViewTransitions } from 'astro:transitions';
|
import { ViewTransitions } from 'astro:transitions';
|
||||||
|
import { AstroFont } from "astro-font";
|
||||||
|
|
||||||
export type Props = {
|
export type Props = {
|
||||||
title: string;
|
title: string;
|
||||||
|
@ -13,12 +14,20 @@ export type Props = {
|
||||||
const { description, permalink, image, settings, title } = Astro.props as Props;
|
const { description, permalink, image, settings, title } = Astro.props as Props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<AstroFont
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
config={[
|
||||||
<link
|
{
|
||||||
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"
|
src: [],
|
||||||
rel="stylesheet"
|
name: "Inter",
|
||||||
|
preload: false,
|
||||||
|
display: "swap",
|
||||||
|
selector: "html",
|
||||||
|
fallback: "sans-serif",
|
||||||
|
googleFontsURL: 'https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap',
|
||||||
|
},
|
||||||
|
]}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
---
|
---
|
||||||
import { getGhostImgPath } from "../utils";
|
import { getGhostImgPath } from "../utils";
|
||||||
import type { Settings } from "@matthiesenxyz/astro-ghostcms/api";
|
import type { Settings } from "@matthiesenxyz/astro-ghostcms/api";
|
||||||
|
import featureImgLocal from "../assets/publication-cover.jpg";
|
||||||
|
|
||||||
export type Props = {
|
export type Props = {
|
||||||
featureImg?: string;
|
featureImg?: string;
|
||||||
mainTitle?: string;
|
mainTitle?: string;
|
||||||
|
@ -9,7 +11,7 @@ export type Props = {
|
||||||
addClass?: string;
|
addClass?: string;
|
||||||
};
|
};
|
||||||
const {
|
const {
|
||||||
featureImg = "https://static.ghost.org/v4.0.0/images/publication-cover.jpg",
|
featureImg = featureImgLocal.src,
|
||||||
mainTitle = "",
|
mainTitle = "",
|
||||||
settings,
|
settings,
|
||||||
description = "",
|
description = "",
|
||||||
|
|
Loading…
Reference in New Issue