include plausible script via theme settings
remove custom edit update theme
This commit is contained in:
parent
4ff7b0a7e4
commit
fcb9432762
3 changed files with 7 additions and 49 deletions
10
config.yaml
10
config.yaml
|
@ -1,5 +1,5 @@
|
|||
baseurl: "https://nolog.cz/"
|
||||
title: "NoLog.cz IT kolektiv"
|
||||
title: "NoLog.cz"
|
||||
theme: "zen"
|
||||
language: "cz-cs"
|
||||
|
||||
|
@ -8,15 +8,15 @@ language: "cz-cs"
|
|||
params:
|
||||
contact: "nolog-it@riseup.net"
|
||||
copyright: "— No logs, no masters! —"
|
||||
description: "nolog.cz" # Set site description, used in meta tags and JSON-LD
|
||||
description: "NoLog.cz" # Set site description, used in meta tags and JSON-LD
|
||||
favicon: "favicon.ico" # Relative path to favicon in json feed, no leading slash.
|
||||
jquery: true
|
||||
jquery: false
|
||||
feedlinks: false # Show feed links in the footer.
|
||||
footer: " "
|
||||
# icon: "images/logo.png" # Relative path to icon in json feed and JSON-LD, no leading slash.
|
||||
# image: "images/logo.png" # Relative path to site image in JSON-LD, no leading slash.
|
||||
# apple-touch-icon: "images/logo.png"
|
||||
logo: true # Turn off the logo.
|
||||
logo: false # Turn off the logo.
|
||||
logoWidth: 74
|
||||
mainSections: # The sections you want to have listed on the front page.
|
||||
- "" # Default to the section with most content if not set.
|
||||
|
@ -25,6 +25,8 @@ params:
|
|||
# searchLimit: 20 # Max number of search hits, default 20.
|
||||
sidebar: true # Show a sidebar to the right
|
||||
realfavicongenerator: true
|
||||
plausibleSiteID: "nolog.cz" # Plausible site id/domain.
|
||||
plausibleTrackerURL: "https://plausible.nolog.cz/js/plausible.js" # Plausible url, schemaless and no slash on end. Optional, defaults to "plausible.io/…"
|
||||
|
||||
DefaultContentLanguage: cs
|
||||
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="nojs" lang="{{ .Site.LanguageCode | default .Site.Language.Lang }}" dir="{{ .Site.Language.LanguageDirection | default "ltr" }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<title>{{ block "title" . }}{{ .Title }} – {{ .Site.Title }}{{ end }}</title>
|
||||
{{ partial "meta.html" . }}
|
||||
{{ partialCached "styles.html" . }}
|
||||
{{- block "head" . }}{{ end }}
|
||||
{{ partial "meta_json_ld.html" . }}
|
||||
{{ partial "scripts.html" . }}
|
||||
{{ partialCached "tracking.html" . }}
|
||||
<script async defer data-domain="nolog.cz" src="https://plausible.nolog.cz/js/plausible.js"></script>
|
||||
</head>
|
||||
|
||||
<body class="{{ if .IsPage }}single-page{{ else }}list-page{{ end }}{{ if .IsHome }} front{{ end }}">
|
||||
<div class="page layout__page{{ if $.Param "sidebar" | default true }} layout__sidebar-second{{ end }}">
|
||||
<header class="header layout__header">
|
||||
{{ if $.Param "logo" | default true }}<a href="{{ "/" | relLangURL }}" title="Home" rel="home" class="header__logo"><img src="{{ "/images/logo.png" | relURL }}" alt="Home" class="header__logo-image"></a>{{ end }}
|
||||
<h1 class="header__site-name">
|
||||
<a href="{{ "/" | relLangURL }}" title="Home" class="header__site-link" rel="home"><span>{{ .Site.Title }}</span></a>
|
||||
</h1>
|
||||
<div class="region header__region">
|
||||
{{ if .Site.IsMultiLingual }}{{ partial "language-selector.html" . }}{{ end -}}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{ partial "menu.html" . }}
|
||||
|
||||
{{ block "main" . }}{{ end }}
|
||||
|
||||
{{ if $.Param "sidebar" }}{{ partial "sidebar.html" . }}{{ end -}}
|
||||
|
||||
<footer class="footer layout__footer">
|
||||
{{ if $.Param "feedlinks" }}{{ partial "feedlinks.html" . }}{{ end -}}
|
||||
<p>{{ with $.Param "copyright" }}{{ . | markdownify }}{{ else }}<span>© {{ .Site.Title }}</span>{{ end }}</p>
|
||||
{{ with $.Param "footer" }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
{{ if $.Param "poweredby" }}<p>Powered by <a href="https://gohugo.io/">Hugo</a> and the <a href="https://github.com/frjo/hugo-theme-zen">Zen theme</a>.</p>{{ end }}
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
{{ if $.Param "mobilemenu" }}{{ partial "mobilemenu.html" . }}{{ end -}}
|
||||
</body>
|
||||
</html>
|
|
@ -1 +1 @@
|
|||
Subproject commit 437d16084792e45f9dbcfa8a2c14086e8b8f10cb
|
||||
Subproject commit 73635d834b47ffc25d8ed9ecef6641adb8c34f8e
|
Loading…
Reference in a new issue