Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rafed/ramium.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafed Muhammad Yasir <rafed123@yahoo.com>2020-06-11 18:54:40 +0300
committerRafed Muhammad Yasir <rafed123@yahoo.com>2020-06-11 18:54:40 +0300
commit28c6629b1103b967c72106d2bfcc803667788b2d (patch)
tree280c66978a580ec7e8230b83781d317703b56aad
parent5a324eff49765715711c45578df6f2b5dea68c73 (diff)
Added missing head tag, added adsense
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/_default/404-baseof.html17
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--layouts/_default/index-baseof.html17
-rw-r--r--layouts/partials/head.html3
5 files changed, 29 insertions, 13 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 03234ca..cd205e2 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -14,6 +14,7 @@ enableemoji = false
[params]
description = "A description for the meta tag of the site"
googleSearch = ""
+ adsense = ""
showDate = true # make false if dont want to show date
math = false # best to enable this in the front matter of a page
githubProfile = "rafed/ramium/"
diff --git a/layouts/_default/404-baseof.html b/layouts/_default/404-baseof.html
index 27fb982..778adab 100644
--- a/layouts/_default/404-baseof.html
+++ b/layouts/_default/404-baseof.html
@@ -1,9 +1,14 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
+
+<head>
{{- partial "head.html" . -}}
- <body>
- {{- partialCached "navbar.html" . -}}
- {{- block "main" . }}{{- end }}
- {{- partialCached "footer.html" . -}}
- </body>
-</html>
+</head>
+
+<body>
+ {{- partialCached "navbar.html" . -}}
+ {{- block "main" . }}{{- end }}
+ {{- partialCached "footer.html" . -}}
+</body>
+
+</html> \ No newline at end of file
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 6d35a22..1ff5bd0 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,7 +1,9 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
-{{- partial "head.html" . -}}
+<head>
+ {{- partial "head.html" . -}}
+</head>
<body>
{{- partialCached "navbar.html" . -}}
diff --git a/layouts/_default/index-baseof.html b/layouts/_default/index-baseof.html
index 27fb982..778adab 100644
--- a/layouts/_default/index-baseof.html
+++ b/layouts/_default/index-baseof.html
@@ -1,9 +1,14 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
+
+<head>
{{- partial "head.html" . -}}
- <body>
- {{- partialCached "navbar.html" . -}}
- {{- block "main" . }}{{- end }}
- {{- partialCached "footer.html" . -}}
- </body>
-</html>
+</head>
+
+<body>
+ {{- partialCached "navbar.html" . -}}
+ {{- block "main" . }}{{- end }}
+ {{- partialCached "footer.html" . -}}
+</body>
+
+</html> \ No newline at end of file
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 2830015..be8e3d3 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -32,3 +32,6 @@
{{ partial "math.html" . }}
{{ end }}
+{{ if .Site.Params.adsense }}
+<script data-ad-client="{{ .Site.Params.adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
+{{ end }} \ No newline at end of file