Skip to content

Commit

Permalink
Remove a custom font file
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy-set-studio committed Apr 9, 2020
1 parent a2f2094 commit 7e20911
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const rssPlugin = require('@11ty/eleventy-plugin-rss');
const syntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight');
const fs = require("fs");
const fs = require('fs');

// Import filters
const dateFilter = require('./src/filters/date-filter.js');
Expand Down Expand Up @@ -34,6 +34,7 @@ module.exports = function(config) {
config.addPassthroughCopy('src/admin/config.yml');
config.addPassthroughCopy('src/admin/previews.js');
config.addPassthroughCopy('node_modules/nunjucks/browser/nunjucks-slim.js');
config.addPassthroughCopy('src/robots.txt');

const now = new Date();

Expand All @@ -55,13 +56,13 @@ module.exports = function(config) {
config.addPlugin(rssPlugin);
config.addPlugin(syntaxHighlight);

// 404
// 404
config.setBrowserSyncConfig({
callbacks: {
ready: function(err, browserSync) {
const content_404 = fs.readFileSync('dist/404.html');

browserSync.addMiddleware("*", (req, res) => {
browserSync.addMiddleware('*', (req, res) => {
// Provides the 404 content without redirect.
res.write(content_404);
res.end();
Expand Down
Binary file removed src/fonts/lora-v13-latin-700.woff2
Binary file not shown.
2 changes: 2 additions & 0 deletions src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ layout: home
title: A simple starter kit for Eleventy
postsHeading: Latest posts
archiveButtonText: See all posts
metaDesc: 'Hylia is a lightweight Eleventy starter kit to help you to create your own blog or personal website.'
socialImage: ''
---

Hylia is a lightweight [Eleventy](https://11ty.io) starter kit with [Netlify CMS](https://www.netlifycms.org/) pre-configured, so that you can one-click install a progressive, accessible blog in minutes. It also gives you a well organised starting point to extend yourself. It’s by [Andy Bell](https://twitter.com/hankchizljaw) and [friends](https://github.com/aarongustafson/hylia/graphs/contributors).

Get started now by [deploying Hylia to Netlify.](https://app.netlify.com/start/deploy?repository=https://github.com/hankchizljaw/hylia&stack=cms)
1 change: 0 additions & 1 deletion src/scss/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
font-weight: 700;
font-display: swap;
src: local('Lora Bold'), local('Lora-Bold'),
url('/fonts/lora-v13-latin-700.woff2') format('woff2'),
url('/fonts/lora-v13-latin-700.woff') format('woff');
}

Expand Down

0 comments on commit 7e20911

Please sign in to comment.