123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- <meta charset="utf-8">
- <meta name="robots" content="all,follow">
- <meta name="googlebot" content="index,follow,snippet,archive">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="google-site-verification" content="rt-gC7eueNAj27a3wIEfBwFzJr_ji27cPYIH1Onllxk" />
- {{if or (eq .Type "collection") (eq .Type "blog") (eq .Type "news") }}
- <title>{{ .Params.meta_title }}</title>
- {{ else }}
- {{ $title_plain := .Title | markdownify | plainify }}
- <title>{{ $title_plain }}</title>
- {{ end }}
- <meta name="author" content="{{ .Param "author" }}" />
- <!-- <meta name="keywords" content="{{ .Site.Params.keywords }}" /> -->
- {{if or (eq .Type "collection") (eq .Type "blog") (eq .Type "news") }}
- <meta name="description" content="{{ .Params.meta_description }}">
- {{ else }}
- {{ $description_plain := default .Site.Params.defaultDescription .Description | markdownify | plainify }}
- <meta name="description" content="{{ $description_plain }}">
- {{ end }}
- <!-- Google Tag Manager -->
- <script>(function (w, d, s, l, i) {
- w[l] = w[l] || []; w[l].push({
- 'gtm.start':
- new Date().getTime(), event: 'gtm.js'
- }); var f = d.getElementsByTagName(s)[0],
- j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
- 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
- })(window, document, 'script', 'dataLayer', 'GTM-TTKNPPT');</script>
- <!-- End Google Tag Manager -->
- <!-- Sitemap -->
- <link rel="sitemap" type="application/xml" href="https://bhouse.com.tw/sitemap.xml">
- {{ $is_blog := and (eq .Type "blog") (eq .Kind "page") }}
- {{ if $is_blog }}
- <!-- Google 結構化資料 -->
- <script type="application/ld+json">
- {
- "@context": "http://schema.org",
- "@type": "BreadcrumbList",
- "itemListElement": [{
- "@type": "ListItem",
- "position": 1,
- "item":"https://bhouse.com.tw/",
- "name": "首頁"
- },{ "@type": "ListItem",
- "position": 2,
- "item": "https://bhouse.com.tw/blog_main/",
- "name":"成家知識專欄"
- },{"@type": "ListItem",
- "position": 3,
- "item":"{{ .Permalink }}",
- "name": "{{ .Params.title }}"
- }]
- }
- </script>
- <script type="application/ld+json">
- {
- "@context": "https://schema.org",
- "@type": "Article",
- "mainEntityOfPage": {
- "@type": "WebPage",
- "@id": "{{ .Permalink }}"
- },
- "headline": "{{ .Params.title }}",
- "image": [
- "https://bhouse.com.tw{{ .Params.image | relURL }}"
- ],
- "author": {
- "@type": "Organization",
- "name": "小寶優居"
- },
- "publisher": {
- "@type": "Organization",
- "name": "小寶優居",
- "logo": {
- "@type": "ImageObject",
- "url": "https://bhouse.com.tw/img/home/bt_index@2x.png"
- }
- },
- "datePublished": "{{ .Date.Format "2006-01-02" }}",
- "dateModified": "{{ if .Lastmod }}{{ .Lastmod.Format "2006-01-02" }}{{ else }}{{ .Date.Format "2006-01-02" }}{{ end }}"
- }
- </script>
-
- {{ end }}
- {{ $is_collection := and (eq .Type "collection") (eq .Kind "page") }}
- {{ if $is_collection }}
- <!-- Google 結構化資料 -->
- <script type="application/ld+json">
- {
- "@context": "http://schema.org",
- "@type": "BreadcrumbList",
- "itemListElement": [{
- "@type": "ListItem",
- "position": 1,
- "item":"https://bhouse.com.tw/",
- "name": "首頁"
- },{ "@type": "ListItem",
- "position": 2,
- "item": "https://bhouse.com.tw/collection/",
- "name":"室內設計作品"
- },{"@type": "ListItem",
- "position": 3,
- "item":"{{ .Permalink }}",
- "name": "{{ .Params.title }}"
- }]
- }
- </script>
- {{ end }}
- {{ hugo.Generator }}
- <!-- Font -->
- <link rel="preconnect" href="https://fonts.googleapis.com">
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
- <!-- <link href='//fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,500,700,800' rel='stylesheet' type='text/css'> -->
- <!-- Bootstrap and Font Awesome CSS -->
- <link rel="stylesheet" href="//use.fontawesome.com/releases/v5.11.2/css/all.css">
- <!-- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> -->
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
- <!-- AOS -->
- <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
- <!-- CSS animations -->
- <!-- <link href="{{ "css/animate.css" | relURL }}" rel="stylesheet"> -->
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.css">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.css">
- <!-- Theme stylesheet, if possible do not edit this stylesheet -->
- {{ with .Site.Params.style }}
- <link href="{{ "css/style" | relURL }}.{{ . }}.css" rel="stylesheet" id="theme-stylesheet">
- {{ else }}
- <link href="{{ "css/style.bhouse.css" | relURL }}" rel="stylesheet" id="theme-stylesheet">
- {{ end }}
- <!-- Custom stylesheet - for your changes -->
- <link href="{{ "css/custom.css" | relURL }}?{{ now.Unix }}" rel="stylesheet">
- <!-- Responsivity for older IE -->
- {{ `
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
- <![endif]-->
- ` | safeHTML }}
- <!-- Favicon and Apple touch icons-->
- <link rel="icon" type="image/x-icon" href="/img/logo.png">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <link rel="apple-touch-icon" sizes="120x120" href="/img/logo.png" />
- <!-- owl carousel CSS -->
- <!-- <link href="{{ "css/owl.carousel.css" | relURL }}" rel="stylesheet"> -->
- <!-- <link href="{{ "css/owl.theme.css" | relURL }}" rel="stylesheet"> -->
- <!-- RSS feed -->
- <link rel="alternate" href="{{ "/index.xml" | absURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
- <link rel="canonical" href="{{ .Permalink }}" />
- <!-- Facebook OpenGraph tags -->
- {{ $is_blog := and (eq .Type "blog") (eq .Kind "page") }}
- {{ $has_image := isset .Params "banner" }}
- {{ $image := cond $has_image .Params.banner (.Site.Params.default_sharing_image | default "./img/sharing-default.png") }}
- {{ $is_valid_image := print "static/" $image | fileExists }}
- {{ if $is_valid_image }}
- {{ $image_ext := path.Ext $image }}
- <meta property="og:locale" content="{{ replace .Site.LanguageCode "-" "_" }}">
- <meta property="og:site_name" content="{{ .Site.Title }}">
- <meta property="og:title" content="{{ .Params.title }}">
- <meta property="og:type" content="{{ cond $is_blog "article" "website" }}">
- <meta property="og:url" content="{{ .Permalink }}" />
- {{ if or (eq .Type "collection") }}
- <meta property="og:description" content="{{ .Params.meta_description }}">
- {{ else }}
- <meta property="og:description" content="{{ .Site.Params.description }}">
- {{ end }}
- {{ if .Params.image }}
- <meta property="og:image" content="https://bhouse.com.tw{{ .Params.image | relURL }}"/>
- {{ else }}
- <meta property="og:image" content="./img/sharing-default.png"/>
- {{ end }}
- {{ with .Lastmod }}<meta property="og:updated_time" content="{{ .Format "2006-01-02T15:04:05Z0700" }}">{{ end }}
- {{ if $is_blog }}
- {{ with .Param "facebook_site" }}<meta property="article:publisher" content="https://www.facebook.com/{{ . }}/">{{ end }}
- {{ with .Param "facebook_author" }}<meta property="article:author" content="https://www.facebook.com/{{ . }}/">{{ end }}
- {{ with .Params.categories }}<meta property="article:section" content="{{ index . 0 }}">{{ end }}
- {{ range .Params.tags }}<meta property="article:tag" content="{{ . }}">
- {{ end }}
- {{ if gt .ExpiryDate .PublishDate }}<meta property="article:expiration_time" content="{{ .ExpiryDate.Format "2006-01-02T15:04:05Z0700" }}">{{ end }}
- {{ with .PublishDate }}<meta property="article:published_time" content="{{ .Format "2006-01-02T15:04:05Z0700" }}">{{ end }}
- {{ with .Lastmod }}<meta property="article:modified_time" content="{{ .Format "2006-01-02T15:04:05Z0700" }}">{{ end }}
- {{ end }}
- {{ end }}
|