mirror of https://github.com/luizdepra/hugo-coder.git

MaoMao
27.09.2020 7724fa76ac63432addde8b8dea888eea3b72204d
Support SEO friendly meta tags (#300)

* Support two SEO friendly tags: <meta name="description"> and <meta name="keywords">.

* Support two SEO friendly tags: <meta name="description"> and <meta name="keywords">.
2 files modified
5 ■■■■■ changed files
CONTRIBUTORS.md 1 ●●●● patch | view | raw | blame | history
layouts/_default/baseof.html 4 ●●●● patch | view | raw | blame | history
CONTRIBUTORS.md
@@ -64,3 +64,4 @@
- [Santiago González](https://github.com/netrules)
- [Codruț Constantin Gușoi](https://www.sdwolfz.pro)
- [Clément Pannetier](https://clementpannetier.dev)
- [FantasticMao](https://github.com/FantasticMao)
layouts/_default/baseof.html
@@ -6,8 +6,8 @@
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
    {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
    {{ with .Site.Params.keywords }}<meta name="keywords" content="{{ . }}">{{ end }}
    <meta name="description" content="{{ .Description | default (.Summary | default .Site.Params.description ) }}">
    <meta name="keywords" content="{{ (delimit .Keywords ",") | default .Site.Params.keywords }}">
    {{ template "_internal/twitter_cards.html" . }}
    {{ template "_internal/opengraph.html" . }}