我有一个页面,其元内容源自 view.yml 文件。
<meta name="robots" content="index, follow" />
<meta name="description" content="" />
<meta name="keywords" content="summer jobs" />
<meta name="language" content="en" />
在view.yml文件中是这样的:
summerjobsSuccess:
has_layout: on
layout: layoutreg
stylesheets: [common]
metas:
title: Summer Jobs for Students
robots: index, follow
description: Find the best summer jobs here including: working abroad, summer camp jobs, summer festival jobs, and student summer jobs in retail or telesales
keywords: summer jobs
language: en
我寻找间距,它看起来很完美。 可能是什么错误?
最佳答案
出现问题是因为您的描述中有一个冒号 (:
) - 您需要将字符串括在引号中:
description: 'Find the best summer jobs here including: working abroad, summer camp jobs, summer festival jobs, and student summer jobs in retail or telesales'
关于symfony1 - 为什么 meta 描述在 view.yml 中被填满了却还是空的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10949450/