mirror of
				https://github.com/Brandon-Rozek/website-theme.git
				synced 2025-11-04 03:21:13 +00:00 
			
		
		
		
	Cleaining up some HTMl validation errors
This commit is contained in:
		
							parent
							
								
									7bba7d0f0b
								
							
						
					
					
						commit
						75124ce773
					
				
					 3 changed files with 26 additions and 26 deletions
				
			
		
							
								
								
									
										24
									
								
								layouts/partials/external/twitter_cards.html
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								layouts/partials/external/twitter_cards.html
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,31 +1,31 @@
 | 
			
		|||
<!-- https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/twitter_cards.html -->
 | 
			
		||||
{{- with $.Params.images -}}
 | 
			
		||||
<meta name="twitter:card" content="summary_large_image"/>
 | 
			
		||||
<meta name="twitter:image" content="{{ index . 0 | absURL }}"/>
 | 
			
		||||
<meta name="twitter:card" content="summary_large_image">
 | 
			
		||||
<meta name="twitter:image" content="{{ index . 0 | absURL }}">
 | 
			
		||||
{{ else -}}
 | 
			
		||||
{{- $images := $.Resources.ByType "image" -}}
 | 
			
		||||
{{- $featured := $images.GetMatch "*feature*" -}}
 | 
			
		||||
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
 | 
			
		||||
{{- with $featured -}}
 | 
			
		||||
<meta name="twitter:card" content="summary_large_image"/>
 | 
			
		||||
<meta name="twitter:image" content="{{ $featured.Permalink }}"/>
 | 
			
		||||
<meta name="twitter:card" content="summary_large_image">
 | 
			
		||||
<meta name="twitter:image" content="{{ $featured.Permalink }}">
 | 
			
		||||
{{- else -}}
 | 
			
		||||
{{- with $.Site.Params.images -}}
 | 
			
		||||
<meta name="twitter:card" content="summary_large_image"/>
 | 
			
		||||
<meta name="twitter:image" content="{{ index . 0 | absURL }}"/>
 | 
			
		||||
<meta name="twitter:card" content="summary_large_image">
 | 
			
		||||
<meta name="twitter:image" content="{{ index . 0 | absURL }}">
 | 
			
		||||
{{ else -}}
 | 
			
		||||
<meta name="twitter:card" content="summary"/>
 | 
			
		||||
<meta name="twitter:image" content="{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}"/>
 | 
			
		||||
<meta name="twitter:card" content="summary">
 | 
			
		||||
<meta name="twitter:image" content="{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}">
 | 
			
		||||
{{- end -}}
 | 
			
		||||
{{- end -}}
 | 
			
		||||
{{- end }}
 | 
			
		||||
<meta name="twitter:title" content="{{ .Title }}"/>
 | 
			
		||||
<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}"/>
 | 
			
		||||
<meta name="twitter:title" content="{{ .Title }}">
 | 
			
		||||
<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}">
 | 
			
		||||
{{ with .Site.Social.twitter -}}
 | 
			
		||||
<meta name="twitter:site" content="@{{ . }}"/>
 | 
			
		||||
<meta name="twitter:site" content="@{{ . }}">
 | 
			
		||||
{{ end -}}
 | 
			
		||||
{{ range .Site.Authors }}
 | 
			
		||||
{{ with .twitter -}}
 | 
			
		||||
<meta name="twitter:creator" content="@{{ . }}"/>
 | 
			
		||||
