small fixes and optimizations

This commit is contained in:
Gabriele Musco 2021-12-21 09:25:48 +01:00
parent c0557c2fd0
commit 6819e4dc89
No known key found for this signature in database
GPG Key ID: 0587A5D65B5DC99E
5 changed files with 8 additions and 2 deletions

View File

@ -22,6 +22,8 @@ These are some parameters you can use in your `config.toml` to customize Ficurin
baseURL = "https://example.com/"
theme = "hugo-ficurinia"
title = "My nice blog"
languageCode = "en"
defaultContentLanguage = "en"
# this will be included in the footer after the current year the site is last
# built, followed by the (c) symbol

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="{{ if .IsHome }}home{{ end }}">
<html class="{{ if .IsHome }}home{{ end }}" lang="{{ .Site.LanguageCode }}">
{{- partial "head.html" . -}}
<body>
<div id="baseContainer">

View File

@ -4,7 +4,7 @@
if (location.host != new URL("{{ .Site.BaseURL }}").host) location.href = "{{ .Site.BaseURL }}"
</script>
{{ end }}
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />

View File

@ -1,6 +1,8 @@
<a
{{ if eq (lower .Identifier) "mastodon" }}
rel="me"
{{ else }}
rel="noreferrer"
{{ end }}
target="_blank"
class="nerdlink"

View File

@ -1,5 +1,7 @@
<!-- NOTE: this is deprecated in favor of iconlink -->
<a
target="_blank"
rel="noreferrer"
class="nerdlink"
href="{{ index . 1 }}">
{{ if eq (lower (index . 0)) "gitlab" }}