尝试通过HAML将acanonical链接标记添加到我的Middleman App文档的头部,但不知道该怎么做。
---
title: Swan Physio
description: This is the description
canonical : http://swanphysio.co.uk
---
使用YAML,例如
def hiveCommands(commands, database):
conf = SparkConf().setAppName(database + 'project').setMaster('local')
sc = SparkContext(conf=conf)
df = HiveContext(sc)
f = df.sql('use ' + database)
for command in commands:
f = df.sql(command)
f.collect()
答案 0 :(得分:3)
你可以这样做:
%link(rel="canonical" href='http://example.com#{current_page.url}')