-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.pug
executable file
·76 lines (60 loc) · 3.15 KB
/
index.pug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
- var link = 'dynamic-links-api'
- var title = 'Firebase Dynamic Links 由 API 建立縮網址'
- var description = 'Firebase Dynamic Links 由 API 建立縮網址。來自己做一個Google Maps網址的縮網址生成器!'
<!DOCTYPE html>
html(lang="zh-TW")
head
meta(charset="UTF-8")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
meta(http-equiv="X-UA-Compatible", content="ie=edge")
title #{title} - August - Let's Write
link(rel="canonical", href=`https://letswritetw.github.io/letswrite-${link}/`)
meta(property="og:url", content=`https://letswritetw.github.io/letswrite-${link}/`)
meta(property="fb:app_id", content="911000986339138")
meta(property="og:type", content="website")
meta(property="og:site_name", content="Let's Write")
meta(property="og:title", content=`${title} - August - Let's Write`)
meta(itemprop="name", content=`${title} - August - Let's Write`)
meta(name="description", content=description)
meta(property="og:description", content=description)
meta(itemprop="description", content=description)
meta(itemprop="image", content=`https://letswritetw.github.io/letswrite-${link}/fb.jpg?v=2`)
meta(property="og:image", content=`https://letswritetw.github.io/letswrite-${link}/fb.jpg?v=2`)
meta(property="og:image:width", content="1200")
meta(property="og:image:height", content="630")
meta(property="og:image:alt", content=title)
link(rel="shortcut icon", href="https://letswritetw.github.io/letswritetw/dist/img/logo_512.png")
//- css
link(rel="stylesheet", href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css")
link(rel="stylesheet", href="dist/style.min.css")
// 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-PGQ9WQT');
body
// Google Tag Manager (noscript)
noscript
iframe(src="https://www.googletagmanager.com/ns.html?id=GTM-PGQ9WQT", height="0", width="0", style="display:none;visibility:hidden")
#app.container
.text-center
h1 Google Maps<br/>縮網址生成器
h6 筆記文:
a(href="https://letswrite.tw/dynamic-links-api/", target="_blank") Let's Write
hr
form
.row
input#maps.u-full-width(type="url", v-model="link", placeholder="請貼上Google Maps上的網址")
.text-center
button.button-primary(type="button", :class="{ 'disabled': link == '' }" @click="submit") 產生縮網址
hr
section.result-wrap(v-if="result != '' && error == null")
p 縮網址為:
a(:href="result", target="_blank") {{ result }}
section.result-wrap(v-if="error != null")
p 錯誤:
span.error {{ error }}
script(src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js")
script(src="dist/main.min.js")