Skip to content

Commit

Permalink
Remove SCSS Deprecation(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Dec 12, 2024
1 parent 561e3a3 commit 243c169
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
10 changes: 6 additions & 4 deletions .factory/_tweaks.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.article-post a {
&[aria-current],
&[aria-disabled] {
box-shadow: none;
@mixin a--current {
.article-post a {
&[aria-current],
&[aria-disabled] {
box-shadow: none;
}
}
}
4 changes: 3 additions & 1 deletion .factory/index.css.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'tweaks';

@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:wght@400;700&display=swap');

Expand Down Expand Up @@ -684,4 +686,4 @@ img {
opacity: 0.8;
}

@import '_tweaks';
@include tweaks.a--current;
2 changes: 1 addition & 1 deletion about.page
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ image: /lot/y/affiliates/index.png
link: https://bootstrapstarter.com/template-affiliates-bootstrap-html
author: Taufik Nurrohman
type: Markdown
version: 1.0.0
version: 1.0.1
...

### Newsletter
Expand Down
4 changes: 2 additions & 2 deletions enter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8">
<meta content="width=device-width" name="viewport">
<?php if ($w = w($page->description ?? $site->description ?? "")): ?>
<meta content="<?= $w; ?>" name="description">
<?php if ($v = w($page->description ?? $site->description ?? "")): ?>
<meta content="<?= $v; ?>" name="description">
<?php endif; ?>
<?php if ('archive' === $page->x): ?>
<!-- Prevent search engines from indexing pages with `archive` state -->
Expand Down
1 change: 0 additions & 1 deletion index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=PT+Serif:wght@400;700&display=swap");
html {
Expand Down
2 changes: 1 addition & 1 deletion index.min.css

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

6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
Asset::set(__DIR__ . D . 'index' . $z . 'css', 20);
Asset::set(__DIR__ . D . 'index' . $z . 'js', 20);

$GLOBALS['links'] = new Anemone((static function ($links, $state, $url) {
$index = LOT . D . 'page' . D . trim(strtr($state->route, '/', D), D) . '.page';
lot('links', $links = new Anemone((static function ($links, $state, $url) {
$index = LOT . D . 'page' . D . trim(strtr($state->route ?? 'index', '/', D), D) . '.page';
$path = $url->path . '/';
foreach (g(LOT . D . 'page', 'page') as $k => $v) {
// Exclude home page
Expand All @@ -25,7 +25,7 @@
}
ksort($links);
return $links;
})([], $state, $url));
})([], $state, $url)));

$states = [
'route-blog' => '/article',
Expand Down

0 comments on commit 243c169

Please sign in to comment.