From db9eabfb3ed50fcf24878792249b98c5a4f6e588 Mon Sep 17 00:00:00 2001 From: Torsten Schulz Date: Fri, 9 Feb 2024 11:35:53 +0100 Subject: [PATCH] Added keywords for page --- src/app.cpp | 5 +++++ src/app.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/app.cpp b/src/app.cpp index 959b6a6..c21089b 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -67,7 +67,12 @@ App::~App() { server_.disconnect(this); } +void App::setMetaTags() { + addMetaHeader("keywords", "chat, single chat, images, no registration, anonymous"); +} + void App::initApp() { + setMetaTags(); setTitle("YP Direct Chat"); setCssTheme(""); useStyleSheet("style.css"); diff --git a/src/app.h b/src/app.h index 0f48c26..9972fdc 100644 --- a/src/app.h +++ b/src/app.h @@ -90,6 +90,7 @@ private: int messageCursorPosition_{-1}; std::unique_ptr messageReceived_; Search searchFields; + void setMetaTags(); void initApp(); void reSetUser(); Wt::WVBoxLayout *createVerticalLayout();