Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
samueleorfei committed Dec 12, 2023
1 parent a3eb10a commit f798468
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 73 deletions.
2 changes: 1 addition & 1 deletion docs/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
}
},
'url' => function ($page, $path) {
return Str::startsWith($path, 'http') ? $path : '/'.trimPath($path);
return Str::startsWith($path, 'http') ? $path : '/' . trimPath($path);
},
];
6 changes: 3 additions & 3 deletions docs/listeners/GenerateSitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ public function handle(Jigsaw $jigsaw)
{
$baseUrl = $jigsaw->getConfig('baseUrl');

if (! $baseUrl) {
if (!$baseUrl) {
echo "\nTo generate a sitemap.xml file, please specify a 'baseUrl' in config.php.\n\n";

return;
}

$sitemap = new Sitemap($jigsaw->getDestinationPath().'/sitemap.xml');
$sitemap = new Sitemap($jigsaw->getDestinationPath() . '/sitemap.xml');

collect($jigsaw->getOutputPaths())
->reject(function ($path) {
return $this->isExcluded($path);
})->each(function ($path) use ($baseUrl, $sitemap) {
$sitemap->addItem(rtrim($baseUrl, '/').$path, time(), Sitemap::DAILY);
$sitemap->addItem(rtrim($baseUrl, '/') . $path, time(), Sitemap::DAILY);
});

$sitemap->write();
Expand Down
138 changes: 69 additions & 69 deletions docs/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,76 +1,76 @@
module.exports = {
purge: {
content: [
'source/**/*.html',
'source/**/*.md',
'source/**/*.js',
'source/**/*.php',
'source/**/*.vue',
],
options: {
whitelist: [
/language/,
/hljs/,
/algolia/,
],
},
purge: {
content: [
'source/**/*.html',
'source/**/*.md',
'source/**/*.js',
'source/**/*.php',
'source/**/*.vue',
],
options: {
whitelist: [
/language/,
/hljs/,
/algolia/,
],
},
theme: {
extend: {
fontFamily: {
sans: [
'Nunito Sans'
],
mono: [
'monospace',
],
},
lineHeight: {
normal: '1.6',
loose: '1.75',
},
maxWidth: {
none: 'none',
'7xl': '80rem',
'8xl': '88rem'
},
spacing: {
'7': '1.75rem',
'9': '2.25rem'
},
boxShadow: {
'lg': '0 -1px 27px 0 rgba(0, 0, 0, 0.04), 0 4px 15px 0 rgba(0, 0, 0, 0.08)',
}
},
fontSize: {
'xs': '.8rem',
'sm': '.925rem',
'base': '1rem',
'lg': '1.125rem',
'xl': '1.25rem',
'2xl': '1.5rem',
'3xl': '1.75rem',
'4xl': '2.125rem',
'5xl': '2.625rem',
'6xl': '10rem',
},
},
theme: {
extend: {
fontFamily: {
sans: [
'Nunito Sans'
],
mono: [
'monospace',
],
},
lineHeight: {
normal: '1.6',
loose: '1.75',
},
maxWidth: {
none: 'none',
'7xl': '80rem',
'8xl': '88rem'
},
spacing: {
'7': '1.75rem',
'9': '2.25rem'
},
boxShadow: {
'lg': '0 -1px 27px 0 rgba(0, 0, 0, 0.04), 0 4px 15px 0 rgba(0, 0, 0, 0.08)',
}
},
variants: {
borderRadius: ['responsive', 'focus'],
borderWidth: ['responsive', 'active', 'focus'],
width: ['responsive', 'focus']
fontSize: {
'xs': '.8rem',
'sm': '.925rem',
'base': '1rem',
'lg': '1.125rem',
'xl': '1.25rem',
'2xl': '1.5rem',
'3xl': '1.75rem',
'4xl': '2.125rem',
'5xl': '2.625rem',
'6xl': '10rem',
},
plugins: [
},
variants: {
borderRadius: ['responsive', 'focus'],
borderWidth: ['responsive', 'active', 'focus'],
width: ['responsive', 'focus']
},
plugins: [
function ({ addUtilities }) {
const newUtilities = {
'.transition-fast': {
transition: 'all .2s ease-out',
},
'.transition': {
transition: 'all .5s ease-out',
},
}
addUtilities(newUtilities)
const newUtilities = {
'.transition-fast': {
transition: 'all .2s ease-out',
},
'.transition': {
transition: 'all .5s ease-out',
},
}
addUtilities(newUtilities)
}
]
]
}

0 comments on commit f798468

Please sign in to comment.