Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用开放图元标记来执行以下操作:
<meta name="og:image" content="/assets/icon.png">
但似乎没有加载图像。我应该如何访问资产的完整路径,或者我做错了什么?
谢谢
您在使用资产管道吗?
如果是这样:
<meta name="og:image" content="<%= asset_path('icon.png') %>">