문제

Is there any way to add a custom meta tag in a Maven generated web site ?

<meta name="keyword" content="keyword1, keyword2"/>

Thanks !

도움이 되었습니까?

해결책

Easy, you just Inject some XML into the <head>

e.g. in your src/site/site.xml

<project>
  ...
  <body>
    ...
    <head>
      <meta name="keyword" content="keyword1, keyword2" />
    </head>
    ...
  </body>
  ...
</project>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top