Adding <link> references

I have a Twitter and GitHub username set on https://micro.blog/account/apps page so as to include a reference to those accounts. How do I add other references?

You have to do that through a custom theme. Maybe you already have one? If not, follow Manton’s instructions here. Then:

  1. Follow this link or go to DesignEdit Custom Themes.

  2. Click on your custom theme.

  3. Click on the template containing the <head> section. Probably layouts/partials/head.html.

  4. Add your <link> element to the template. <link rel="me" href="https://example/yourhandle" />

  5. Press Update Template, wait for your site to rebuild, and celebrate. :tada:

1 Like

Hi @sod , thanks for the help.

I have a modified Ariba theme which I called Pour Over. :grinning_face_with_smiling_eyes:

I added <link rel="me" href="https://islandinthenet.com/" /> to layouts/partials/head.html as follows.

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <!-- Page Meta -->
    <title>
      {{ block "title" . }}
      {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Site.Title }} - {{ .Title }}{{ end }}
      {{ end }}
	</title>

    <meta name="HandheldFriendly" content="True" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    {{ if .RSSLink -}}
      <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
      <link href="{{ "podcast.xml" | absURL }}" rel="alternate" type="application/rss+xml" title="Podcast" />
      <link rel="alternate" type="application/json" title="{{ .Site.Title }}" href="{{ "feed.json" | absURL }}" />
      <link rel="EditURI" type="application/rsd+xml" href="{{ "rsd.xml" | absURL }}" />
    {{ end -}}

    <!-- Styles and Fonts -->
    <link rel="stylesheet" type="text/css" href="{{ "assets/css/normalize.css" | relURL }}" />
    <link rel="stylesheet" type="text/css" href="{{ "assets/css/icons.css" | relURL }}" />
    <link rel="stylesheet" type="text/css" href="{{ "assets/css/screen.css" | relURL }}" />
    <link rel="stylesheet" type="text/css" href="{{ "custom.css" | relURL }}" />

	<link rel="me" href="https://micro.blog/{{ .Site.Author.username }}" />

	 <!-- added by Khurt Williams -->
	 <link rel="me" href="https://islandinthenet.com/" />

	{{ with .Site.Params.twitter_username }}
		<link rel="me" href="https://twitter.com/{{ . }}" />
	{{ end }}
	{{ with .Site.Params.github_username }}
		<link rel="me" href="https://github.com/{{ . }}" />
	{{ end }}
	{{ with .Site.Params.instagram_username }}
		<link rel="me" href="https://instagram.com/{{ . }}" />
	{{ end }}
	<link rel="authorization_endpoint" href="https://micro.blog/indieauth/auth" />
	<link rel="token_endpoint" href="https://micro.blog/indieauth/token" />
	<link rel="micropub" href="https://micro.blog/micropub" />
	<link rel="microsub" href="https://micro.blog/microsub" />
	<link rel="webmention" href="https://micro.blog/webmention" />
	<link rel="subscribe" href="https://micro.blog/users/follow" />
	
    {{ if .Site.Params.replaceGoogleFonts }}
    <link href="https://{{ .Site.Params.replaceGoogleFonts }}/css?family=Bree+Serif|Lato:100,100i,300,300i,400,400i,700,700i|Source+Code+Pro:300,400,500,700" rel="stylesheet">
    {{ else }}
    <link href="https://fonts.googleapis.com/css?family=Bree+Serif|Lato:100,100i,300,300i,400,400i,700,700i|Source+Code+Pro:300,400,500,700" rel="stylesheet">
    {{ end }}

    <!-- Bigfoot - popover footnotes -->
    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
    <script type="text/javascript" src="{{ "assets/bigfoot/dist/bigfoot.js" | relURL }}"></script>
    <link rel="stylesheet" type="text/css" href="{{ "assets/bigfoot/dist/bigfoot-number.css" | relURL }}" />
    <script type="text/javascript">
        $.bigfoot();
    </script>
    <!-- custom css -->
    {{ range .Site.Params.customCSS }}
    <link rel="stylesheet" href="{{ "/css/" | relURL }}{{ . }}">
    {{ end }}
</head>