<meta name="twitter:creator" content="@{{ . }}">
 | 
			
		||||
{{ end -}}
 | 
			
		||||
{{ end -}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
 | 
			
		||||
<head>
 | 
			
		||||
  <meta charset="utf-8">
 | 
			
		||||
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
 | 
			
		||||
  <meta http-equiv="X-UA-Compatible" content="IE=Edge">
 | 
			
		||||
  <title>
 | 
			
		||||
    {{- if eq .Title .Site.Title -}}
 | 
			
		||||
      {{ .Site.Title }}
 | 
			
		||||
| 
						 | 
				
			
			@ -10,30 +10,30 @@
 | 
			
		|||
    {{- end -}}
 | 
			
		||||
  </title>
 | 
			
		||||
  <meta name="viewport" content="width=device-width, initial-scale=1">
 | 
			
		||||
  <meta name="supported-color-schemes" content="light dark" />
 | 
			
		||||
  <meta name="author" content="{{ .Site.Params.Author }}" />
 | 
			
		||||
  <meta name="robots" content="index,follow" />
 | 
			
		||||
  <link rel="manifest" href="/manifest.json" />
 | 
			
		||||
  <link rel="hub" href="https://pubsubhubbub.superfeedr.com/"/>
 | 
			
		||||
  <meta name="supported-color-schemes" content="light dark">
 | 
			
		||||
  <meta name="author" content="{{ .Site.Params.Author }}">
 | 
			
		||||
  <meta name="robots" content="index,follow">
 | 
			
		||||
  <link rel="manifest" href="/manifest.json">
 | 
			
		||||
  <link rel="hub" href="https://pubsubhubbub.superfeedr.com/">
 | 
			
		||||
  <link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}{{ .Site.Params.favicon }}">
 | 
			
		||||
  <link rel="pgpkey" href="https://keys.openpgp.org/pks/lookup?op=get&options=mr&search={{ .Site.Params.email }}">
 | 
			
		||||
 | 
			
		||||
  <!-- Identities -->
 | 
			
		||||
  {{- range .Site.Params.identities -}}
 | 
			
		||||
    <link href="{{.}}" rel="me"/>
 | 
			
		||||
    <link href="{{.}}" rel="me">
 | 
			
		||||
  {{ end -}}
 | 
			
		||||
 | 
			
		||||
  <!-- Webmentions -->
 | 
			
		||||
  {{ $siteHost := (urls.Parse .Site.BaseURL).Host -}}
 | 
			
		||||
  <link rel="webmention" href="https://webmention.io/{{ $siteHost }}/webmention" />
 | 
			
		||||
  <link rel="pingback" href="https://webmention.io/{{ $siteHost }}/xmlrpc" />
 | 
			
		||||
  <link rel="webmention" href="https://webmention.io/{{ $siteHost }}/webmention">
 | 
			
		||||
  <link rel="pingback" href="https://webmention.io/{{ $siteHost }}/xmlrpc">
 | 
			
		||||
 | 
			
		||||
  <!-- RSS / Alternative Links -->
 | 
			
		||||
  {{- if .IsHome -}}
 | 
			
		||||
  <link rel="alternate" type="application/json" href="{{ .Site.BaseURL }}blog/index.json" title="Brandon Rozek's Blog" />
 | 
			
		||||
  <link rel="alternate" type="application/rss+xml" href="{{ .Site.BaseURL }}blog/index.xml" title="Brandon Rozek's Blog" />
 | 
			
		||||
  <link rel="alternate" type="application/json" href="{{ .Site.BaseURL }}presentations/index.json" title="Brandon Rozek's Presentations}" />
 | 
			
		||||
  <link rel="alternate" type="application/rss+xml" href="{{ .Site.BaseURL }}presentations/index.xml" title="Brandon Rozek's Presentations" />
 | 
			
		||||
  <link rel="alternate" type="application/json" href="{{ .Site.BaseURL }}blog/index.json" title="Brandon Rozek's Blog">
 | 
			
		||||
  <link rel="alternate" type="application/rss+xml" href="{{ .Site.BaseURL }}blog/index.xml" title="Brandon Rozek's Blog">
 | 
			
		||||
  <link rel="alternate" type="application/json" href="{{ .Site.BaseURL }}presentations/index.json" title="Brandon Rozek's Presentations}">
 | 
			
		||||
  <link rel="alternate" type="application/rss+xml" href="{{ .Site.BaseURL }}presentations/index.xml" title="Brandon Rozek's Presentations">
 | 
			
		||||
  {{ else }}
 | 
			
		||||
  {{ range .AlternativeOutputFormats -}}
 | 
			
		||||
    {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,7 +28,7 @@
 | 
			
		|||
    {{ $profile_image := resources.Get (printf "img/%s" .Site.Params.avatar) }}
 | 
			
		||||
    {{ $profile_width := 75 }}
 | 
			
		||||
    {{ $profile_image := $profile_image.Resize (printf "%dx" $profile_width) }}
 | 
			
		||||
    <img class="avatarMask u-photo" width="{{ $profile_width }}" src="{{ $profile_image.RelPermalink }}" alt="Photo of {{ .Site.Params.Author }}" />
 | 
			
		||||
    <img class="avatarMask u-photo" width="{{ $profile_width }}" src="{{ $profile_image.RelPermalink }}" alt="Photo of {{ .Site.Params.Author }}">
 | 
			
		||||
    <div style="display: none">
 | 
			
		||||
        <!-- email / description (for h-card) -->
 | 
			
		||||
        <a class="u-email" href="mailto://{{ .Site.Params.email }}"></a>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue