mirror of
https://github.com/YGGverse/HLState.git
synced 2025-02-10 22:14:14 +00:00
add meta tags config
This commit is contained in:
parent
fff29a762e
commit
699e01c396
5
.env
5
.env
@ -48,6 +48,11 @@ APP_VERSION="1.0.0"
|
|||||||
# Application name
|
# Application name
|
||||||
APP_NAME="HLState"
|
APP_NAME="HLState"
|
||||||
|
|
||||||
|
# SEO
|
||||||
|
APP_META_TITLE="HLState"
|
||||||
|
APP_META_DESCRIPTION="HLState - Open Source Web Stats for Half-Life Server"
|
||||||
|
APP_META_KEYWORDS="Half-Life, HLState, YGGverse, Servers, Stats, Online, Analytics, Explorer"
|
||||||
|
|
||||||
# Application template
|
# Application template
|
||||||
APP_THEME="default"
|
APP_THEME="default"
|
||||||
|
|
||||||
|
@ -5,6 +5,10 @@ twig:
|
|||||||
version: '%app.version%'
|
version: '%app.version%'
|
||||||
name: '%app.name%'
|
name: '%app.name%'
|
||||||
theme: '%app.theme%'
|
theme: '%app.theme%'
|
||||||
|
meta:
|
||||||
|
title: '%env(APP_META_TITLE)%'
|
||||||
|
description: '%env(APP_META_DESCRIPTION)%'
|
||||||
|
keywords: '%env(APP_META_KEYWORDS)%'
|
||||||
when@test:
|
when@test:
|
||||||
twig:
|
twig:
|
||||||
strict_variables: true
|
strict_variables: true
|
||||||
|
@ -8,6 +8,9 @@ parameters:
|
|||||||
app.name: '%env(APP_NAME)%'
|
app.name: '%env(APP_NAME)%'
|
||||||
app.theme: '%env(APP_THEME)%'
|
app.theme: '%env(APP_THEME)%'
|
||||||
app.hlservers: '%env(APP_HLSERVERS)%'
|
app.hlservers: '%env(APP_HLSERVERS)%'
|
||||||
|
app.meta.title: '%env(APP_META_TITLE)%'
|
||||||
|
app.meta.description: '%env(APP_META_DESCRIPTION)%'
|
||||||
|
app.meta.keywords: '%env(APP_META_KEYWORDS)%'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# default configuration for services in *this* file
|
# default configuration for services in *this* file
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>{% block head_title_content %}{{ app.name }}{% endblock %}</title>
|
<meta name="description" content="{% block head_meta_description %}{{ app.meta.description }}{% endblock %}" />
|
||||||
|
<meta name="keywords" content="{% block head_meta_keywords %}{{ app.meta.keywords }}{% endblock %}" />
|
||||||
|
<title>{% block head_title_content %}{{ app.meta.title }}{% endblock %}</title>
|
||||||
<link rel="stylesheet" type="text/css" href="{{ url('main_index') }}css/default.css?{{ app.version }}"/>
|
<link rel="stylesheet" type="text/css" href="{{ url('main_index') }}css/default.css?{{ app.version }}"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user