Skip to content

Commit

Permalink
Cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
danpros committed Dec 10, 2024
1 parent 40cdf2c commit 788ccf3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions system/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ function read_category_info($category)
$desc->count = get_categorycount($url);

$desc->file = $filename;

$desc->rss = $desc->url . '/feed';

// Get the contents and convert it to HTML
Expand Down Expand Up @@ -1035,7 +1035,7 @@ function default_category($category = null)
$desc->description = i18n('All_blog_posts') . ': ' . $category;
$desc->file = '';
$desc->count = get_categorycount($category);
$desc->rss = $desc->url . '/feed';
$desc->rss = $desc->url . '/feed';
}

return $tmp[] = $desc;
Expand Down Expand Up @@ -1229,9 +1229,9 @@ function get_author($name)
$author->about = MarkdownExtra::defaultTransform(remove_html_comments($content));

$author->description = get_content_tag("d", $content, get_description($author->about));

$author->avatar = get_content_tag("image", $content, site_url() . 'system/resources/images/logo-small.png');

$author->rss = $author->url . '/feed';

$toc = explode('<!--toc-->', $author->about);
Expand Down Expand Up @@ -2199,15 +2199,15 @@ function get_pagination($totalitems, $page = 1, $perpage = 10, $adjacents = 1, $
$pagination = '';
$curpage = strtok($_SERVER["REQUEST_URI"], '?');

if($lastpage > 1)
if($lastpage > 1)
{
$pagination .= '<ul class="pagination">';

//newer button
if ($page > 2)
$pagination .= '<li class="page-item"><a class="page-link" href="'. $pagestring . $prev .'">« '. i18n('Newer') .'</a></li>';
else if ($page == 2)
$pagination .= '<li class="page-item"><a class="page-link" href="'. $curpage .'">« '. i18n('Newer') .'</a></li>';
else if ($page == 2)
$pagination .= '<li class="page-item"><a class="page-link" href="'. $curpage .'">« '. i18n('Newer') .'</a></li>';
else
$pagination .= '<li class="page-item disabled"><span class="page-link">« '. i18n('Newer') . '</span></li>';

Expand All @@ -2216,8 +2216,8 @@ function get_pagination($totalitems, $page = 1, $perpage = 10, $adjacents = 1, $
{
for ($counter = 1; $counter <= $lastpage; $counter++)
{
if ($counter == 1 && $counter !== $page) // link 1st pagination page to parent page instead of ?page=1 for SEO
$pagination .= '<li class="page-item"><a class="page-link" href="'. $curpage .'">1</a></li>';
if ($counter == 1 && $counter !== $page) // link 1st pagination page to parent page instead of ?page=1 for SEO
$pagination .= '<li class="page-item"><a class="page-link" href="'. $curpage .'">1</a></li>';
else if ($counter == $page)
$pagination .= '<li class="page-item active"><span class="page-link">'. $counter.'</span></li>';
else
Expand All @@ -2231,8 +2231,8 @@ function get_pagination($totalitems, $page = 1, $perpage = 10, $adjacents = 1, $
{
for ($counter = 1; $counter < 4 + ($adjacents * 2); $counter++)
{
if ($counter == 1) // link 1st pagination page to parent page instead of ?page=1 for SEO
$pagination .= '<li class="page-item"><a class="page-link" href="'. $curpage .'">1</a></li>';
if ($counter == 1) // link 1st pagination page to parent page instead of ?page=1 for SEO
$pagination .= '<li class="page-item"><a class="page-link" href="'. $curpage .'">1</a></li>';
else if ($counter == $page)
$pagination .= '<li class="page-item active"><span class="page-link">'. $counter .'</span></li>';
else
Expand Down
2 changes: 1 addition & 1 deletion themes/tailwind/layout.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div class="flex h-screen flex-col justify-between font-sans">
<header class="flex items-center justify-between py-10">
<div>
<a aria-label="Quasilinear Musings" href="<?php echo site_url();?>">
<a aria-label="<?php echo blog_title();?>" href="<?php echo site_url();?>">
<div class="flex items-center justify-between">
<div class="mr-3">
<img width="45" src="<?php echo theme_path();?>logo.png" alt="<?php echo blog_title();?>"/>
Expand Down

0 comments on commit 788ccf3

Please sign in to comment.