Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Dec 17, 2023
1 parent f94b1bd commit 49f6e95
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 61 deletions.
27 changes: 0 additions & 27 deletions .factory/index.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,6 @@ body {
}
> nav {
border-bottom: 1px dotted #bfb186;
font-size: 100%;
line-height: 2.7rem;
> ul {
display: flex;
Expand Down Expand Up @@ -633,30 +632,4 @@ body {
}
}
}
}

@media (max-width: 680px) {
body {
> div {
width: auto;
> header,
> nav {
+ div {
flex-direction: column;
> aside {
display: flex;
flex-wrap: wrap;
gap: 2rem;
width: auto;
> div {
flex: 1;
+ div {
margin-top: 0;
}
}
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion about.page
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ images:
- /lot/y/blogger-scribe/index.png
author: Taufik Nurrohman
type: Markdown
version: 1.0.1
version: 1.0.2
...

This is not a clone of the original Scribe template. I didn’t make it from the original source code, but by refactoring
Expand Down
2 changes: 1 addition & 1 deletion enter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html class>
<head>
<meta charset="utf-8">
<meta content="width=device-width" name="viewport">
<meta content="width=1024" name="viewport">
<?php if ($w = w($page->description ?? $site->description ?? "")): ?>
<meta content="<?= $w; ?>" name="description">
<?php endif; ?>
Expand Down
8 changes: 4 additions & 4 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<footer>
<?php if (0 === strpos($url->path . '/', $route = ($state->routeBlog ?? '/article') . '/')): ?>
<?php if (isset($state->x->feed) && 0 === strpos($url->path . '/', $route = ($state->routeBlog ?? '/article') . '/')): ?>
<p>
<?= i('Subscribe to %s', ['<a href="' . eat($url . ($state->routeBlog ?? '/article') . '/feed.xml') . '" rel="alternate" target="_blank">' . i('Posts') . ' (Atom)</a>']); ?>
</p>
<p>
<?= i('Powered by %s', ['<a href="https://mecha-cms.com">Mecha ' . VERSION . '</a>']); ?>
</p>
<?php endif; ?>
<p>
<?= i('Powered by %s', ['<a href="https://mecha-cms.com">Mecha ' . VERSION . '</a>']); ?>
</p>
</footer>
26 changes: 0 additions & 26 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,6 @@ body > div > header p {
}
body > div > nav {
border-bottom: 1px dotted #bfb186;
font-size: 100%;
line-height: 2.7rem;
}
body > div > nav > ul {
Expand Down Expand Up @@ -761,29 +760,4 @@ body > div > nav + div > main > article + nav {
display: flex;
justify-content: space-between;
margin-top: 1rem;
}

@media (max-width: 680px) {
body > div {
width: auto;
}
body > div > header + div,
body > div > nav + div {
flex-direction: column;
}
body > div > header + div > aside,
body > div > nav + div > aside {
display: flex;
flex-wrap: wrap;
gap: 2rem;
width: auto;
}
body > div > header + div > aside > div,
body > div > nav + div > aside > div {
flex: 1;
}
body > div > header + div > aside > div + div,
body > div > nav + div > aside > div + div {
margin-top: 0;
}
}
2 changes: 1 addition & 1 deletion index.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion widget/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
}
$content .= '</ul>';
} else {
$content .= '<p>' . i('No related %s yet.', 'posts') . '</p>';
$content .= '<p role="status">' . i('No' . (!empty($search) ? ' related' : "") . ' %s yet.', 'posts') . '</p>';
}

echo self::widget([
Expand Down

0 comments on commit 49f6e95

Please sign in to comment.