Browse Source

Merge commit '7c0bc79'

Brendan Abolivier 6 years ago
parent
commit
8d70073fcd
5 changed files with 33 additions and 6 deletions
  1. 2
    2
      layouts/index.html
  2. 18
    1
      layouts/partials/head.html
  3. 7
    3
      layouts/partials/sidebar.html
  4. 6
    0
      static/css/hyde.css
  5. BIN
      static/favicon.png

+ 2
- 2
layouts/index.html View File

@@ -6,7 +6,7 @@
6 6
     <a href="{{ .Permalink }}">{{ .Title }}</a>
7 7
   </h1>
8 8
   <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
9
-  {{ .Summary }}
9
+  {{ .Description }}
10 10
   {{ if .Truncated }}
11 11
   <div class="read-more-link">
12 12
     <a href="{{ .RelPermalink }}">Read More…</a>
@@ -15,4 +15,4 @@
15 15
 </div>
16 16
 {{- end }}
17 17
 </div>
18
-{{- end }}
18
+{{- end }}

+ 18
- 1
layouts/partials/head.html View File

@@ -10,16 +10,33 @@
10 10
 
11 11
   {{ if .IsHome -}}
12 12
   <title>{{ .Site.Title }}</title>
13
+  <meta name="description" content="{{ .Site.Params.description }}" />
14
+  <meta property="og:title" content="{{ .Site.Title }}" />
15
+  <meta property="og:description" content="{{ .Site.Params.description }}" />
16
+  <meta property="og:type" content="website" />
13 17
   {{- else -}}
14 18
   <title>{{ .Title }} &middot; {{ .Site.Title }}</title>
19
+  <meta name="description" content="{{ .Description }}" />
20
+  <meta property="og:title" content="{{ .Title }} &middot; {{ .Site.Title }}" />
21
+  <meta property="og:description" content="{{ .Description }}" />
22
+  <meta property="og:type" content="article" />
23
+  <meta property="article:published_time" content="{{ .PublishDate }}" />
15 24
   {{- end }}
25
+  {{ if .Params.thumbnail -}}
26
+  <meta property="og:image" content="{{ .Site.BaseURL }}images{{ .Params.thumbnail }}"/>
27
+  {{- end }}
28
+  <meta name="author" content="{{ .Site.Params.author }}" />
29
+  <meta name="identifier-url" content="{{ .Site.BaseURL }}" />
30
+  <meta property="og:site_name" content="{{ .Site.Title }}"/>
31
+  <meta property="og:url" content="{{ .Permalink }}"/>
16 32
 
17 33
   <!-- CSS -->
18 34
   <link rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">
19 35
   <link rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css">
20 36
   <link rel="stylesheet" href="{{ .Site.BaseURL }}css/syntax.css">
21 37
   <link rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css">
22
-  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Abril+Fatface|PT+Sans:400,400i,700">
38
+  <link rel="stylesheet" href="{{ .Site.BaseURL }}css/fonts/font.css">
39
+  <link rel="stylesheet" href="{{ .Site.BaseURL }}css/fontawesome-all.min.css">
23 40
 
24 41
   <!-- Icons -->
25 42
   <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">

+ 7
- 3
layouts/partials/sidebar.html View File

@@ -1,19 +1,23 @@
1 1
 <div class="sidebar">
2 2
   <div class="container sidebar-sticky">
3 3
     <div class="sidebar-about">
4
-      <a href="{{ .Site.BaseURL }}"><h1>{{ .Site.Title }}</h1></a>
4
+      <a href="{{ .Site.BaseURL }}"><img src="{{ .Site.BaseURL }}images/logo.png" /></a>
5 5
       <p class="lead">
6 6
       {{ with .Site.Params.description }} {{.}} {{ else }}An elegant open source and mobile first theme for <a href="http://hugo.spf13.com">hugo</a> made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for Jekyll.{{end}}
7 7
       </p>
8 8
     </div>
9 9
 
10 10
     <ul class="sidebar-nav">
11
-      <li><a href="{{ .Site.BaseURL }}">Home</a> </li>
11
+      <li><i class="fas fa-home"></i> <a href="{{ .Site.BaseURL }}">Home</a> </li>
12
+      <li><i class="fab fa-twitter-square"></i> <a href="https://twitter.com/{{ .Site.Params.twitter }}">{{ .Site.Params.twitter }}</a></li>
13
+      <li><i class="fab fa-github-square"></i> <a href="https://github.com/{{ .Site.Params.github }}">{{ .Site.Params.github }}</a></li>
14
+      <li><i class="fas fa-envelope"></i> <a href=mailto:{{ .Site.Params.email }}>{{ .Site.Params.email }}</a></li>
15
+      <li><i class="fas fa-key"></i> <a href="https://{{ .Site.Params.keyserver }}/pks/lookup?op=get&search=0x{{ replace .Site.Params.pgp " " "" }}">{{ .Site.Params.pgp }}</a></li>
12 16
       {{ range .Site.Menus.main -}}
13 17
         <li><a href="{{.URL}}"> {{ .Name }} </a></li>
14 18
       {{- end }}
15 19
     </ul>
16 20
 
17
-    <p>{{ with .Site.Params.copyright }}{{.}}{{ else }}&copy; {{ now.Format "2006"}}. All rights reserved. {{end}}</p>
21
+    <p>{{ with .Site.Params.creativeCommons }}<a href="https://creativecommons.org/licenses/{{ . }}/4.0/"><img src="https://licensebuttons.net/l/{{ . }}/4.0/80x15.png" alt="CC {{.}}" class="inline" /></a>{{ end }}  {{ .Site.Params.author }}</p>
18 22
   </div>
19 23
 </div>

+ 6
- 0
static/css/hyde.css View File

@@ -70,6 +70,12 @@ html {
70 70
   }
71 71
 }
72 72
 
73
+/* Sidebar images */
74
+.sidebar img.inline {
75
+  display: inline;
76
+  margin: 0px;
77
+}
78
+
73 79
 /* Sidebar links */
74 80
 .sidebar a {
75 81
   color: #fff;

BIN
static/favicon.png View File