Skip to content

Commit

Permalink
fix: deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
coolapso committed Jun 8, 2024
1 parent 9f82305 commit 980b28c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions exampleSite/config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
baseURL: 'https://4s3ti.net/'
languageCode: 'pt-pt'
theme: "hello-friend-4s3ti"
author:
name: "4s3tidotnet"
title: '4s3ti.net'
copyright: "All Rights Reserved"
IsMultiLingual: true
defaultContentLanguage: pt-pt

params:
author:
name: "4s3tidotnet"

languages:
pt-pt:
weight: 1
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" content="{{ if .Params.author }}{{ .Params.author }}{{ else }}{{ range .Site.Author }}{{ . }} {{ end }}{{ end }}">
<meta name="author" content="{{ if .Params.author.name }}{{ .Params.author.name }}{{ else }}{{ range .Site.Author }}{{ . }} {{ end }}{{ end }}">
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.homeSubtitle }}{{ else }}{{ if .Params.Description }}{{ .Params.Description }}{{ else }}{{ .Summary | plainify }}{{ end }}{{ end }}" />
<meta name="keywords" content="{{ .Site.Params.keywords }}{{ if .Params.tags }}{{ range .Params.tags }}, {{ . }}{{ end }}{{ end }}" />
<meta name="robots" content="noodp" />
Expand Down Expand Up @@ -70,6 +70,6 @@
{{- end }}

<!-- Google Analytics internal template -->
{{- if .Site.GoogleAnalytics }}
{{- if .Site.Config.Services.GoogleAnalytics.ID }}
{{ template "_internal/google_analytics.html" . }}
{{- end}}
2 changes: 1 addition & 1 deletion layouts/posts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h1 class="post-title">
{{- end }}


{{ if .Site.DisqusShortname }}
{{ if .Site.Config.Services.Disqus.Shortname }}
{{ if not (eq .Params.Comments "false") }}
<div id="comments">
{{ template "_internal/disqus.html" . }}
Expand Down

0 comments on commit 980b28c

Please sign in to comment.