mirror of
				https://github.com/Brandon-Rozek/website-theme.git
				synced 2025-10-30 09:31:12 +00:00 
			
		
		
		
	Fixed broken avatar img links
This commit is contained in:
		
							parent
							
								
									8513bece81
								
							
						
					
					
						commit
						71d9811eb8
					
				
					 7 changed files with 9 additions and 9 deletions
				
			
		|  | @ -15,7 +15,7 @@ | |||
|       xml:base="{{ .Permalink }}"> | ||||
|     <title>{{ if eq  .Title  .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }}</title> | ||||
|     <id>{{ .Permalink }}</id> | ||||
|     <image>{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}</image> | ||||
|     <image>{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}</image> | ||||
|     <description>{{ .Description }}</description> | ||||
|     <generator uri="https://gohugo.io">Hugo</generator> | ||||
|     <author> | ||||
|  |  | |||
|  | @ -12,7 +12,7 @@ | |||
|   <channel> | ||||
|     <title>{{ if eq  .Title  .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }}</title> | ||||
|     <link>{{ .Permalink }}</link> | ||||
|     <image>{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}</image> | ||||
|     <image>{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}</image> | ||||
|     <description>{{ .Description }}</description> | ||||
|     <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }} | ||||
|     <language>{{.}}</language>{{end}}{{ with .Site.Author.email }} | ||||
|  |  | |||
|  | @ -8,7 +8,7 @@ | |||
|     <h1 class='title p-name'>{{ .Title }}</h1> | ||||
|     <a style="display: none" class="u-url" href="{{ .Permalink }}"></a> | ||||
|     <div style="display: none;" rel="author" class="h-card p-author"> | ||||
|       <img class="u-photo" src="{{ .Site.BaseURL }}/img/avatar.jpg"/> | ||||
|       <img class="u-photo" src="{{ .Site.BaseURL }}img/avatar.jpg"/> | ||||
|       <span > {{ .Site.Params.Author }}</span> | ||||
|     </div> | ||||
|     {{ .Scratch.Set "beforeDateString" "Published on "}} | ||||
|  | @ -31,7 +31,7 @@ | |||
|     "@type": "NewsArticle", | ||||
|     "headline": "{{ .Title }}", | ||||
|     "image": [ | ||||
|       "{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}" | ||||
|       "{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}" | ||||
|      ], | ||||
|     "datePublished": "{{ .Date.Format "2006-01-02" }}", | ||||
|     "author": [{ | ||||
|  | @ -39,7 +39,7 @@ | |||
|         "name": "{{ .Site.Params.Author }}", | ||||
|         "url": "{{ .Site.BaseURL }}", | ||||
|         "email": "mailto://{{ .Site.Params.email }}", | ||||
|         "image": "{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}" | ||||
|         "image": "{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}" | ||||
|       }] | ||||
|   } | ||||
|   </script> | ||||
|  |  | |||
|  | @ -10,7 +10,7 @@ | |||
|         {{ $profile_width := 250 }} | ||||
|         {{ $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 src="{{ .Site.BaseURL }}/img/avatar-border.svg" /> | ||||
|         <img src="{{ .Site.BaseURL }}img/avatar-border.svg" /> | ||||
|       </div> | ||||
|       <!-- author --> | ||||
|       <h1 class="author title p-name">{{ .Site.Params.Author }}</h1> | ||||
|  |  | |||
|  | @ -8,7 +8,7 @@ | |||
|     <h1 class='title p-name'>{{ .Title }}</h1> | ||||
|     <a style="display: none" class="u-url" href="{{ .Permalink }}"></a> | ||||
|     <div style="display: none;" rel="author" class="h-card p-author"> | ||||
|       <img class="u-photo" src="{{ .Site.BaseURL }}/img/avatar.jpg"/> | ||||
|       <img class="u-photo" src="{{ .Site.BaseURL }}img/avatar.jpg"/> | ||||
|       <span > {{ .Site.Params.Author }}</span> | ||||
|     </div> | ||||
|     <!-- content --> | ||||
|  |  | |||
|  | @ -44,7 +44,7 @@ | |||
|     "@context": "http://schema.org", | ||||
|     "@type": "Person", | ||||
|     "email": "mailto://{{ .Site.Params.email }}", | ||||
|     "image": "{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}", | ||||
|     "image": "{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}", | ||||
|     "name": "{{ .Site.Params.Author }}", | ||||
|     "url": "{{ .Site.BaseURL }}" | ||||
|   } | ||||
|  |  | |||
|  | @ -8,7 +8,7 @@ | |||
|     <h1 class='title p-name'>{{ .Title }}</h1> | ||||
|     <a style="display: none" class="u-url" href="{{ .Permalink }}"></a> | ||||
|     <div style="display: none;" rel="author" class="h-card p-author"> | ||||
|       <img class="u-photo" src="{{ .Site.BaseURL }}/img/avatar.jpg"/> | ||||
|       <img class="u-photo" src="{{ .Site.BaseURL }}img/avatar.jpg"/> | ||||
|       <span > {{ .Site.Params.Author }}</span> | ||||
|     </div> | ||||
|     {{ .Scratch.Set "beforeDateString" "Published on "}} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue