bugGNU nano - Bugs: bug #60511, on search engines, the preview of...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #60511: on search engines, the preview of the website shows garbage

Submitted by:  Peter Liscovius <peterdd>
Submitted on:  Mon 03 May 2021 04:07:45 PM UTC  
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

Thu 06 May 2021 10:23:37 AM UTC, comment #3: 

Sould be fixed now, mainly by commit 43042318.  Thanks for the PHP hints.

And closing, because I see the Startpage search engine has picked up the change.

(If you have any other suggestions for improvements, don't hesitate to open a new issue.)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Tue 04 May 2021 10:59:51 AM UTC, comment #2: 

A simple solution could be adding a $title or $metadescription variable for pages you want as there is one php file per page.

<?php

$title="GNU nano";
$metadescription="blablabla";

include "top.php";
?>

And in the top.php add these 2 conditions:

   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <?php if (isset($title)): ?>
   <title><?= htmlspecialchars($title) ?></title>
   <?php endif; ?>
   <?php if (isset($metadescription)): ?>
   <meta name="description" content="<?= htmlspecialchars($metadescription) ?>" />
   <?php endif; ?>
   <link rel="icon" href="/favicon.ico">

(code not tested, but a hint)

Peter Liscovius <peterdd>
Tue 04 May 2021 09:22:51 AM UTC, comment #1: 

In a way, the "garbage" could be considered a trademark.  :)

Because of how the website is constructed (with PHP snippets), adding a meta tag would mean that all pages would get the same meta tag.  That's not good.  For the same reason the title tag cannot be moved into the head section.  I didn't write how the website is contructed.  If you have any idea of how to fix this...  This is the repo: git://git.wh0rd.org/git/nano-editor .

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 03 May 2021 04:07:45 PM UTC, original submission:  

see attachment

Maybe add a meta description.

Also maybe move title tag into head section.

Peter Liscovius <peterdd>

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by peterdd (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-06 bens StatusNone => Fixed
        Assigned toNone => bens
        Open/ClosedOpen => Closed
    2021-05-04 bens Severity3 - Normal => 2 - Minor
        Summarywebsite previews garbage on search engine => on search engines, the preview of the website shows garbage
    2021-05-03 peterdd Attached File- => Added nanoeditor_nometadescription.png, #51376

    Back to the top


    Powered by Savane 3.6