Fixed the robots tags
This commit is contained in:
@@ -8,6 +8,18 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_COMPILER "/usr/bin/g++-12")
|
||||
set(CMAKE_PREFIX_PATH "/usr")
|
||||
|
||||
# Set default build type if not specified
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
endif()
|
||||
|
||||
# Set compiler flags based on build type
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
add_compile_options(-g)
|
||||
else()
|
||||
add_compile_options(-O2)
|
||||
endif()
|
||||
|
||||
add_executable(${PROJECT_NAME}
|
||||
src/main.cpp
|
||||
src/broadcast.h src/broadcast.cpp
|
||||
|
||||
@@ -61,7 +61,7 @@ App::~App() {
|
||||
void App::setMetaTags() {
|
||||
removeMetaHeader(Wt::MetaHeaderType::Meta, "robots");
|
||||
addMetaHeader("keywords", "chat,single chat,images,no registration,anonymous,direct chat,search,searchable,international,free,no cost,private chat,private");
|
||||
addMetaHeader(Wt::MetaHeaderType::Meta, "robots", "");
|
||||
addMetaHeader(Wt::MetaHeaderType::Meta, "robots", "index,nofollow");
|
||||
addMetaHeader(Wt::MetaHeaderType::Meta, "google-adsense-account", "ca-pub-1104166651501135");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user