From b48984063bb101a76a78e9b3afa92e456dcf2f37 Mon Sep 17 00:00:00 2001 From: "E. S." Date: Thu, 14 Mar 2024 23:59:02 +0000 Subject: [PATCH] some meta tags in files/$collection --- handler/FilesHandler.php | 5 +++++ strings/main.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/handler/FilesHandler.php b/handler/FilesHandler.php index 79763b4..9707ca5 100644 --- a/handler/FilesHandler.php +++ b/handler/FilesHandler.php @@ -48,6 +48,11 @@ class FilesHandler extends request_handler { add_skin_strings([ 'files_search_results_count' ]); + if (!$folder_id && !$query) + add_meta([ + '$title' => lang('meta_files_collection_title', lang('files_'.$collection->value.'_collection')), + '$description' => lang('meta_files_'.$collection->value.'_description') + ]); $vars = []; $text_excerpts = null; diff --git a/strings/main.yaml b/strings/main.yaml index f2768fd..aa1f2d6 100644 --- a/strings/main.yaml +++ b/strings/main.yaml @@ -27,6 +27,11 @@ meta_index_description: "This is the official web site of the book \"4in1\"." meta_files_title: "4in1 - Files" meta_files_description: "Large archive of files and documents that provide the evidentiary basis for the \"4in1\" investigation." +meta_files_collection_title: "4in1 - %s" +meta_files_wff_description: "Searchable archive of declassified NSA documents relating to the career of William. F. Friedman. Over 52,000 pages in more than 7,500 files." +meta_files_mdf_description: "Searchable archive of all Mercure de France journal issues of the 1920-1940 period." +meta_files_baconiana_description: "Searchable archive of Baconiana almanac, containing all issues since 1886 to 2023." + # blog blog_new_post: "New post" blog_view_post: "View post"