mirror of
https://github.com/alexandrev/xslt-lab.git
synced 2026-09-21 13:03:15 +00:00
+1
This commit is contained in:
+6
-1
@@ -1,4 +1,4 @@
|
||||
baseURL = "https://alexandrev.github.io/xslt-lab/"
|
||||
baseURL = "https://blog.xsltplayground.com/"
|
||||
languageCode = "en-us"
|
||||
title = "XSLT Lab"
|
||||
paginate = 10
|
||||
@@ -9,6 +9,11 @@ enableRobotsTXT = true
|
||||
subtitle = "Helm and XSLT playground with a lightweight docs site."
|
||||
lead = "Articles, release notes, and pointers to the Helm repo all live here. Build locally or publish from the docs folder without disturbing existing chart artifacts."
|
||||
|
||||
[params.adsense]
|
||||
# Prefer setting ADSENSE_CLIENT and ADSENSE_INARTICLE_SLOT env vars when building if you don't want the values committed.
|
||||
client = "ca-pub-1549720748100858"
|
||||
inArticleSlot = ""
|
||||
|
||||
[menu]
|
||||
[[menu.main]]
|
||||
name = "Home"
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.subtitle }}{{ end }}">
|
||||
{{ partial "adsense/head.html" . }}
|
||||
<link rel="stylesheet" href="{{ "css/main.css" | relURL }}">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p class="muted">{{ .Date.Format "02 Jan 2006" }}</p>
|
||||
{{ with .Params.description }}<p class="lead">{{ . }}</p>{{ end }}
|
||||
{{ partial "adsense/in-article.html" . }}
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{{- $client := or .Site.Params.adsense.client (getenv "ADSENSE_CLIENT") -}}
|
||||
{{- if and $client (ne hugo.Environment "development") -}}
|
||||
<meta name="google-adsense-account" content="{{ $client }}">
|
||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client={{ $client }}" crossorigin="anonymous"></script>
|
||||
{{- end -}}
|
||||
@@ -0,0 +1,15 @@
|
||||
{{- $client := or .Site.Params.adsense.client (getenv "ADSENSE_CLIENT") -}}
|
||||
{{- $slot := or .Site.Params.adsense.inArticleSlot (getenv "ADSENSE_INARTICLE_SLOT") -}}
|
||||
{{- if and $client $slot (ne hugo.Environment "development") -}}
|
||||
<div class="ad ad-in-article">
|
||||
<ins class="adsbygoogle"
|
||||
style="display:block; text-align:center;"
|
||||
data-ad-layout="in-article"
|
||||
data-ad-format="fluid"
|
||||
data-ad-client="{{ $client }}"
|
||||
data-ad-slot="{{ $slot }}"></ins>
|
||||
</div>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
{{- end -}}
|
||||
@@ -0,0 +1 @@
|
||||
blog.xsltplayground.com
|
||||
@@ -183,6 +183,17 @@ h1, h2, h3, h4 {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.ad {
|
||||
margin: 26px 0;
|
||||
padding: 14px 0;
|
||||
border-top: 1px solid var(--border);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.ad-in-article {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.post .content p {
|
||||
margin: 14px 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user