Updated generating meta information for the homepage. Fixed margins on mobile menu, added icons next to external services (twitter, discord, etc.)

This commit is contained in:
Chris 2018-05-10 23:05:09 -04:00
parent c0b4462352
commit 4b72b62370
2 changed files with 7 additions and 15 deletions

View File

@ -10,15 +10,7 @@
<meta property="og:title" content="{{ if ne .URL " / " }}{{ .Title }} &middot; {{ end }}{{ .Site.Title }}" />
<meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:url" content="{{ .Permalink }}" />
{{ if .IsHome }}
<meta property="og:description" content="{{ .Summary }}" />
<meta name="description" content="{{ .Summary }}" />
<meta property="og:type" content="website" />
<meta property="og:image" content="{{ .Site.BaseURL }}/images/logo.png" />
{{ else if .IsPage }}
{{ .Render "meta" }}
{{ end }}
{{ .Render "meta" }}
<link rel="icon" href="{{ .Site.BaseURL }}/favicon.ico" />
<link rel="shortcut icon" href="{{ .Site.BaseURL }}/favicon.ico" type="image/x-icon" />

View File

@ -35,14 +35,14 @@
</a>
{{ end }} {{ end }}
<a class="navbar-item is-hidden-desktop" href="{{ .Site.Params.DiscordURL }}" target="_blank">
discord
<a class="navbar-item px-lg is-hidden-desktop" href="{{ .Site.Params.DiscordURL }}" target="_blank">
<i class="fab fa-discord mr-sm"></i> discord
</a>
<a class="navbar-item is-hidden-desktop" href="{{ .Site.Params.TwitterURL }}" target="_blank">
twitter
<a class="navbar-item px-lg is-hidden-desktop" href="{{ .Site.Params.TwitterURL }}" target="_blank">
<i class="fab fa-twitter mr-sm"></i> twitter
</a>
<a class="navbar-item is-hidden-desktop" href="{{ .Site.Params.GithubURL }}" target="_blank">
github
<a class="navbar-item px-lg is-hidden-desktop" href="{{ .Site.Params.GithubURL }}" target="_blank">
<i class="fab fa-github mr-sm"></i> github
</a>
</div>