mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
add meta keywords support
This commit is contained in:
parent
306ccb6078
commit
2524a30476
3 changed files with 9 additions and 0 deletions
|
|
@ -125,6 +125,7 @@ class TorrentController extends AbstractController
|
||||||
'peers' => (int) $torrent->getPeers(),
|
'peers' => (int) $torrent->getPeers(),
|
||||||
'leechers' => (int) $torrent->getLeechers(),
|
'leechers' => (int) $torrent->getLeechers(),
|
||||||
],
|
],
|
||||||
|
'keywords' => $torrent->getKeywords(),
|
||||||
'locales' => $torrent->getLocales(),
|
'locales' => $torrent->getLocales(),
|
||||||
'sensitive' => $torrent->isSensitive(),
|
'sensitive' => $torrent->isSensitive(),
|
||||||
'approved' => $torrent->isApproved(),
|
'approved' => $torrent->isApproved(),
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,9 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title>{% block title %}{{ name }}{% endblock %}</title>
|
<title>{% block title %}{{ name }}{% endblock %}</title>
|
||||||
|
{% block keywords %}
|
||||||
|
<meta name="keywords" content="yggverse,yggtracker,yggdrasil,bittorrent,magnet,tracker" />
|
||||||
|
{% endblock %}
|
||||||
{% block stylesheets %}
|
{% block stylesheets %}
|
||||||
<link href="{{ asset('asset/' ~ theme ~ '/css/framework.css') }}?{{ version }}" rel="stylesheet" />
|
<link href="{{ asset('asset/' ~ theme ~ '/css/framework.css') }}?{{ version }}" rel="stylesheet" />
|
||||||
<link href="{{ asset('asset/' ~ theme ~ '/css/common.css') }}?{{ version }}" rel="stylesheet" />
|
<link href="{{ asset('asset/' ~ theme ~ '/css/common.css') }}?{{ version }}" rel="stylesheet" />
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,11 @@
|
||||||
{% from _self import recursive_file_tree %}
|
{% from _self import recursive_file_tree %}
|
||||||
{% extends 'default/layout.html.twig' %}
|
{% extends 'default/layout.html.twig' %}
|
||||||
{% block title %}{{ file.name }} - {{ 'Torrent' | trans }} #{{ torrent.id }}{% if pagination.page > 1 %} - {{ 'Page' | trans }} {{ pagination.page }}{% endif %} - {{ name }}{% endblock %}
|
{% block title %}{{ file.name }} - {{ 'Torrent' | trans }} #{{ torrent.id }}{% if pagination.page > 1 %} - {{ 'Page' | trans }} {{ pagination.page }}{% endif %} - {{ name }}{% endblock %}
|
||||||
|
{% block keywords %}
|
||||||
|
{% if torrent.keywords %}
|
||||||
|
<meta name="keywords" content="{{ torrent.keywords | join(',') }}" />
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
{% block main_content %}
|
{% block main_content %}
|
||||||
<div class="padding-24-px margin-y-8-px border-radius-3-px background-color-night">
|
<div class="padding-24-px margin-y-8-px border-radius-3-px background-color-night">
|
||||||
<h1 class="display-block text-center margin-b-16-px">
|
<h1 class="display-block text-center margin-b-16-px">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue