diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index d2230ea..6bf8489 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -10,9 +10,14 @@ markup: unsafe: true # Enable Google Analytics -# googleAnalytics: UA-12345 +googleAnalytics: UA-12345 # Enable Disqus forum -# disqusShortname: does-not-exist +disqusShortname: does-not-exist # Enable global emoji support +enableEmoji: true + +# Custom parameters +params: + gitRepo: https://github.com/hossainemruz/toha-example-site diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9db882f..8249162 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -20,7 +20,7 @@
-
{{ partial "helpers/get-author-name.html" . }}
+
{{ partial "helpers/get-author-name.html" . }}

{{ .Page.Date.Format "January 2, 2006" }}

@@ -32,7 +32,15 @@ {{ .Page.Content }}
- + +
+ + + Improve This Page + +
+ +
{{ $currentPage := . }} diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html new file mode 100644 index 0000000..ff4bffb --- /dev/null +++ b/layouts/shortcodes/img.html @@ -0,0 +1,17 @@ +{{.Get diff --git a/layouts/shortcodes/split.html b/layouts/shortcodes/split.html new file mode 100644 index 0000000..4622f95 --- /dev/null +++ b/layouts/shortcodes/split.html @@ -0,0 +1,7 @@ +
+ {{ range $idx, $val := split .Inner "---" }} +
+ {{ $val | markdownify }} +
+ {{ end }} +
diff --git a/layouts/shortcodes/vs.html b/layouts/shortcodes/vs.html new file mode 100644 index 0000000..b5ca647 --- /dev/null +++ b/layouts/shortcodes/vs.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/static/assets/css/single.css b/static/assets/css/single.css index e37ec63..442f0ae 100644 --- a/static/assets/css/single.css +++ b/static/assets/css/single.css @@ -31,6 +31,10 @@ body { text-align: center; } +.author-name { + margin-top: 0px; +} + .author-profile img { height: 120px; width: 120px; @@ -204,6 +208,10 @@ mark { padding: 10px; } +.btn-improve-page{ + text-align: right; +} + @media only screen and (max-width: 768px) { .wrapper { padding-left: 0px; diff --git a/static/assets/css/style.css b/static/assets/css/style.css index 41f3dc7..f477740 100644 --- a/static/assets/css/style.css +++ b/static/assets/css/style.css @@ -86,6 +86,22 @@ a:hover { padding-top: 3.5rem; } +img.center{ + display: block; + margin-left: auto; + margin-right: auto; +} + +img.left{ + display: block; + margin-right: auto; +} + +img.right{ + display: block; + margin-left: auto; +} + .card { box-shadow: none; transition: all 0.3s ease-out;