Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Bludit v3.16.0 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
body {
margin:40px auto; /* Center it */
background-color: black;
color: white;
color: white;
font-size: 150%; /* Smaller type works well for print, not the screen. */
max-width:650px; /* If your text hits the side of the browser, fuck off forever. You ever see a book like that? Yes? What a shitty book. */
font-family: monospace;
padding-left: 15px;
padding-right: 15px;
}
hr {
border: none;
height: 2px;
background-color: darkgrey;
}
a {
text-decoration: none; /* No <strike>*/
}
}
a:link {color: chartreuse;} /* unvisited link */
a:visited {color: chartreuse;} /* visited link */
a:hover {color: cyan;} /* mouse over link */
Expand Down
6 changes: 3 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"author": "Czarek Nakamoto",
"email": "https://mrcyjanek.net",
"website": "https://oldpc.mrcyjanek.net/blog/",
"version": "1.0.0",
"releaseDate": "2020-05-16",
"version": "2.0.0",
"releaseDate": "2024-08-01",
"license": "WTFPL",
"compatible": "3.x",
"compatible": "3.15",
"notes": "It couldn't be more minimal"
}

1 change: 1 addition & 0 deletions php/head.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#000000">
<meta name="generator" content="Bludit">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<?php echo Theme::metaTags('title'); ?>
<?php echo Theme::css('css/style.css'); ?>
Expand Down
44 changes: 8 additions & 36 deletions php/header.php
Original file line number Diff line number Diff line change
@@ -1,47 +1,19 @@
<!-- overall big site header image - make it as wide as your body width is set to -->
<nav style="float:right;">
<?php if ($site->twitter()): ?>
<a href="<?php echo $site->twitter() ?>" target="_blank">twitter</a><br />
<?php endif ?>
<?php if ($site->facebook()): ?>
<a href="<?php echo $site->facebook() ?>" target="_blank">facebook</a><br />
<?php endif ?>
<?php if ($site->codepen()): ?>
<a href="<?php echo $site->codepen() ?>" target="_blank">codepen</a><br />
<?php endif ?>
<?php if ($site->instagram()): ?>
<a href="<?php echo $site->instagram() ?>" target="_blank">instagram</a><br />
<?php endif ?>
<?php if ($site->gitlab()): ?>
<a href="<?php echo $site->gitlab() ?>" target="_blank">gitlab</a><br />
<?php endif ?>
<?php if ($site->github()): ?>
<a href="<?php echo $site->github() ?>" target="_blank">github</a><br />
<?php endif ?>
<?php if ($site->linkedin()): ?>
<a href="<?php echo $site->linkedin() ?>" target="_blank">linkedin</a><br />
<?php endif ?>
<?php if ($site->mastodon()): ?>
<a href="<?php echo $site->mastodon() ?>" target="_blank">mastodon</a><br />
<?php endif ?>
<?php if ($site->dribbble()): ?>
<a href="<?php echo $site->dribbble() ?>" target="_blank">dribbble</a><br />
<?php endif ?>
<?php if ($site->VK()): ?>
<a href="<?php echo $site->VK() ?>" target="_blank">VK</a><br />
<?php endif ?>
<?php
$className = 'pluginRSS';
if (pluginActivated($className)) {
echo '<a href="'. HTML_PATH_ROOT .'rss.xml" target="_blank">rss</a>';
}
?>
<?php foreach (Theme::socialNetworks() as $key => $label): ?>
<a href="<?php echo $site->{$key}(); ?>" target="_blank"><?php echo mb_strtolower($label, 'UTF-8') ?></a><br />
<?php endforeach; ?>
<!-- RSS -->
<?php if (Theme::rssUrl()): ?>
<a href="<?php echo Theme::rssUrl() ?>" target="_blank">rss</a>
<?php endif; ?>
</nav>
<h1>
<a href="<?= HTML_PATH_ROOT ?>" title="<?php echo $site->title() ?>"><?php echo $site->title() ?></a>
</h1>

<p><?php echo $site->slogan() ?></p>
<br />
<hr />
<center>
<?php $i = -1; ?>
Expand Down
23 changes: 8 additions & 15 deletions php/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,16 @@
<article>
<?php Theme::plugins('pageBegin'); ?>
<h2><a href="<?php echo $page->permalink(); ?>"><?php echo $page->title(); ?></a></h2>
<small><?php echo $page->date(); ?></small> |
<?php if ($page->category()):?>
<a href="<?php echo DOMAIN_CATEGORIES.$page->categoryKey() ?>" rel="tag"><?php echo $page->category() ?></a>
<small><?php echo $page->date(); ?></small>&nbsp;<small>(<?php echo $L->get('Reading time') . ': ' . $page->readingTime() ?>)</small>
<?php if ($page->category()):?> | <a href="<?php echo DOMAIN_CATEGORIES.$page->categoryKey() ?>" rel="tag"><?php echo $page->category() ?></a>
<?php endif?><br />
<?php
if(strlen($page->description())>0 ){
echo $page->description();
} else {
$max = 333;
$all = explode(' ', substr($page->content(false), 0, $max));
array_pop($all);
echo implode(' ', $all);
if (strlen($page->content(false)) > $max) {
echo "... ";
}
}?>
<!-- Breaked content -->
<?php echo $page->contentBreak(); ?>
<!-- "Read more" button -->
<?php if ($page->readMore()) : ?>
<a style="float:right;" href="<?php echo $page->permalink(); ?>"><?php echo $L->get('Read more'); ?></a>
<?php endif ?>
<!-- Load Bludit Plugins: Page End -->
<?php Theme::plugins('pageEnd'); ?>
</article>
<hr />
Expand Down
2 changes: 1 addition & 1 deletion php/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php Theme::plugins('pageBegin'); ?>
<a href="<?php echo $page->permalink(); ?>"><h2><?php echo $page->title(); ?></h2></a>
<?php if (!$page->isStatic() && !$url->notFound()): ?>
<small><?php echo $page->date(); ?></small>
<small><?php echo $page->date(); ?></small>&nbsp;<small>(<?php echo $L->get('Reading time') . ': ' . $page->readingTime() ?>)</small>
<?php if ($page->category()):?> | <a href="<?php echo DOMAIN_CATEGORIES.$page->categoryKey() ?>"><?php echo $page->category() ?></a>
<?php endif?>
<?php endif ?>
Expand Down