From cf95cacd1569372ffd343fae6ff56432a6c0f687 Mon Sep 17 00:00:00 2001 From: Huy Tran Date: Tue, 23 Jan 2018 10:02:05 +0700 Subject: [PATCH] refactoring the footer --- layouts/_default/baseof.html | 10 ++-- layouts/_default/list.html | 5 +- layouts/_default/single.html | 46 +++++++------- layouts/partials/disqus.html | 23 +++++++ layouts/partials/head.html | 75 ++++++++++++----------- layouts/partials/social.html | 69 +++++++++++---------- static/css/custom.css | 6 +- static/css/main.css | 0 static/css/syntax.css | 112 +++++++++++++++++++---------------- static/js/main.js | 0 10 files changed, 193 insertions(+), 153 deletions(-) create mode 100644 layouts/partials/disqus.html create mode 100644 static/css/main.css create mode 100644 static/js/main.js diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 300045f..c7ed356 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,11 +1,11 @@ {{ partial "head.html" . }} - {{ partial "sidebar.html" . }} + {{ partial "sidebar.html" . }}
- {{ block "main" . }}{{ end }} -
+ {{ block "main" . }}{{ end }} - + \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index a7cdba9..320a629 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -10,10 +10,9 @@ {{- end }} {{ define "footer" }} - -
+ {{ if .Site.GoogleAnalytics -}} {{ template "_internal/google_analytics_async.html" . }} {{- end}} -
+ {{- end }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 074dc32..1103e80 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,8 +4,10 @@ {{ if ne .Params.showpagemeta false }}