diff options
author | Tony Blyler <me@tonyblyler.com> | 2019-08-26 04:32:33 +0300 |
---|---|---|
committer | Tony Blyler <me@tonyblyler.com> | 2019-08-26 04:32:33 +0300 |
commit | 5ef28a4864a991062dfda21be2fa486076524874 (patch) | |
tree | 6de313c84616d51d0cf4e44c7e93c218b99363c6 | |
parent | 82bbfc025125821767845fd9106579bf318ff2cc (diff) |
* Fix static/images symlink errors
* Fix RSSLink deprecation
* Fix https://github.com/gohugoio/hugoThemes/issues/682
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 10 | ||||
-rw-r--r-- | layouts/partials/header.html | 6 | ||||
-rw-r--r--[l---------] | static/images/email.svg | 2 | ||||
-rw-r--r--[l---------] | static/images/facebook.svg | 2 | ||||
-rw-r--r--[l---------] | static/images/github.svg | 2 | ||||
-rw-r--r--[l---------] | static/images/linkedin.svg | 2 | ||||
-rw-r--r--[l---------] | static/images/twitter.svg | 2 | ||||
-rw-r--r--[l---------] | static/images/youtube.svg | 2 |
9 files changed, 16 insertions, 14 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 6de1eee..5f41ace 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -6,7 +6,7 @@ {{ range .Pages }} <h3> <a href="{{ .RelPermalink }}"> - {{ .Title }} {{ if .GetParam "draft" }}DRAFT{{ end }} + {{ .Title }} {{ if .Param "draft" }}DRAFT{{ end }} </a> </h3> <div class="post-meta"> diff --git a/layouts/index.html b/layouts/index.html index 4be8db8..f3bb4ce 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,9 @@ {{ partial "header.html" . }} - {{ range first 10 .Data.Pages }} - {{ if eq .Type "post" }} - {{ .Render "summary" }} - {{ end }} + {{ $pages := .Pages }} + {{ if .IsHome }} + {{ $pages = .Site.RegularPages }} + {{ end }} + {{ range first 10 $pages }} + {{ .Render "summary" }} {{ end }} {{ partial "footer.html" . }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7b065b8..4312b90 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,9 +6,9 @@ <title>{{ .Title }} · {{ .Site.Title }}</title> <link rel="canonical" href="{{ .Permalink }}"> <link rel="stylesheet" type="text/css" href="/css/main.css" /> - {{ if .RSSLink }} - <link href="{{ .RSSLink }}" rel="alternative" type="application/rss+xml" title="{{ .Title }}" /> - {{ end }} + {{ range .AlternativeOutputFormats -}} + {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} {{ partial "head.html" . }} </head> <body> diff --git a/static/images/email.svg b/static/images/email.svg index 2f451a2..b637246 120000..100644 --- a/static/images/email.svg +++ b/static/images/email.svg @@ -1 +1 @@ -../../modules/evil-icons/assets/icons/ei-envelope.svg
\ No newline at end of file +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><path opacity=".9" d="M31.796 24.244l9.97 9.97-1.415 1.414-9.97-9.97z"/><path opacity=".9" d="M18.278 24.287l1.414 1.414-9.9 9.9-1.414-1.41z"/><path d="M25 29.9c-1.5 0-3.1-.6-4.2-1.8L8.3 15.7l1.4-1.4 12.5 12.5c1.6 1.6 4.1 1.6 5.7 0l12.5-12.5 1.4 1.4-12.6 12.5c-1.1 1.1-2.7 1.7-4.2 1.7z"/><path d="M39 38H11c-1.7 0-3-1.3-3-3V15c0-1.7 1.3-3 3-3h28c1.7 0 3 1.3 3 3v20c0 1.7-1.3 3-3 3zM11 14c-.6 0-1 .4-1 1v20c0 .6.4 1 1 1h28c.6 0 1-.4 1-1V15c0-.6-.4-1-1-1H11z"/></svg>
\ No newline at end of file diff --git a/static/images/facebook.svg b/static/images/facebook.svg index a641c2d..f4871dd 120000..100644 --- a/static/images/facebook.svg +++ b/static/images/facebook.svg @@ -1 +1 @@ -../../modules/evil-icons/assets/icons/ei-sc-facebook.svg
\ No newline at end of file +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><path d="M26 20v-3c0-1.3.3-2 2.4-2H31v-5h-4c-5 0-7 3.3-7 7v3h-4v5h4v15h6V25h4.4l.6-5h-5z"/></svg>
\ No newline at end of file diff --git a/static/images/github.svg b/static/images/github.svg index 4b9936d..570d7d8 120000..100644 --- a/static/images/github.svg +++ b/static/images/github.svg @@ -1 +1 @@ -../../modules/evil-icons/assets/icons/ei-sc-github.svg
\ No newline at end of file +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><path fill-rule="evenodd" clip-rule="evenodd" fill="#181616" d="M25 10c-8.3 0-15 6.7-15 15 0 6.6 4.3 12.2 10.3 14.2.8.1 1-.3 1-.7v-2.6c-4.2.9-5.1-2-5.1-2-.7-1.7-1.7-2.2-1.7-2.2-1.4-.9.1-.9.1-.9 1.5.1 2.3 1.5 2.3 1.5 1.3 2.3 3.5 1.6 4.4 1.2.1-1 .5-1.6 1-2-3.3-.4-6.8-1.7-6.8-7.4 0-1.6.6-3 1.5-4-.2-.4-.7-1.9.1-4 0 0 1.3-.4 4.1 1.5 1.2-.3 2.5-.5 3.8-.5 1.3 0 2.6.2 3.8.5 2.9-1.9 4.1-1.5 4.1-1.5.8 2.1.3 3.6.1 4 1 1 1.5 2.4 1.5 4 0 5.8-3.5 7-6.8 7.4.5.5 1 1.4 1 2.8v4.1c0 .4.3.9 1 .7 6-2 10.2-7.6 10.2-14.2C40 16.7 33.3 10 25 10z"/></svg>
\ No newline at end of file diff --git a/static/images/linkedin.svg b/static/images/linkedin.svg index 85e981c..08e4a14 120000..100644 --- a/static/images/linkedin.svg +++ b/static/images/linkedin.svg @@ -1 +1 @@ -../../modules/evil-icons/assets/icons/ei-sc-linkedin.svg
\ No newline at end of file +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><path fill="#231F20" d="M36.1 12H13.9c-1.1 0-1.9.8-1.9 1.9v22.2c0 1 .9 1.9 1.9 1.9h22.2c1.1 0 1.9-.8 1.9-1.9V13.9c0-1.1-.9-1.9-1.9-1.9zM20 34h-4V22h4v12zm-2-13.6c-1.3 0-2.4-1.1-2.4-2.4 0-1.3 1.1-2.4 2.4-2.4 1.3 0 2.4 1.1 2.4 2.4 0 1.3-1.1 2.4-2.4 2.4zM34 34h-4v-6c0-1.6-.4-3.2-2-3.2s-2 1.6-2 3.2v6h-4V22h4v1.4h.2c.5-1 1.8-1.8 3.3-1.8 3.7 0 4.5 2.4 4.5 5.4v7z"/></svg>
\ No newline at end of file diff --git a/static/images/twitter.svg b/static/images/twitter.svg index 9fc3a02..e2c0696 120000..100644 --- a/static/images/twitter.svg +++ b/static/images/twitter.svg @@ -1 +1 @@ -../../modules/evil-icons/assets/icons/ei-sc-twitter.svg
\ No newline at end of file +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><path d="M39.2 16.8c-1.1.5-2.2.8-3.5 1 1.2-.8 2.2-1.9 2.7-3.3-1.2.7-2.5 1.2-3.8 1.5-1.1-1.2-2.7-1.9-4.4-1.9-3.3 0-6.1 2.7-6.1 6.1 0 .5.1.9.2 1.4-5-.2-9.5-2.7-12.5-6.3-.5.7-.8 1.7-.8 2.8 0 2.1 1.1 4 2.7 5-1 0-1.9-.3-2.7-.8v.1c0 2.9 2.1 5.4 4.9 5.9-.5.1-1 .2-1.6.2-.4 0-.8 0-1.1-.1.8 2.4 3 4.2 5.7 4.2-2.1 1.6-4.7 2.6-7.5 2.6-.5 0-1 0-1.4-.1 2.4 1.9 5.6 2.9 9 2.9 11.1 0 17.2-9.2 17.2-17.2V20c1.2-.9 2.2-1.9 3-3.2z"/></svg>
\ No newline at end of file diff --git a/static/images/youtube.svg b/static/images/youtube.svg index 1a89938..8736908 120000..100644 --- a/static/images/youtube.svg +++ b/static/images/youtube.svg @@ -1 +1 @@ -../../modules/evil-icons/assets/icons/ei-sc-youtube.svg
\ No newline at end of file +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><path d="M39.7 18.6s-.3-2.1-1.2-3c-1.1-1.2-2.4-1.2-3-1.3C31.3 14 25 14 25 14s-6.3 0-10.5.3c-.6.1-1.9.1-3 1.3-.9.9-1.2 3-1.2 3S10 21 10 23.4v2.2c0 2.4.3 4.9.3 4.9s.3 2.1 1.2 3c1.1 1.2 2.6 1.2 3.3 1.3 2.4.1 10.2.2 10.2.2s6.3 0 10.5-.3c.6-.1 1.9-.1 3-1.3.9-.9 1.2-3 1.2-3s.3-2.4.3-4.8v-2.2c0-2.4-.3-4.8-.3-4.8zm-17.8 9.8V20l8.1 4.2-8.1 4.2z"/></svg>
\ No newline at end of file |