Domanda

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

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

Thanks !

È stato utile?

Soluzione

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>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top