Updated
This commit is contained in:
parent
51161808ae
commit
ed7f12cac4
22 changed files with 162 additions and 113 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import '../styles/Background.sass'
|
||||
import { Show, createSignal } from 'solid-js'
|
||||
import fs from 'fs'
|
||||
import webpPath from '../images/background.avif'
|
||||
import webpPath from '../images/background.webp'
|
||||
import avifPath from '../images/background.avif'
|
||||
import noBackground from '../images/no-background.webp'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,18 @@
|
|||
import * as toml from 'toml'
|
||||
import * as fs from 'fs'
|
||||
|
||||
const config = toml.parse(fs.readFileSync('configs/config.site.toml', 'utf8'))
|
||||
|
||||
interface Props {
|
||||
year: string
|
||||
name: string
|
||||
}
|
||||
|
||||
|
||||
export default (props: Props) => {
|
||||
return (
|
||||
<>
|
||||
<span>
|
||||
Copyright © {props.year} {props.name} All Rights Reserved.
|
||||
</span>
|
||||
</>
|
||||
<span>
|
||||
Copyright © {config.copyright.year} {config.copyright.name} All Rights Reserved.
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
import '../styles/HTML.sass'
|
||||
import * as fs from "fs";
|
||||
import * as toml from 'toml';
|
||||
import { type JSXElement, Show } from 'solid-js'
|
||||
import background1 from '../images/background.avif'
|
||||
import background2 from '../images/background.webp'
|
||||
|
||||
interface Props {
|
||||
title: string
|
||||
name: string
|
||||
description: string
|
||||
children: JSXElement
|
||||
font?: 'roboto' | 'inter' | 'montserrat' | 'open-sans' | 'public-sans'
|
||||
preloadBackground?: boolean
|
||||
author: string
|
||||
}
|
||||
|
||||
export default (props: Props) => {
|
||||
const config = toml.parse(fs.readFileSync('configs/config.site.toml', 'utf8'))
|
||||
return (
|
||||
<>
|
||||
<html lang="en">
|
||||
|
|
@ -21,14 +21,19 @@ export default (props: Props) => {
|
|||
<base href="/" />
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
<meta name="name" content={props.name} />
|
||||
<meta name="description" content={props.description} />
|
||||
<meta name="title" property="og:title" content={props.name} />
|
||||
<meta name="name" content={config.website.name} />
|
||||
<meta name="description" content={config.website.description} />
|
||||
<meta name="title" property="og:title" content={config.website.name} />
|
||||
<meta name="keywords" content="HTML, CSS, JavaScript" />
|
||||
<meta name="author" content={props.author} />
|
||||
<meta property="og:description" content={props.description} />
|
||||
<meta name="developer" content={config.website.developer} />
|
||||
<meta name="designer" content={config.website.designer} />
|
||||
<meta property="og:description" content={config.website.description} />
|
||||
<meta property="og:type" content="website" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
|
||||
<link rel="icon" type="image/png" href="/favicon.png" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
||||
<link rel="manifest" href="/site.webmanifest" />
|
||||
<Show when={props.font}>
|
||||
<link rel="preconnect" href="https://cdn.jsdelivr.net" />
|
||||
</Show>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue