commiting
This commit is contained in:
13
markdown_content/CHANGELOG.md
Normal file
13
markdown_content/CHANGELOG.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on
|
||||
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this
|
||||
project adheres to
|
||||
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [0.0.1] - TBD
|
||||
|
||||
Initial release
|
||||
|
||||
15
markdown_content/Makefile
Normal file
15
markdown_content/Makefile
Normal file
@@ -0,0 +1,15 @@
|
||||
IP_ADDR = allpawcare.com
|
||||
PUBLIC_DIR = public
|
||||
BUILD_SCRIPT = scripts/build.sh
|
||||
|
||||
.PHONY: all
|
||||
all: clean
|
||||
|
||||
.PHONY: clean-public-dir
|
||||
clean-public-dir:
|
||||
rm -rf ${PUBLIC_DIR}/*
|
||||
|
||||
.PHONY: build
|
||||
build: clean-public-dir
|
||||
./${BUILD_SCRIPT}
|
||||
|
||||
4
markdown_content/README.md
Normal file
4
markdown_content/README.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# www.AllPawCare.com markdown content
|
||||
|
||||
Markdown assets for templates in
|
||||
[www.allpawcare.com](https://gitea.awkawb.cloud/awkawb/www.allpawcare.com.git).
|
||||
97
markdown_content/__init__.py
Normal file
97
markdown_content/__init__.py
Normal file
@@ -0,0 +1,97 @@
|
||||
'''
|
||||
Converts site content written in Markdown to HTML.
|
||||
'''
|
||||
|
||||
class MarkdownContent(dict):
|
||||
def __init__(self):
|
||||
import frontmatter
|
||||
import os
|
||||
|
||||
# content paths with metadata
|
||||
self.PAGES_METADATA = dict()
|
||||
self.FORMS_METADATA = dict()
|
||||
|
||||
for content_dir in self._CONTENT_DIRS:
|
||||
self.__get_content(content_dir)
|
||||
|
||||
def __getitem__(self, page):
|
||||
return self.METADATA[page]
|
||||
|
||||
def __content_page_faq(self):
|
||||
'''
|
||||
Fetch FAQ page content.
|
||||
'''
|
||||
|
||||
return True
|
||||
|
||||
def __content_page_services(self):
|
||||
'''
|
||||
Fetch services page content.
|
||||
'''
|
||||
|
||||
return True
|
||||
|
||||
def __content_page_about_me(self):
|
||||
'''
|
||||
Fetch about me page content.
|
||||
'''
|
||||
|
||||
return True
|
||||
|
||||
def __content_page_contact_me(self):
|
||||
'''
|
||||
Fetch contact me page content.
|
||||
'''
|
||||
|
||||
return True
|
||||
|
||||
def __content_form_meet_and_greet(self):
|
||||
'''
|
||||
Fetch meet & greet form content.
|
||||
'''
|
||||
|
||||
return True
|
||||
|
||||
def __get_content(self, content_dir: str):
|
||||
import frontmatter
|
||||
import os
|
||||
|
||||
metadata = dict()
|
||||
|
||||
for items in os.walk(content_dir):
|
||||
if len(items[2]) > 0:
|
||||
for file in items[2]:
|
||||
path = os.path.join(items[0], file)
|
||||
|
||||
metadata[path] = \
|
||||
frontmatter.load(path).to_dict()
|
||||
|
||||
return metadata
|
||||
|
||||
def get_page(self, page: str):
|
||||
'''
|
||||
Transforms Markdown to HTML for pages.
|
||||
'''
|
||||
|
||||
# match page.lower():
|
||||
# case 'faq':
|
||||
# return True
|
||||
#
|
||||
# case 'services':
|
||||
# return True
|
||||
#
|
||||
# case 'about me':
|
||||
# return True
|
||||
#
|
||||
# case 'contact me':
|
||||
# return True
|
||||
|
||||
def get_form(self, form: str):
|
||||
'''
|
||||
Transforms Markdown to HTML for forms.
|
||||
'''
|
||||
|
||||
# match form.lower():
|
||||
# case 'meet and greet':
|
||||
# return True
|
||||
|
||||
1
markdown_content/public/forms/meet-and-greet.html
Normal file
1
markdown_content/public/forms/meet-and-greet.html
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
6
markdown_content/public/pages/about-me.html
Normal file
6
markdown_content/public/pages/about-me.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<p>Welcome to All Paw Care!</p>
|
||||
<p>I’ve been providing professional animal caretaking services in the
|
||||
Baltimore area for over 4 years. I provide services for paws of all
|
||||
shapes and sizes and specialize in dog and cat care.</p>
|
||||
<p>Animals add so much to our lives so caring for them is just as
|
||||
important.</p>
|
||||
5
markdown_content/public/pages/contact-me.html
Normal file
5
markdown_content/public/pages/contact-me.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<p>If you have any questions,the FAQ page may have an answer.</p>
|
||||
<p>If your question isn’t on the FAQ or you want to directly contact me,
|
||||
email or text messages work best.</p>
|
||||
<p>My personal Instagram page is public and includes pictures of my
|
||||
animal caretaking work along with all my interests.</p>
|
||||
3
markdown_content/public/pages/faq/faq.html
Normal file
3
markdown_content/public/pages/faq/faq.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<p>Here you’ll find answers to some common questions. If what your
|
||||
looking for can’t be found, head over to the <a href="">contact me</a>
|
||||
page for information on communicating with me directly.</p>
|
||||
@@ -0,0 +1,12 @@
|
||||
<p>A broad range of payment types are accepted to make the process
|
||||
easy.</p>
|
||||
<ul>
|
||||
<li>Cash</li>
|
||||
<li>Credit/Debit cards (Amex, Discover, Mastercard, Visa, etc.)</li>
|
||||
<li>ACH transfers (direct bank transfer from your checking account)</li>
|
||||
<li>Paypal</li>
|
||||
<li>Apple Pay</li>
|
||||
<li>Google Pay</li>
|
||||
<li>Zelle</li>
|
||||
<li>plus more…</li>
|
||||
</ul>
|
||||
@@ -0,0 +1,2 @@
|
||||
<p>Additional animals are charged per addition. For example, a walking
|
||||
service for three dogs incures two addtional dog fees.</p>
|
||||
@@ -0,0 +1,2 @@
|
||||
<p>Payments are due 7 days after invoicing. Invoices are sent on the day
|
||||
of service or during (e.g house sitting).</p>
|
||||
@@ -0,0 +1,2 @@
|
||||
<p>Service includes 15 minutes of in-home play and/or care for your
|
||||
dog/cat. Longer drop-ins are available!</p>
|
||||
@@ -0,0 +1,3 @@
|
||||
<p>Service includes nightly in-home care for your animal. Drop-ins or
|
||||
walks are provided during the day. Cleaning of cat litter is included
|
||||
too!</p>
|
||||
@@ -0,0 +1,2 @@
|
||||
<p>Service includes 30 minute walk for your dog/cat and bags for poop
|
||||
clean-up.</p>
|
||||
6
markdown_content/public/pages/services/services.html
Normal file
6
markdown_content/public/pages/services/services.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<p>All services are for a single animal. Additional animals are charged
|
||||
seperately.</p>
|
||||
<p>Set up a meeting before scheduling any service. I’ll come to your
|
||||
home or some place more convienient. The meeting will serve a way for
|
||||
your pet and I to get comfortable with each other. Also, any questions
|
||||
you may have can be discussed too!</p>
|
||||
16
markdown_content/scripts/build.sh
Normal file
16
markdown_content/scripts/build.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#! /run/current-system/sw/bin/bash
|
||||
|
||||
# Static runtime variables
|
||||
SRC_DIR=src
|
||||
PUBLIC_DIR=public
|
||||
|
||||
for content in $(find $SRC_DIR -type f)
|
||||
do
|
||||
output_file="$PUBLIC_DIR/$(echo "$content" | sed -e 's/src\///g' -e 's/md$/html/g')"
|
||||
content_type=$(echo $content | awk -F/ '{ print $2 }')
|
||||
|
||||
mkdir -p $(dirname $output_file)
|
||||
|
||||
pandoc -o "$output_file" "$content"
|
||||
done
|
||||
|
||||
3
markdown_content/src/forms/meet-and-greet.md
Normal file
3
markdown_content/src/forms/meet-and-greet.md
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
Title: Meet and greet request
|
||||
---
|
||||
13
markdown_content/src/pages/about-me.md
Normal file
13
markdown_content/src/pages/about-me.md
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
Title: About me
|
||||
---
|
||||
|
||||
Welcome to All Paw Care!
|
||||
|
||||
I've been providing professional animal caretaking services in the
|
||||
Baltimore area for over 4 years. I provide services for paws of all
|
||||
shapes and sizes and specialize in dog and cat care.
|
||||
|
||||
Animals add so much to our lives so caring for them is just as
|
||||
important.
|
||||
|
||||
13
markdown_content/src/pages/contact-me.md
Normal file
13
markdown_content/src/pages/contact-me.md
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
Title: Contact me
|
||||
---
|
||||
|
||||
If you have any questions,the FAQ page may have
|
||||
an answer.
|
||||
|
||||
If your question isn't on the FAQ or you want to directly
|
||||
contact me, email or text messages work best.
|
||||
|
||||
My personal Instagram page is public and includes pictures
|
||||
of my animal caretaking work along with all my interests.
|
||||
|
||||
9
markdown_content/src/pages/faq/faq.md
Normal file
9
markdown_content/src/pages/faq/faq.md
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
Title: FAQ
|
||||
---
|
||||
|
||||
Here you'll find answers to some common questions. If what your
|
||||
looking for can't be found, head over to the
|
||||
[contact me]() page for information on communicating with me
|
||||
directly.
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
Header: What types of payments do you accept?
|
||||
---
|
||||
|
||||
A broad range of payment types are accepted to make the process
|
||||
easy.
|
||||
|
||||
- Cash
|
||||
- Credit/Debit cards (Amex, Discover, Mastercard, Visa, etc.)
|
||||
- ACH transfers (direct bank transfer from your checking account)
|
||||
- Paypal
|
||||
- Apple Pay
|
||||
- Google Pay
|
||||
- Zelle
|
||||
- plus more...
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
Header: Do you accept more than one animal?
|
||||
---
|
||||
|
||||
Additional animals are charged per addition. For example, a walking
|
||||
service for three dogs incures two addtional dog fees.
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
Header: When is payment for a service due?
|
||||
---
|
||||
|
||||
Payments are due 7 days after invoicing. Invoices are sent on the day
|
||||
of service or during (e.g house sitting).
|
||||
|
||||
8
markdown_content/src/pages/services/cards/drop-ins.md
Normal file
8
markdown_content/src/pages/services/cards/drop-ins.md
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
Title: Drop-ins
|
||||
Price: $18+/visit
|
||||
---
|
||||
|
||||
Service includes 15 minutes of in-home play and/or care for your
|
||||
dog/cat. Longer drop-ins are available!
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
Title: House sitting
|
||||
Price: $35+/night
|
||||
---
|
||||
|
||||
Service includes nightly in-home care for your animal. Drop-ins or
|
||||
walks are provided during the day. Cleaning of cat litter is included
|
||||
too!
|
||||
|
||||
8
markdown_content/src/pages/services/cards/walking.md
Normal file
8
markdown_content/src/pages/services/cards/walking.md
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
Title: Walking
|
||||
Price: $20+/walk
|
||||
---
|
||||
|
||||
Service includes 30 minute walk for your dog/cat and bags for poop
|
||||
clean-up.
|
||||
|
||||
12
markdown_content/src/pages/services/services.md
Normal file
12
markdown_content/src/pages/services/services.md
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
Title: Services
|
||||
---
|
||||
|
||||
All services are for a single animal. Additional animals are charged
|
||||
seperately.
|
||||
|
||||
Set up a meeting before scheduling any service. I'll come to your
|
||||
home or some place more convienient. The meeting will serve a way for
|
||||
your pet and I to get comfortable with each other. Also, any
|
||||
questions you may have can be discussed too!
|
||||
|
||||
Reference in New Issue
Block a user