Skip to content

Commit

Permalink
Generic updates, Spruce CSS v2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlaki committed Dec 17, 2023
1 parent 95ea8f8 commit aa8eee2
Show file tree
Hide file tree
Showing 15 changed files with 43 additions and 2,222 deletions.
3 changes: 2 additions & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ module.exports = config => {
input: 'src',
output: 'dist'
},
passthroughFileCopy: true
passthroughFileCopy: true,
pathPrefix: './',
};
};
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sprucecss-eleventy-documentation-template",
"version": "1.1.0",
"version": "1.2.0",
"author": "Cone (https://conedevelopment.com)",
"main": ".eleventy.js",
"scripts": {
Expand Down Expand Up @@ -34,7 +34,7 @@
"npm-run-all": "^4.1.5",
"pagefind": "^0.12.0",
"sass": "^1.66.1",
"sprucecss": "^2.2.2",
"sprucecss": "^2.3.0",
"stylelint": "^15.10.3",
"stylelint-config-sass-guidelines": "^10.0.0",
"stylelint-order": "^6.0.3"
Expand Down
16 changes: 7 additions & 9 deletions src/_includes/layouts/base.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{% set assetHash = global.random() %}

<!DOCTYPE html>
<html lang="en">
<head>
<script src="/js/theme-detection.js?{{ assetHash }}"></script>
<script src="/js/theme-detection.js"></script>
{% include "partials/preload.html" %}
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="alternate" type="application/rss+xml" href="{{ site.url }}/feed.xml" />
{% include "partials/meta.html" %}
<link rel="stylesheet" href="/css/main.css?{{ assetHash }}" />
<link rel="stylesheet" href="/css/main.css" />
</head>
<body>
<div class="site-wrapper">
Expand All @@ -28,10 +26,10 @@
</div>
{% include "partials/search-modal.html" %}

<script src="/js/theme-change-assets.js?{{ assetHash }}" defer></script>
<script src="/js/navigation.js?{{ assetHash }}" defer></script>
<script src="/js/theme-switcher.js?{{ assetHash }}" defer></script>
<script src="/js/modal.js?{{ assetHash }}" defer></script>
<script src="/js/accordion-card.js?{{ assetHash }}" defer></script>
<script src="/js/theme-change-assets.js" defer></script>
<script src="/js/navigation.js" defer></script>
<script src="/js/theme-switcher.js" defer></script>
<script src="/js/modal.js" defer></script>
<script src="/js/accordion-card.js" defer></script>
</body>
</html>
2 changes: 1 addition & 1 deletion src/_includes/layouts/front-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h2>Overview</h2>
<span class="post-card__serial-number"></span>
<h2 class="post-card__title">{{ post.title }}</h2>
<p>{{ post.description }}</p>
<a class="btn btn--primary" href="{{ post.url }}">
<a class="btn btn--primary btn--primary-shadow" href="{{ post.url }}">
Read More
<span class="sr-only">{{ post.title }}</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/layouts/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<span class="post-card__serial-number"></span>
<h2 class="post-card__title">{{ post.data.title }}</h2>
<p>{{ post.data.summary }}</p>
<a href="{{ post.url }}" class="btn btn--primary">
<a href="{{ post.url }}" class="btn btn--primary btn--primary-shadow">
Read More
<span class="sr-only">{{ post.title }}</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/partials/post-heading.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1 class="post-heading__title">
{% if btns %}
<div class="post-heading__actions">
{% for btn in btns %}
{% set cls = 'btn--primary' %}
{% set cls = 'btn--primary btn--primary-shadow' %}
{% if btn.type === 'outline' %}
{% set cls = 'btn--outline-primary' %}
{% endif %}
Expand Down

0 comments on commit aa8eee2

Please sign in to comment.