在 Jekyll 生成外部 link 到 Google 搜索结果
Generate external link to Google search result at Jekyll
你好,我正在生成带有外部 link 到 Google 搜索结果的布局,其中包含插入的变量(看起来像 #SOMEWORDSATAGS)我同时使用 Jekyll 语法和 HTML,请参阅:
<p class="one">#<u><a href=”https://www.google.com/search?q=#{{ page.shortname }}”>{{ page.shortname }}</a></u> ({{ page.content | number_of_words }})</b></p>
我希望 Google 搜索任何插入#SOMEWORDSATAGS 由 #{{ page.shortname }}
创建的标签
因此,我得到的 link 开头包含 my_domain,因此无法正常工作。
https://my_domain/%E2%80%9Dhttps://www.google.com/search?q=#SOMEWORDSASTAGS
查看sample page here点击左下角的link"GALINSKAYA"
在 _includes/footer.html 中,您在 url 中引用了不恰当的字符:”
(字符代码 8221),但是您的应该使用单引号 '
(charcode 39) 或双引号 "
(charcode 34).
”https://www.google.com/search?q=#{{ page.shortname }}”
失败,但是
"https://www.google.com/search?q=#{{ page.shortname }}"
有效。
你好,我正在生成带有外部 link 到 Google 搜索结果的布局,其中包含插入的变量(看起来像 #SOMEWORDSATAGS)我同时使用 Jekyll 语法和 HTML,请参阅:
<p class="one">#<u><a href=”https://www.google.com/search?q=#{{ page.shortname }}”>{{ page.shortname }}</a></u> ({{ page.content | number_of_words }})</b></p>
我希望 Google 搜索任何插入#SOMEWORDSATAGS 由 #{{ page.shortname }}
创建的标签因此,我得到的 link 开头包含 my_domain,因此无法正常工作。
https://my_domain/%E2%80%9Dhttps://www.google.com/search?q=#SOMEWORDSASTAGS
查看sample page here点击左下角的link"GALINSKAYA"
在 _includes/footer.html 中,您在 url 中引用了不恰当的字符:”
(字符代码 8221),但是您的应该使用单引号 '
(charcode 39) 或双引号 "
(charcode 34).
”https://www.google.com/search?q=#{{ page.shortname }}”
失败,但是
"https://www.google.com/search?q=#{{ page.shortname }}"
有效。