Skip to content

Commit

Permalink
Merge pull request #317 from VaclavElias/315-chore-upgrade-to-11ty-v300
Browse files Browse the repository at this point in the history
chore: 11ty major version bumped
  • Loading branch information
VaclavElias authored Nov 10, 2024
2 parents a65b619 + 6e87099 commit e701c82
Show file tree
Hide file tree
Showing 6 changed files with 1,182 additions and 902 deletions.
20 changes: 10 additions & 10 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// Description: Eleventy configuration file for the Stride website

// Import dependencies from node_modules / package.json
const sass = require("sass");
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const path = require("node:path");
const markdownIt = require("markdown-it");
const markdownItAnchor = require("markdown-it-anchor");
const markdownItToc = require("markdown-it-table-of-contents");
const pluginRss = require("@11ty/eleventy-plugin-rss");
const eleventyFetch = require("@11ty/eleventy-fetch");
import * as sass from 'sass';
import syntaxHighlight from '@11ty/eleventy-plugin-syntaxhighlight'
import path from 'node:path'
import markdownIt from 'markdown-it'
import markdownItAnchor from 'markdown-it-anchor'
import markdownItToc from 'markdown-it-table-of-contents'
import pluginRss from '@11ty/eleventy-plugin-rss'
import eleventyFetch from '@11ty/eleventy-fetch'

module.exports = function (eleventyConfig) {
export default function (eleventyConfig) {

// Add plugins
eleventyConfig.addPlugin(syntaxHighlight);
Expand Down Expand Up @@ -178,4 +178,4 @@ module.exports = function (eleventyConfig) {
layouts: "_layouts"
}
};
};
}
2 changes: 2 additions & 0 deletions _includes/_head.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if title != 'Home' %}{{ title }} - {% endif %}{{ site.title }}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ description }}{% endif %}">
<meta name="generator" content="Eleventy v3.0.0">
<link rel="icon" type="image/png" href="{{ site.baseurl }}/favicon.png">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="/feed.xml">
<link rel="stylesheet" href="{{ site.baseurl }}/css/styles.css?site-version={{site.version}}">
<link rel="preload" as="font" href="/webfonts/fa-solid-900.woff2" crossorigin="anonymous">
<link rel="preload" as="font" href="/webfonts/fa-brands-400.woff2" crossorigin="anonymous">
<meta property="og:type" content="website">
<meta property="og:site_name" content="{{ site.title }}">
<meta property="og:title" content="{{ title }}">
<meta property="og:description" content="{% if page.excerpt %}{{ page.excerpt | strip | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ description }}{% endif %}">
Expand Down
Loading

0 comments on commit e701c82

Please sign in to comment.