Skip to content

Commit

Permalink
Removing umami and suggest form
Browse files Browse the repository at this point in the history
  • Loading branch information
pqvst committed Dec 5, 2023
1 parent f5f9b51 commit d25a2a5
Showing 4 changed files with 19 additions and 20 deletions.
4 changes: 2 additions & 2 deletions views/header.pug
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ header(class="border-b p-4")
.language-picker
a(href=`${url}` class={ active: locale == 'en' }) EN
a(href=`/zh-tw${url}` class={ active: locale == 'zh-tw' }) 中文
a.icon.github(href=site.github target="_blank").umami--click--header-github
a.icon.github(href=site.github target="_blank")
i.fa.fa-github
a.icon.instagram(href=site.instagram target="_blank").umami--click--header-instagram
a.icon.instagram(href=site.instagram target="_blank")
i.fa.fa-instagram
9 changes: 4 additions & 5 deletions views/layout.pug
Original file line number Diff line number Diff line change
@@ -57,7 +57,6 @@ html

if !DEBUG
script(defer data-domain="cafeandcowork.com" src="https://plausible.io/js/script.js")
script(async defer data-website-id="1f5e12d4-c35b-4890-b41e-81cd4af5ffcc" src="https://umami.pqvst.com/umami.js")

block head
body(class=locale)
@@ -69,16 +68,16 @@ html
a(href=`${prefix}/about` class="space-x-1")
i.fa.fa-user-o
span About
a(href=site.instagram target="_blank" class="space-x-1").umami--click--footer-link-instagram
a(href=site.instagram target="_blank" class="space-x-1")
i.fa.fa-instagram
span cafeandcowork
a(href=site.mailto target="_blank" class="space-x-1").umami--click--footer-link-contact
a(href=site.mailto target="_blank" class="space-x-1")
i.fa.fa-envelope-o
span Contact
a(href="/feed.xml" target="_blank" class="space-x-1").umami--click--footer-link-feed
a(href="/feed.xml" target="_blank" class="space-x-1")
i.fa.fa-feed
span Feed
a(href=site.github target="_blank" class="space-x-1").umami--click--footer-link-github
a(href=site.github target="_blank" class="space-x-1")
i.fa.fa-github
span pqvst/cafeandcowork

2 changes: 1 addition & 1 deletion views/page.pug
Original file line number Diff line number Diff line change
@@ -71,7 +71,7 @@ block body
+separator
div
//-https://tally.so#tally-open=wLDAjz
a(href="/suggest/" class="cursor-pointer flex items-center rounded-lg p-2 text-gray-600 hover:bg-gray-100 hover:no-underline space-x-1").umami--click--city-submit
a(href=site.github target="_blank" class="cursor-pointer flex items-center rounded-lg p-2 text-gray-600 hover:bg-gray-100 hover:no-underline space-x-1")
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#000000" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect><line x1="40" y1="128" x2="216" y2="128" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line><line x1="128" y1="40" x2="128" y2="216" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line></svg>
span= __('Button: Suggest')
24 changes: 12 additions & 12 deletions views/place.pug
Original file line number Diff line number Diff line change
@@ -52,26 +52,26 @@ block page

div(class="my-4")
if place.google_maps
a.button.maps(href=place.google_maps target="_blank").umami--click--place-button-google-maps
a.button.maps(href=place.google_maps target="_blank")
i.ph-map-trifold
span= __('Data: Google Maps')
if place.facebook
a.button.facebook(href=place.facebook target="_blank").umami--click--place-button-facebook
a.button.facebook(href=place.facebook target="_blank")
i.ph-facebook-logo
span= __('Data: Facebook')
if place.instagram
a.button.instagram(href=place.instagram target="_blank").umami--click--place-button-instagram
a.button.instagram(href=place.instagram target="_blank")
i.ph-instagram-logo
span= __('Data: Instagram')
if place.website
a.button.website(href=place.website target="_blank").umami--click--place-button-website
a.button.website(href=place.website target="_blank")
i.ph-globe-simple
span= __('Data: Website')
if place.telephone
a.button.telephone(href=`tel:${place.telephone}`).umami--click--place-button-telephone
a.button.telephone(href=`tel:${place.telephone}`)
i.ph-phone
span= __('Button: Call')
a.button(href="#" onclick="showSubmit()").umami--click--place-button-edit
a.button(href=site.github target="_blank")
i.ph-pencil
span= __('Button: Edit')

@@ -142,19 +142,19 @@ block page
dd= __(`Area: ${place.area}`)
if place.address
dt= __('Data: Address')
dd: a(href=place.google_maps target="_blank").umami--click--place-link-address= place.address[locale] || place.address
dd: a(href=place.google_maps target="_blank")= place.address[locale] || place.address
if place.facebook
dt= __('Data: Facebook')
dd: a(href=place.facebook target="_blank").umami--click--place-link-facebook= formatUrl(place.facebook)
dd: a(href=place.facebook target="_blank")= formatUrl(place.facebook)
if place.instagram
dt= __('Data: Instagram')
dd: a(href=place.instagram target="_blank").umami--click--place-link-instagram= formatUrl(place.instagram)
dd: a(href=place.instagram target="_blank")= formatUrl(place.instagram)
if place.website
dt= __('Data: Website')
dd: a(href=place.website target="_blank").umami--click--place-link-website= formatUrl(place.website)
dd: a(href=place.website target="_blank")= formatUrl(place.website)
if place.telephone
dt= __('Data: Telephone')
dd: a(href=`tel:${place.telephone}` target="_blank").umami--click--place-link-telephone= place.telephone
dd: a(href=`tel:${place.telephone}` target="_blank")= place.telephone
if place.updated || place.added
dt= __('Data: Updated')
dd #{formatDate(place.updated || place.added, locale)}
@@ -164,7 +164,7 @@ block page
each contributor in place.contributors
div
if contributor.startsWith('http')
a(href=contributor target="_blank").umami--click--place-link-contributor= formatUrl(contributor)
a(href=contributor target="_blank")= formatUrl(contributor)
else
span= contributor

0 comments on commit d25a2a5

Please sign in to comment.