diff options
author | somratpro <abdulmonnafsomrat@gmail.com> | 2021-02-14 06:52:12 +0300 |
---|---|---|
committer | somratpro <abdulmonnafsomrat@gmail.com> | 2021-02-14 06:52:12 +0300 |
commit | 3bfc46b953c9617e1f5d690fb50b4b9df84ac629 (patch) | |
tree | 89edd6d994ac4c1b875ca31840314e33bea6700e | |
parent | e5d1fbd19fa130d40e6e5cf027d4ff13e01a7d9d (diff) |
added blogs to blog folder
-rw-r--r-- | exampleSite/config.toml | 4 | ||||
-rw-r--r-- | exampleSite/content/about.md (renamed from exampleSite/content/about/_index.md) | 3 | ||||
-rw-r--r-- | exampleSite/content/blog/Charming-Evening-Field.1.md (renamed from exampleSite/content/Charming-Evening-Field.1.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Charming-Evening-Field.10.md (renamed from exampleSite/content/Charming-Evening-Field.10.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Charming-Evening-Field.11.md (renamed from exampleSite/content/Charming-Evening-Field.11.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Charming-Evening-Field.2.md (renamed from exampleSite/content/Charming-Evening-Field.2.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Charming-Evening-Field.3.md (renamed from exampleSite/content/Charming-Evening-Field.3.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Charming-Evening-Field.4.md (renamed from exampleSite/content/Charming-Evening-Field.4.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Charming-Evening-Field.5.md (renamed from exampleSite/content/Charming-Evening-Field.5.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Charming-Evening-Field.6.md (renamed from exampleSite/content/Charming-Evening-Field.6.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Charming-Evening-Field.7.md (renamed from exampleSite/content/Charming-Evening-Field.7.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Charming-Evening-Field.8.md (renamed from exampleSite/content/Charming-Evening-Field.8.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Charming-Evening-Field.9.md (renamed from exampleSite/content/Charming-Evening-Field.9.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Charming-Evening-Field.md (renamed from exampleSite/content/Charming-Evening-Field.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Organize-Your-Life.1.md (renamed from exampleSite/content/Organize-Your-Life.1.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Organize-Your-Life.2.md (renamed from exampleSite/content/Organize-Your-Life.2.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Organize-Your-Life.3.md (renamed from exampleSite/content/Organize-Your-Life.3.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Organize-Your-Life.4.md (renamed from exampleSite/content/Organize-Your-Life.4.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/blog/Organize-Your-Life.md (renamed from exampleSite/content/Organize-Your-Life.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/contact.md (renamed from exampleSite/content/contact/_index.md) | 2 | ||||
-rw-r--r-- | exampleSite/content/search.md (renamed from exampleSite/content/search/_index.md) | 2 | ||||
-rw-r--r-- | layouts/_default/contact.html (renamed from layouts/contact/list.html) | 0 | ||||
-rw-r--r-- | layouts/_default/index.json | 2 | ||||
-rw-r--r-- | layouts/_default/search.html (renamed from layouts/search/list.html) | 6 | ||||
-rw-r--r-- | layouts/_default/single.html | 19 | ||||
-rw-r--r-- | layouts/about/list.html | 18 | ||||
-rw-r--r-- | layouts/partials/footer.html | 18 | ||||
-rw-r--r-- | layouts/partials/head.html | 6 |
28 files changed, 39 insertions, 41 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 3f3292a..a0b082b 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -5,6 +5,8 @@ title = "Parsa Hugo | Personal Blog Template" theme = "parsa-hugo" summaryLength = "10" paginate = 6 +# google analytics +googleAnalytics = "" # example : UA-123-45 # output [outputs] @@ -91,8 +93,6 @@ email = "exmaple@ymail.com" address = "6 rip carl Avenue CA 90733" # Contact Form Action contact_form_action = "#" -# Google Analitycs -google_analitycs_id = "Your ID" # copyright copyright = "Copyright © 2020 a theme by [themefisher.com](themefisher.com)" diff --git a/exampleSite/content/about/_index.md b/exampleSite/content/about.md index 6220ddf..afa961e 100644 --- a/exampleSite/content/about/_index.md +++ b/exampleSite/content/about.md @@ -4,6 +4,9 @@ date: 2019-05-14T14:46:10+06:00 description: "This is meta description" image: "images/author.jpg" --- + +### Hello, I’m **John Doe** + Creative UI/UX desingerr how loves to craft beautiful that satisfy users needs the product. A best idea generate for the agency complay smart and elegant design When, while the lovely valley teems with vapour around me, and the meridian sun strikes the upper surface of the impenetrable foliage of my trees, and but a diff --git a/exampleSite/content/Charming-Evening-Field.1.md b/exampleSite/content/blog/Charming-Evening-Field.1.md index 60fa03f..60fa03f 100644 --- a/exampleSite/content/Charming-Evening-Field.1.md +++ b/exampleSite/content/blog/Charming-Evening-Field.1.md diff --git a/exampleSite/content/Charming-Evening-Field.10.md b/exampleSite/content/blog/Charming-Evening-Field.10.md index 1057636..1057636 100644 --- a/exampleSite/content/Charming-Evening-Field.10.md +++ b/exampleSite/content/blog/Charming-Evening-Field.10.md diff --git a/exampleSite/content/Charming-Evening-Field.11.md b/exampleSite/content/blog/Charming-Evening-Field.11.md index 159b1be..159b1be 100644 --- a/exampleSite/content/Charming-Evening-Field.11.md +++ b/exampleSite/content/blog/Charming-Evening-Field.11.md diff --git a/exampleSite/content/Charming-Evening-Field.2.md b/exampleSite/content/blog/Charming-Evening-Field.2.md index 01bb5aa..01bb5aa 100644 --- a/exampleSite/content/Charming-Evening-Field.2.md +++ b/exampleSite/content/blog/Charming-Evening-Field.2.md diff --git a/exampleSite/content/Charming-Evening-Field.3.md b/exampleSite/content/blog/Charming-Evening-Field.3.md index 8d2b901..8d2b901 100644 --- a/exampleSite/content/Charming-Evening-Field.3.md +++ b/exampleSite/content/blog/Charming-Evening-Field.3.md diff --git a/exampleSite/content/Charming-Evening-Field.4.md b/exampleSite/content/blog/Charming-Evening-Field.4.md index 4b327df..4b327df 100644 --- a/exampleSite/content/Charming-Evening-Field.4.md +++ b/exampleSite/content/blog/Charming-Evening-Field.4.md diff --git a/exampleSite/content/Charming-Evening-Field.5.md b/exampleSite/content/blog/Charming-Evening-Field.5.md index 96be016..96be016 100644 --- a/exampleSite/content/Charming-Evening-Field.5.md +++ b/exampleSite/content/blog/Charming-Evening-Field.5.md diff --git a/exampleSite/content/Charming-Evening-Field.6.md b/exampleSite/content/blog/Charming-Evening-Field.6.md index 5601247..5601247 100644 --- a/exampleSite/content/Charming-Evening-Field.6.md +++ b/exampleSite/content/blog/Charming-Evening-Field.6.md diff --git a/exampleSite/content/Charming-Evening-Field.7.md b/exampleSite/content/blog/Charming-Evening-Field.7.md index 3a80aec..3a80aec 100644 --- a/exampleSite/content/Charming-Evening-Field.7.md +++ b/exampleSite/content/blog/Charming-Evening-Field.7.md diff --git a/exampleSite/content/Charming-Evening-Field.8.md b/exampleSite/content/blog/Charming-Evening-Field.8.md index d461aac..d461aac 100644 --- a/exampleSite/content/Charming-Evening-Field.8.md +++ b/exampleSite/content/blog/Charming-Evening-Field.8.md diff --git a/exampleSite/content/Charming-Evening-Field.9.md b/exampleSite/content/blog/Charming-Evening-Field.9.md index 1ed3b4a..1ed3b4a 100644 --- a/exampleSite/content/Charming-Evening-Field.9.md +++ b/exampleSite/content/blog/Charming-Evening-Field.9.md diff --git a/exampleSite/content/Charming-Evening-Field.md b/exampleSite/content/blog/Charming-Evening-Field.md index 896b15a..896b15a 100644 --- a/exampleSite/content/Charming-Evening-Field.md +++ b/exampleSite/content/blog/Charming-Evening-Field.md diff --git a/exampleSite/content/Organize-Your-Life.1.md b/exampleSite/content/blog/Organize-Your-Life.1.md index 5e30980..5e30980 100644 --- a/exampleSite/content/Organize-Your-Life.1.md +++ b/exampleSite/content/blog/Organize-Your-Life.1.md diff --git a/exampleSite/content/Organize-Your-Life.2.md b/exampleSite/content/blog/Organize-Your-Life.2.md index 03c317a..03c317a 100644 --- a/exampleSite/content/Organize-Your-Life.2.md +++ b/exampleSite/content/blog/Organize-Your-Life.2.md diff --git a/exampleSite/content/Organize-Your-Life.3.md b/exampleSite/content/blog/Organize-Your-Life.3.md index 56c78e9..56c78e9 100644 --- a/exampleSite/content/Organize-Your-Life.3.md +++ b/exampleSite/content/blog/Organize-Your-Life.3.md diff --git a/exampleSite/content/Organize-Your-Life.4.md b/exampleSite/content/blog/Organize-Your-Life.4.md index aac4dba..aac4dba 100644 --- a/exampleSite/content/Organize-Your-Life.4.md +++ b/exampleSite/content/blog/Organize-Your-Life.4.md diff --git a/exampleSite/content/Organize-Your-Life.md b/exampleSite/content/blog/Organize-Your-Life.md index f69366c..f69366c 100644 --- a/exampleSite/content/Organize-Your-Life.md +++ b/exampleSite/content/blog/Organize-Your-Life.md diff --git a/exampleSite/content/contact/_index.md b/exampleSite/content/contact.md index 7f48019..a07cd1e 100644 --- a/exampleSite/content/contact/_index.md +++ b/exampleSite/content/contact.md @@ -1,7 +1,7 @@ --- title: "Contact" -date: 2019-05-14T14:46:10+06:00 description: "This is meta description" image: "images/contact.jpg" +layout: "contact" --- Strikes the upper surface of the impenetrable foliage of my trees, and but a few stray gleams steal into the inner sanctuary, I throw myself down among the tall grass by the trickling stream and, as I lie close to the earth, a thousand unknown plants are noticed by me.<br><br>When I hear the buzz of the little world among the stalks, and grow familiar with the countless indescribable forms of the insects and flies, then I feel the presence of the Almighty, who formed us in his own image, and the breath of that universal love which bears and sustains. diff --git a/exampleSite/content/search/_index.md b/exampleSite/content/search.md index 45afc9b..d5479bc 100644 --- a/exampleSite/content/search/_index.md +++ b/exampleSite/content/search.md @@ -1,5 +1,5 @@ --- title: "Search Result" -date: 2019-05-14T14:46:10+06:00 description: "This is meta description" +layout: "search" ---
\ No newline at end of file diff --git a/layouts/contact/list.html b/layouts/_default/contact.html index b329002..b329002 100644 --- a/layouts/contact/list.html +++ b/layouts/_default/contact.html diff --git a/layouts/_default/index.json b/layouts/_default/index.json index 07c707f..175f15b 100644 --- a/layouts/_default/index.json +++ b/layouts/_default/index.json @@ -1,5 +1,5 @@ {{- $.Scratch.Add "index" slice -}} -{{- range .Pages -}} +{{- range site.RegularPages -}} {{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}} {{- end -}} {{- $.Scratch.Get "index" | jsonify -}}
\ No newline at end of file diff --git a/layouts/search/list.html b/layouts/_default/search.html index 138602e..c5a05b5 100644 --- a/layouts/search/list.html +++ b/layouts/_default/search.html @@ -34,4 +34,10 @@ </section> <!-- /search result --> + +{{ "<!-- Search index -->" | safeHTML }} +<script> + var indexURL = {{"index.json" | absURL}} +</script> + {{ end }}
\ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index fe8268b..b056447 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,5 +1,8 @@ {{ define "main" }} +<!-- checking blog --> +{{ if or (eq .Section "post") (eq .Section "posts") (eq .Section "blog") (eq .Section "blogs") (eq .Section "news") (eq .Section "categories") (eq .Section "tags") }} + <!-- page-title --> <section class="section bg-secondary"> <div class="container"> @@ -32,4 +35,20 @@ </section> <!-- /blog single --> +<!-- regular page --> +{{ else }} +<section class="section"> + <div class="container"> + <div class="row"> + <div class="col-lg-12"> + <h2 class="mb-4">{{.Title }}</h2> + {{with .Params.image}}<img src="{{. | absURL }}" alt="{{site.Params.author}}" class="img-fluid w-100 mb-4">{{end}} + <div class="content">{{ .Content }}</div> + </div> + </div> + </div> +</section> +{{ end }} +<!-- /regular page --> + {{ end }}
\ No newline at end of file diff --git a/layouts/about/list.html b/layouts/about/list.html deleted file mode 100644 index 179ad9c..0000000 --- a/layouts/about/list.html +++ /dev/null @@ -1,18 +0,0 @@ -{{ define "main" }} - -<section class="section"> - <div class="container"> - <div class="row"> - <div class="col-lg-12"> - <h2 class="mb-4">{{.Title }}</h2> - <img src="{{.Params.Image | absURL }}" alt="{{site.Params.author}}" class="img-fluid w-100 mb-4"> - <h3 class="font-weight-light">Hello, I’m <span class="font-weight-bold">{{site.Params.author}}</span></h3> - {{ .Content }} - </div> - </div> - </div> -</section> - -{{partial "instafeed.html" . }} - -{{ end }}
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f3acde5..3cdf0c3 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -43,12 +43,6 @@ </footer> -{{ if site.Params.search }} -<script> - var indexURL = {{ "index.json" | absURL }} -</script> -{{ end }} - {{ "<!-- JS Plugins -->" | safeHTML }} {{ range site.Params.plugins.js}} <script src="{{ .link | absURL }}"></script> @@ -58,18 +52,6 @@ {{ $script := resources.Get "js/script.js" | minify}} <script src="{{ $script.Permalink }}"></script> -{{ "<!-- google analitycs -->" | safeHTML }} -{{ with site.Params.google_analitycs_id }} -<script> - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) - })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); - ga('create', '{{ . }}', 'auto'); - ga('send', 'pageview'); -</script> -{{ end }} - <!-- cookie --> {{ if site.Params.cookies.enable }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c0ca5b2..7c49453 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -20,5 +20,11 @@ {{ "<!--Favicon-->" | safeHTML }} <link rel="shortcut icon" href="{{ `images/favicon.png` | absURL }} " type="image/x-icon"> <link rel="icon" href="{{ `images/favicon.png` | absURL }} " type="image/x-icon"> + + {{ with .Params.image }} + <meta property="og:image" content="{{ . | absURL }}" /> + {{ end }} + {{ template "_internal/opengraph.html" . }} + {{ template "_internal/google_analytics_async.html" . }} </head>
\ No newline at end of file |