Skip to content

Commit 6c5042a

Browse files
committed
ci(deploy): switch to css bundle
1 parent cc10fee commit 6c5042a

File tree

9 files changed

+14
-26
lines changed

9 files changed

+14
-26
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ Deploy this Eleventy site in just a few clicks on these services:
101101
- Use the `eleventyNavigation` key (via the [Eleventy Navigation plugin](https://www.11ty.dev/docs/plugins/navigation/)) in your front matter to add a template to the top level site navigation. This is in use on `content/index.njk` and `content/about/index.md`.
102102
- Content can be in _any template format_ (blog posts needn’t exclusively be markdown, for example). Configure your project’s supported templates in `eleventy.config.js` -> `templateFormats`.
103103
- The `public` folder in your input directory will be copied to the output folder (via `addPassthroughCopy` in the `eleventy.config.js` file). This means `./public/css/*` will live at `./_site/css/*` after your build completes.
104-
- Provides two content feeds:
105-
- `content/feed/feed.njk`
106-
- `content/feed/json.njk`
107104
- This project uses three [Eleventy Layouts](https://www.11ty.dev/docs/layouts/):
108105
- `_includes/layouts/base.njk`: the top level HTML structure
109106
- `_includes/layouts/home.njk`: the home page template (wrapped into `base.njk`)
@@ -121,7 +118,7 @@ If your site enforces a Content Security Policy (as public-facing sites should),
121118
and enable
122119

123120
```html
124-
<link rel="stylesheet" href="{% getBundleFileUrl "css" %}">
121+
<link rel="stylesheet" href="{% getBundleFileUrl 'css' %}" />
125122
```
126123

127124
or configure the server with the CSP directive `style-src: 'unsafe-inline'` (which is less secure).

_includes/layouts/base.njk

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
<title data-pagefind-meta="title">{{ title or metadata.title }}</title>
77
<meta name="description" content="{{ description or metadata.description }}">
88
{% favicon './public/favicon.svg' %}
9-
{# Atom and JSON feeds included by default #}
10-
<link rel="alternate" href="/feed/feed.xml" type="application/atom+xml" title="{{ metadata.title }}" />
11-
<link rel="alternate" href="/feed/feed.json" type="application/json" title="{{ metadata.title }}" />
129
{#
1310
CSS bundles are provided via the `eleventy-plugin-bundle` plugin:
1411
1. You can add to them using `{% css %}`
@@ -20,16 +17,16 @@
2017
Hot reload isn't working with the bundle plugin on windows
2118
See https://github.com/11ty/eleventy/issues/2807
2219
#}
23-
<link rel="stylesheet" href="/css/index.css" />
24-
<link rel="stylesheet" href="/css/search.css" />
20+
{%- css %}{% include "public/css/index.css" %}{% endcss %}
21+
{%- css %}{% include "public/css/search.css" %}{% endcss %}
2522
{# Add an arbitrary string to the bundle #}
2623
{# {%- css %}* { box-sizing: border-box; }{% endcss %} #}
2724
{# Render the CSS bundle using Inlined CSS (for the fastest site performance in production) #}
2825
<style>
2926
{% getBundle "css" %}
3027
</style>
3128
{#- Renders the CSS bundle using a separate file, if you can't set CSP directive style-src: 'unsafe-inline' #}
32-
{# <link rel="stylesheet" href="{% getBundleFileUrl "css" %}"> #}
29+
{# <link rel="stylesheet" href="{% getBundleFileUrl 'css' %}"> #}
3330
</head>
3431
<body>
3532
<div class="banner flex-center">

_includes/layouts/ticket.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
layout: layouts/base.njk
33
---
44

5-
<link rel="stylesheet" href="/css/ticket.css" />
5+
{%- css %}{% include "public/css/ticket.css" %}{% endcss %}
66

77
<div class="flex-column" data-pagefind-body>
88
{{ content | safe }}
9-
</div>
9+
</div>

_includes/layouts/wiki.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: layouts/base.njk
33
---
44

5-
<link rel="stylesheet" href="/css/wiki.css" />
5+
{%- css %}{% include "public/css/wiki.css" %}{% endcss %}
66

77
<div class="wiki flex-column">
88
<div class="breadcrumbs-nav flex-row">
@@ -24,4 +24,4 @@ layout: layouts/base.njk
2424
<div class="wiki-content">
2525
{{ content | safe }}
2626
</div>
27-
</div>
27+
</div>

content/attachment.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{# Include syntax highligher CSS #}
2525
{%- css %}{% include "node_modules/prismjs/themes/prism.min.css" %}{% endcss %}
2626
{%- css %}{% include "public/css/prism-diff.css" %}{%- endcss %}
27-
<link rel="stylesheet" href="/css/attachment.css" />
27+
{%- css %}{% include "public/css/attachment.css" %}{% endcss %}
2828

2929
<div class="flex-column attachment">
3030
<nav class="content-nav">

content/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ breadcrumb: WikiStart
77

88
jQuery UI is in **maintenance-only mode**. Users should not expect any new releases. Patches may be issued to resolve critical security, interoperability, or regression bugs. See the [blog post](https://blog.jqueryui.com/2021/10/jquery-maintainers-update-and-transition-jquery-ui-as-part-of-overall-modernization-efforts/) for more information.
99

10-
jQuery UI issues were moved to <a href="https://github.com/jquery/jquery-ui/issues">GitHub</a>. This site is now a static, read-only archive of the old <a href="https://trac.edgewall.org/">Trac</a> site. Any critical issues should be filed on the project's <a href="https://github.com/jquery/jquery-ui/issues">GitHub repository</a>.
10+
jQuery UI issues were moved to <a href="https://github.com/jquery/jquery-ui/issues" class="ext-link"><span class="icon"></span>GitHub</a>. This site is now a static, read-only archive of the old <a href="https://trac.edgewall.org/" class="ext-link"><span class="icon"></span>Trac</a> site. Any critical issues should be filed on the project's <a href="https://github.com/jquery/jquery-ui/issues" class="ext-link"><span class="icon"></span>GitHub repository</a>.
1111

1212
**Search** is still supported for tickets and milestones, but some functions and pages no longer work.

content/search.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: layouts/base.njk
33
---
44

5-
<link rel="stylesheet" href="/css/fullpagesearch.css" />
5+
{%- css %}{% include "public/css/fullpagesearch.css" %}{% endcss %}
66

77
<h1>Search</h1>
88
<hr>
@@ -20,4 +20,4 @@ layout: layouts/base.njk
2020
}
2121
})
2222
})
23-
</script>
23+
</script>

public/css/index.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,6 @@ pre[class*='language-'] code {
268268
background: none;
269269
word-break: normal;
270270
}
271-
pre[class*='language-'] code .token.deleted {
272-
background-color: #ffd8d8;
273-
}
274-
pre[class*='language-'] code .token.inserted {
275-
background-color: #caffcf;
276-
}
277271

278272
.strikethrough {
279273
text-decoration: line-through;

public/css/prism-diff.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ pre[class*='language-diff'] {
88
padding-right: var(--eleventy-code-padding);
99
}
1010
.token.deleted {
11-
background-color: hsl(0, 51%, 37%);
11+
background-color: #ffd8d8;
1212
color: inherit;
1313
}
1414
.token.inserted {
15-
background-color: hsl(126, 31%, 39%);
15+
background-color: #caffcf;
1616
color: inherit;
1717
}
1818

0 commit comments

Comments
 (0)