fix: use html lang

This commit is contained in:
eggy 2023-04-18 19:55:55 -04:00
parent 9d55a16040
commit 304c9d6f36
2 changed files with 28 additions and 22 deletions

View File

@ -7,8 +7,9 @@
This site is statically generated using This site is statically generated using
<a href="https://v3.nuxtjs.org">Nuxt.js</a> with the help of templates and <a href="https://v3.nuxtjs.org">Nuxt.js</a> with the help of templates and
Markdown because really, writing HTML by hand is tedious and I don't Markdown because really, writing HTML by hand is tedious and I don't
know why I ever tried and its source is available know why I ever tried and its
<a href="https://github.com/potatoeggy/public">here</a>. <a href="https://github.com/potatoeggy/public">source is available here</a
>.
</p> </p>
<!-- i could make this a list but god i'm so tired with nuxt --> <!-- i could make this a list but god i'm so tired with nuxt -->
<div class="flex justify-around flex-wrap gap-8 items-center"> <div class="flex justify-around flex-wrap gap-8 items-center">

View File

@ -2,6 +2,31 @@ import { defineNuxtConfig } from "nuxt/config";
import svgLoader from "vite-svg-loader"; import svgLoader from "vite-svg-loader";
// https://v3.nuxtjs.org/api/configuration/nuxt.config // https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({ export default defineNuxtConfig({
app: {
head: {
htmlAttrs: {
lang: "en",
},
meta: [
{ name: "viewport", content: " width=device-width,initial-scale=1" },
],
link: [
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
{
rel: "stylesheet",
href: "https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css",
},
],
script: [
{
defer: true,
src: "/script.js",
hid: "stupidEmergencyScript",
type: "module",
},
],
},
},
modules: [ modules: [
"@nuxt/content", "@nuxt/content",
"@nuxtjs/tailwindcss", "@nuxtjs/tailwindcss",
@ -28,26 +53,6 @@ export default defineNuxtConfig({
vite: { vite: {
plugins: [svgLoader()], plugins: [svgLoader()],
}, },
head: {
meta: [
{ name: "viewport", content: " width=device-width,initial-scale=1" },
],
link: [
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
{
rel: "stylesheet",
href: "https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css",
},
],
script: [
{
defer: true,
src: "/script.js",
hid: "stupidEmergencyScript",
type: "module",
},
],
},
content: { content: {
documentDriven: false, documentDriven: false,
highlight: { highlight: {