commiting

This commit is contained in:
2023-12-15 10:30:18 -05:00
parent b6b7ac2418
commit 5db1626ef1
410 changed files with 52075 additions and 318 deletions

View File

@@ -1,61 +1,28 @@
title = 'Frequently asked questions'
import os
from markdown import markdown
import frontmatter
content = {
'How does this process work?': {
'tag': 'basics-faq',
'answer': '''First go to the services page. On the bottom
of the page, you'll find a "Request meet & greet"
button. After filling out the form, I'll get an email
with the form information. I will contact you about
the request within 24 hours.'''
},
'What types of payments do you accept?': {
'tag': 'accepted-payments-faq',
'answer': '''A broad range of payment types are accepted '
to make the process easy.''',
'include': [
'Cash',
'Credit/Debit cards',
'ACH (direct bank transfers)',
'Paypal',
'Apple Pay',
'Google Pay',
'Zelle'
]
},
'When is payment for a service due?': {
'tag': 'payment-terms-faq',
'answer': 'Payments are due 7 days after invoicing. '
+ 'Invoices are usually sent after completed services.'
},
'What kind of animals do you caretake?': {
'tag': 'animal-types-faq',
'answer': '''I have experience careing for many types of animals.
I provide care for reptiles, mammals, etc.'''
},
'Can you care for special needs pets?': {
'tag': 'special-needs-faq',
'answer': '''I have experience care for special needs, including older
animals'''
},
'Can you stay at my house?': {
'tag': 'house-sitting-faq',
'answer': 'I offer house sitting services. This includes in home stays.'
},
'Can you take care of my plants?': {
'tag': 'plant-faq',
'answer': '''I love plants and have a garden of my own. I'll gladly
remove the mess for you.'''
},
'My yard is a mess, can you clean up the dog poop?': {
'tag': 'poop-scoop-faq',
'answer': 'I do offer animal poop clean up add-on yard'
}
}
markdown_dir = '{}/markdown'.format(
os.path.dirname(os.path.abspath(__file__)))
def get_title():
return title
def __get_content_dict():
faqs = dict()
for f in os.listdir(markdown_dir):
f_abspath = '{}/{}'.format(markdown_dir, f)
matter = frontmatter.load(f_abspath)
faq = {matter.metadata['question']: {
'tag': matter.metadata['tag'],
'answer': markdown(matter.content)}}
faqs.update(faq)
return faqs
content = __get_content_dict()
def get_content():
return content
title = 'Frequently asked questions'
def get_title():
return title

View File

@@ -0,0 +1,23 @@
from markdown import markdown
import frontmatter
import os
class FAQ(object):
def __init__(self, markdown_file: str):
with frontmatter.load(markdown_file) as matter:
metadata = matter.metadata
self.answer = markdown(matter.content)
self.question = metadata['question']
self.tag = metadata['tag']
def get_question(self):
return self.question
def get_answer_html(self):
return self.answer
def get_tag(self):
return self.tag

View File

@@ -0,0 +1,15 @@
---
tag: accepted-payments-faq
question: What types of payments do you accept?
---
A broad range of payment types are accepted to make the process
easy. Below is a list of what is accepted:
- cash
- credit/debit
- ACH (bank transfers)
- Paypal
- Apple Pay
- Zelle

View File

@@ -0,0 +1,11 @@
---
tag: animal-types-faq
question: What kind of animals do you caretake?
---
I have experience caring for many types of animals. Below is a
non-exhaustive list of animals I have experience with:
- reptiles (e.g. snakes, lizards, and spiders)
- mammals (e.g. cats, dogs, and guinea pigs)

View File

@@ -0,0 +1,10 @@
---
tag: basics-faq
question: How does this process work?
---
First go to the [services](/pages/services#request-meet-greet) page. On the bottom
of the page, you'll find a "Request meet and & greet" button. After
filling out the form, I'll get an email with the form information.
I will contact you about the request within 24 hours.

View File

@@ -0,0 +1,8 @@
---
tag: house-sitting-faq
question: Can you watch my pets while I'm away?
---
I offer house sitting services. The service includes overnight
in-home stays with your pet.

View File

@@ -0,0 +1,8 @@
---
tag: payment-terms-faq
question: When is payment for a service due?
---
Payments are due 7 days after invoicing. Invoices are typically sent
after services are completed.

View File

@@ -0,0 +1,8 @@
---
tag: plant-faq
question: I have plants, can you care for them while I'm away?
---
I'll gladly make sure your plants stay healthy while your gone. I love
plants and have a collection of my own.

View File

@@ -0,0 +1,8 @@
---
tag: poop-scoop-faq
question: My yard is a mess, can you remove the dog poop?
---
I do offer dog poop clean-up as an add-on services. I can provide
this service along with a scheduled primary service.

View File

@@ -0,0 +1,8 @@
---
tag: special-needs-faq
question: Can you care for special needs pets?
---
I have experience caring for animals with special needs, including
older pets.