Skip to content

Commit

Permalink
[ZZO] Remove extra empty lines in meta for indieweb
Browse files Browse the repository at this point in the history
  • Loading branch information
szpak committed Mar 7, 2020
1 parent e7e5742 commit 07623c2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions layouts/partials/head/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,19 @@
<meta property="twitter:description" content="{{ $.Param "description" }}">
{{ end }}
{{ end }}
{{ if $.Site.Params.indieLoginOptions.useGithub }}

{{- if $.Site.Params.indieLoginOptions.useGithub -}}
{{ with $.Site.Params.socialOptions.github }}
<link href="{{ . }}" rel="me">
{{ end }}
{{ end}}
{{ if $.Site.Params.webmentionIo }}
{{ $parsedBaseUrl := urls.Parse .Site.BaseURL }}
{{- end -}}
{{- end -}}
{{- if $.Site.Params.webmentionIo -}}
{{- $parsedBaseUrl := urls.Parse .Site.BaseURL -}}
{{ with $parsedBaseUrl.Host }}
<link rel="webmention" href="https://webmention.io/{{ . }}/webmention" />
{{ end }}
{{- end -}}
{{ end }}

{{ hugo.Generator }}
<meta name="msapplication-TileColor" content="{{ $.Scratch.Get "themeTitleColor" | default "#fff" }}">
<!-- Chrome, Firefox OS and Opera -->
Expand Down

0 comments on commit 07623c2

Please sign in to comment.