Remove metagen plugin
This commit is contained in:
parent
54466dace7
commit
cfd77e4af2
|
@ -3,7 +3,6 @@ import pluginRss from "@11ty/eleventy-plugin-rss";
|
|||
import pluginEleventyNavigation from "@11ty/eleventy-navigation";
|
||||
import pluginSyntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight";
|
||||
import pluginEmbedEverything from "eleventy-plugin-embed-everything";
|
||||
import pluginMetagen from "eleventy-plugin-metagen";
|
||||
import pluginWordcount from "eleventy-plugin-wordcount-extended";
|
||||
import pluginTOC from "@uncenter/eleventy-plugin-toc";
|
||||
|
||||
|
@ -20,7 +19,6 @@ export default function(eleventyConfig) {
|
|||
eleventyConfig.addPlugin(pluginEleventyNavigation);
|
||||
eleventyConfig.addPlugin(pluginSyntaxHighlight, { preAttributes: { tabindex: 0 } });
|
||||
eleventyConfig.addPlugin(pluginEmbedEverything, { add: ['soundcloud'] });
|
||||
eleventyConfig.addPlugin(pluginMetagen);
|
||||
eleventyConfig.addPlugin(pluginWordcount);
|
||||
eleventyConfig.addPlugin(pluginTOC, {
|
||||
tags: ['h2', 'h3', 'h4', 'h5', 'h6'],
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
"@uncenter/eleventy-plugin-toc": "^1.0.3",
|
||||
"@zachleat/details-utils": "^2.0.2",
|
||||
"eleventy-plugin-embed-everything": "^1.19.0",
|
||||
"eleventy-plugin-metagen": "^1.8.3",
|
||||
"eleventy-plugin-wordcount-extended": "^0.2.1",
|
||||
"install": "^0.13.0",
|
||||
"markdown-it-anchor": "^9.2.0",
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ sitemeta.siteLanguage }}" dir="ltr" id="top">
|
||||
<head>
|
||||
{# Meta data #}
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
||||
{# Open Graph Meta #}
|
||||
{% block metaTitle %}
|
||||
<meta property="og:title" content="{{ title if title else sitemeta.siteName | safe }}">
|
||||
{% endblock %}
|
||||
{% include "global/metagen.njk" %}
|
||||
{% include "global/meta.njk" %}
|
||||
|
||||
{# Feeds #}
|
||||
{% include "global/feeds.njk" %}
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<link rel="canonical" href="{{ sitemeta.siteUrl }}{{ page.url }}">
|
||||
<meta name="generator" content="{{ eleventy.generator }}">
|
||||
<meta name="author" content="{{ sitemeta.siteAuthor.name }}">
|
||||
<meta name="description" content="{{ desc or metadata.desc or sitemeta.siteDescription }}">
|
||||
<meta name="fediverse:creator" content="@Leilukin@dragonscave.space">
|
||||
<meta property="og:site_name" content="{{ sitemeta.siteName | safe }}" />
|
||||
<meta property="og:type" content="{{ "article" if isArticle or articleElement else "website" }}">
|
||||
<meta property="og:description" content="{{ desc or metadata.desc or sitemeta.siteDescription }}">
|
||||
<meta property="og:url" content="{{ sitemeta.siteUrl }}{{ page.url }}">
|
||||
<meta property="og:locale" content="{{ sitemeta.siteLocale }}">
|
|
@ -1,10 +0,0 @@
|
|||
{% metagen
|
||||
desc=desc or metadata.desc,
|
||||
url=sitemeta.siteUrl + page.url,
|
||||
locale=sitemeta.siteLocale,
|
||||
name=sitemeta.siteAuthor.name,
|
||||
site_name=sitemeta.siteName,
|
||||
img=image,
|
||||
img_alt=alt,
|
||||
generator=eleventy.generator
|
||||
%}
|
|
@ -5,9 +5,9 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
||||
{# Meta data #}
|
||||
{# Open Graph meta #}
|
||||
<meta property="og:title" content="{% if title %}{{ title }}{% else %}{{ sitemeta.siteName }}{% endif %}">
|
||||
{% include "global/metagen.njk" %}
|
||||
{% include "global/meta.njk" %}
|
||||
|
||||
{# Feeds #}
|
||||
{% include "global/feeds.njk" %}
|
||||
|
|
|
@ -2,6 +2,7 @@ export default {
|
|||
tags: ["contents", "kotor resources"],
|
||||
layout: "starwarskotor/content",
|
||||
hasBreadcrumbs: true,
|
||||
articleElement: true,
|
||||
eleventyComputed: {
|
||||
title: "{{ pageTitle }} | Resources",
|
||||
eleventyNavigation: {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: Colophon
|
||||
keyword: colophon page
|
||||
updated: 2024-10-06T18:31:36+0800
|
||||
updated: 2024-10-09T02:31:37+0800
|
||||
toc: true
|
||||
eleventyNavigation:
|
||||
order: 14
|
||||
|
@ -31,7 +31,6 @@ Previously, this website was hosted on [Neocities](https://neocities.org/) until
|
|||
* [@zachleat/details-utils](https://www.npmjs.com/package/@zachleat/details-utils)
|
||||
|
||||
### Eleventy Community Plugins
|
||||
* [eleventy-plugin-metagen](https://www.npmjs.com/package/eleventy-plugin-metagen)
|
||||
* [eleventy-plugin-wordcount-extended](https://www.npmjs.com/package/eleventy-plugin-wordcount-extended)
|
||||
* [eleventy-plugin-embed-everything](https://www.npmjs.com/package/eleventy-plugin-embed-everything)
|
||||
* [@uncenter/eleventy-plugin-toc](https://www.npmjs.com/package/@uncenter/eleventy-plugin-toc)
|
||||
|
|
Loading…
Reference in New Issue