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 pluginEleventyNavigation from "@11ty/eleventy-navigation";
|
||||||
import pluginSyntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight";
|
import pluginSyntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight";
|
||||||
import pluginEmbedEverything from "eleventy-plugin-embed-everything";
|
import pluginEmbedEverything from "eleventy-plugin-embed-everything";
|
||||||
import pluginMetagen from "eleventy-plugin-metagen";
|
|
||||||
import pluginWordcount from "eleventy-plugin-wordcount-extended";
|
import pluginWordcount from "eleventy-plugin-wordcount-extended";
|
||||||
import pluginTOC from "@uncenter/eleventy-plugin-toc";
|
import pluginTOC from "@uncenter/eleventy-plugin-toc";
|
||||||
|
|
||||||
|
@ -20,7 +19,6 @@ export default function(eleventyConfig) {
|
||||||
eleventyConfig.addPlugin(pluginEleventyNavigation);
|
eleventyConfig.addPlugin(pluginEleventyNavigation);
|
||||||
eleventyConfig.addPlugin(pluginSyntaxHighlight, { preAttributes: { tabindex: 0 } });
|
eleventyConfig.addPlugin(pluginSyntaxHighlight, { preAttributes: { tabindex: 0 } });
|
||||||
eleventyConfig.addPlugin(pluginEmbedEverything, { add: ['soundcloud'] });
|
eleventyConfig.addPlugin(pluginEmbedEverything, { add: ['soundcloud'] });
|
||||||
eleventyConfig.addPlugin(pluginMetagen);
|
|
||||||
eleventyConfig.addPlugin(pluginWordcount);
|
eleventyConfig.addPlugin(pluginWordcount);
|
||||||
eleventyConfig.addPlugin(pluginTOC, {
|
eleventyConfig.addPlugin(pluginTOC, {
|
||||||
tags: ['h2', 'h3', 'h4', 'h5', 'h6'],
|
tags: ['h2', 'h3', 'h4', 'h5', 'h6'],
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
"@uncenter/eleventy-plugin-toc": "^1.0.3",
|
"@uncenter/eleventy-plugin-toc": "^1.0.3",
|
||||||
"@zachleat/details-utils": "^2.0.2",
|
"@zachleat/details-utils": "^2.0.2",
|
||||||
"eleventy-plugin-embed-everything": "^1.19.0",
|
"eleventy-plugin-embed-everything": "^1.19.0",
|
||||||
"eleventy-plugin-metagen": "^1.8.3",
|
|
||||||
"eleventy-plugin-wordcount-extended": "^0.2.1",
|
"eleventy-plugin-wordcount-extended": "^0.2.1",
|
||||||
"install": "^0.13.0",
|
"install": "^0.13.0",
|
||||||
"markdown-it-anchor": "^9.2.0",
|
"markdown-it-anchor": "^9.2.0",
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ sitemeta.siteLanguage }}" dir="ltr" id="top">
|
<html lang="{{ sitemeta.siteLanguage }}" dir="ltr" id="top">
|
||||||
<head>
|
<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 %}
|
{% block metaTitle %}
|
||||||
<meta property="og:title" content="{{ title if title else sitemeta.siteName | safe }}">
|
<meta property="og:title" content="{{ title if title else sitemeta.siteName | safe }}">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% include "global/metagen.njk" %}
|
{% include "global/meta.njk" %}
|
||||||
|
|
||||||
{# Feeds #}
|
{# Feeds #}
|
||||||
{% include "global/feeds.njk" %}
|
{% 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 name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<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 %}">
|
<meta property="og:title" content="{% if title %}{{ title }}{% else %}{{ sitemeta.siteName }}{% endif %}">
|
||||||
{% include "global/metagen.njk" %}
|
{% include "global/meta.njk" %}
|
||||||
|
|
||||||
{# Feeds #}
|
{# Feeds #}
|
||||||
{% include "global/feeds.njk" %}
|
{% include "global/feeds.njk" %}
|
||||||
|
|
|
@ -2,6 +2,7 @@ export default {
|
||||||
tags: ["contents", "kotor resources"],
|
tags: ["contents", "kotor resources"],
|
||||||
layout: "starwarskotor/content",
|
layout: "starwarskotor/content",
|
||||||
hasBreadcrumbs: true,
|
hasBreadcrumbs: true,
|
||||||
|
articleElement: true,
|
||||||
eleventyComputed: {
|
eleventyComputed: {
|
||||||
title: "{{ pageTitle }} | Resources",
|
title: "{{ pageTitle }} | Resources",
|
||||||
eleventyNavigation: {
|
eleventyNavigation: {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Colophon
|
title: Colophon
|
||||||
keyword: colophon page
|
keyword: colophon page
|
||||||
updated: 2024-10-06T18:31:36+0800
|
updated: 2024-10-09T02:31:37+0800
|
||||||
toc: true
|
toc: true
|
||||||
eleventyNavigation:
|
eleventyNavigation:
|
||||||
order: 14
|
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)
|
* [@zachleat/details-utils](https://www.npmjs.com/package/@zachleat/details-utils)
|
||||||
|
|
||||||
### Eleventy Community Plugins
|
### 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-wordcount-extended](https://www.npmjs.com/package/eleventy-plugin-wordcount-extended)
|
||||||
* [eleventy-plugin-embed-everything](https://www.npmjs.com/package/eleventy-plugin-embed-everything)
|
* [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)
|
* [@uncenter/eleventy-plugin-toc](https://www.npmjs.com/package/@uncenter/eleventy-plugin-toc)
|
||||||
|
|
Loading…
Reference in New Issue