mirror of
				https://github.com/Brandon-Rozek/website-theme.git
				synced 2025-10-30 09:31:12 +00:00 
			
		
		
		
	Made webmention portion of code more generic
This commit is contained in:
		
							parent
							
								
									4d5f0f30cb
								
							
						
					
					
						commit
						a574a122a4
					
				
					 4 changed files with 7 additions and 9 deletions
				
			
		|  | @ -5,11 +5,6 @@ | |||
|     <link rel="canonical" href="{{ .Permalink }}"> | ||||
|     <meta name="robots" content="noindex"> | ||||
|     <meta charset="utf-8"> | ||||
|    | ||||
|     <!-- Webmentions --> | ||||
|     <link rel="webmention" href="https://webmention.io/brandonrozek.com/webmention" /> | ||||
|     <link rel="pingback" href="https://webmention.io/brandonrozek.com/xmlrpc" /> | ||||
| 
 | ||||
|     <meta http-equiv="refresh" content="0; url={{ .Permalink }}"> | ||||
|   </head> | ||||
|   <body> | ||||
|  |  | |||
|  | @ -14,7 +14,7 @@ | |||
|       </div> | ||||
|       <!-- author --> | ||||
|       <h1 class="author title p-name">{{ .Site.Params.Author }}</h1> | ||||
|       <a style="display: none" rel="me" class="u-url" href="https://brandonrozek.com"></a> | ||||
|       <a style="display: none" rel="me" class="u-url" href="{{ .Site.BaseURL }}"></a> | ||||
|       <!-- description --> | ||||
|       <p class="p-note"> | ||||
|         {{ .Site.Params.description | safeHTML }} | ||||
|  |  | |||
|  | @ -14,6 +14,7 @@ | |||
|   <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 }}"> | ||||
| 
 | ||||
|   <!-- Identities --> | ||||
|  | @ -22,8 +23,9 @@ | |||
|   {{ end -}} | ||||
| 
 | ||||
|   <!-- Webmentions --> | ||||
|   <link rel="webmention" href="https://webmention.io/brandonrozek.com/webmention" /> | ||||
|   <link rel="pingback" href="https://webmention.io/brandonrozek.com/xmlrpc" /> | ||||
|   {{ $siteHost := (urls.Parse .Site.BaseURL).Host -}} | ||||
|   <link rel="webmention" href="https://webmention.io/{{ $siteHost }}/webmention" /> | ||||
|   <link rel="pingback" href="https://webmention.io/{{ $siteHost }}/xmlrpc" /> | ||||
| 
 | ||||
|   <!-- RSS / Alternative Links --> | ||||
|   {{- if .IsHome -}} | ||||
|  |  | |||
|  | @ -1,6 +1,7 @@ | |||
| <!-- Webmentions --> | ||||
| <div id="webmentions"></div> | ||||
| <form method="post" action="https://webmention.io/brandonrozek.com/webmention"> | ||||
| {{ $siteHost := (urls.Parse .Site.BaseURL).Host -}} | ||||
| <form method="post" action="https://webmention.io/{{ $siteHost }}/webmention"> | ||||
|   <p>Have you published a response to this? <label for="webmention-source">Let me know the <abbr title="Uniform Resource Locator">URL</abbr></label>:</p> | ||||
|   <input type="url" name="source" id="webmention-source"> | ||||
|   <input type="hidden" name="target" value="{{ .Permalink }}"> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue