瀏覽代碼

added metadata, google analytics, minified css|js

tags/v1.0.0
Somrat 6 年之前
父節點
當前提交
d96fd22ddd

static/css/style.css → assets/css/style.css 查看文件


static/js/script.js → assets/js/script.js 查看文件


+ 6
- 1
exampleSite/config.toml 查看文件

@@ -44,7 +44,12 @@ theme = "meghna"
[params]
home= "Home"
logo = "images/logo.png"
gmapAPI = "https://maps.googleapis.com/maps/api/js?key=AIzaSyBI14J_PNWVd-m0gnUBkjmhoQyNyd7nllA"
gmapAPI = "https://maps.googleapis.com/maps/api/js?key=AIzaSyCcABaamniA6OL5YvYSpB3pFMNrXwXnLwU&libraries=places"
# Meta data
description = "Airspace Hugo theme"
author = "Themefisher"
# Google Analitycs
googleAnalitycsID = "Your ID"

# Banner Section
[params.banner]

+ 1
- 0
exampleSite/content/blog/are-you-doing-the-right-way.md 查看文件

@@ -3,6 +3,7 @@ title: "Are You Doing the Right Way"
date: 2018-09-12T14:51:12+06:00
author: John Doe
image: images/blog/blog-post-3.jpg
description : "This is meta description"
---

Praesent sapien massa, convallis a pellentesque nec, egestas non nisi. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Mauris blandit aliquet elit, eget tincidunt nibh pulvinar a.

+ 1
- 0
exampleSite/content/blog/simple-image-post.md 查看文件

@@ -3,6 +3,7 @@ title: "Simple Image Post"
date: 2018-09-12T12:52:36+06:00
image: images/blog/blog-post-1.jpg
author: Jamica Jock
description : "This is meta description"
---

Praesent sapien massa, convallis a pellentesque nec, egestas non nisi. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Mauris blandit aliquet elit, eget tincidunt nibh pulvinar a.

+ 1
- 0
exampleSite/content/blog/simple-post-title.md 查看文件

@@ -3,6 +3,7 @@ title: "Simple Post Title"
date: 2018-09-12T14:39:16+06:00
author: Somrat
image: images/blog/blog-post-2.jpg
description : "This is meta description"
---



+ 11
- 1
layouts/partials/footer.html 查看文件

@@ -53,7 +53,17 @@
{{"<!-- wow.min Script -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/wow/dist/wow.min.js" | absURL}}"></script>
{{"<!-- Custom js -->" | safeHTML}}
<script type="text/javascript" src="{{ "js/script.js" | absURL}}"></script>
{{ $script := resources.Get "js/script.js" | minify}}
<script src="{{ $script.Permalink }}"></script>
{{ "<!-- google analitycs -->" | safeHTML }}
<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', '{{ .Site.Params.googleAnalitycsID }}', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>

+ 0
- 0
layouts/partials/head.html 查看文件


+ 4
- 3
layouts/partials/header.html 查看文件

@@ -2,8 +2,8 @@
<html class="no-js" lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="Meghna One page parallax responsive HTML Template ">
<meta name="author" content="Themefisher">
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
{{ "<!-- Mobile Specific Meta -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -27,7 +27,8 @@
<link rel="stylesheet" href="{{"plugins/slick-carousel/slick/slick.css"|absURL}}">
<link rel="stylesheet" href="{{"plugins/slick-carousel/slick/slick-theme.css"|absURL}}">
{{"<!-- Main Stylesheet -->"|safeHTML}}
<link rel="stylesheet" href="{{"css/style.css"|absURL}}">
{{ $styles := resources.Get "css/style.css" | minify}}
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen">

</head>
{{"<!-- body start -->" | safeHTML}}

Loading…
取消
儲存