commiting
This commit is contained in:
@@ -1,51 +1,31 @@
|
||||
from flask import url_for
|
||||
from markdown import markdown
|
||||
import frontmatter
|
||||
|
||||
import os
|
||||
|
||||
markdown_dir = '{}/markdown'.format(
|
||||
os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
title = 'About me'
|
||||
|
||||
content = {
|
||||
'section 1': {
|
||||
'images': ['img/about_me/about_me_1_sm.jpg',
|
||||
'img/about_me/about_me_1_md.jpg',
|
||||
'img/about_me/about_me_1_lg.jpg',
|
||||
'img/about_me/about_me_1_xl.jpg',
|
||||
'img/about_me/about_me_1_xxl.jpg'],
|
||||
|
||||
'content': '''Before I provided animal caretaking services,
|
||||
I focused my time on computers. I attended AACC
|
||||
after high school, computer network management and
|
||||
computer science are the two areas I studied.
|
||||
I designed and coded this website!'''
|
||||
},
|
||||
'section 2': {
|
||||
'images': ['img/about_me/about_me_2_sm.jpg',
|
||||
'img/about_me/about_me_2_md.jpg',
|
||||
'img/about_me/about_me_2_lg.jpg',
|
||||
'img/about_me/about_me_2_xl.jpg',
|
||||
'img/about_me/about_me_2_xxl.jpg'],
|
||||
'content': '''For the past 5 years, my interest in plants and
|
||||
horticulture have expanded exponentially. As a kid,
|
||||
my mother always had plants around our home. I
|
||||
have many plants of my own, most of which I've
|
||||
grown from cuttings I take around town. My favorite
|
||||
plant type is succulents (e.g jade plants and aloes)
|
||||
because they're so easy to grow.'''
|
||||
},
|
||||
'section 3': {
|
||||
'images': ['img/about_me/about_me_3_sm.jpg',
|
||||
'img/about_me/about_me_3_md.jpg',
|
||||
'img/about_me/about_me_3_lg.jpg',
|
||||
'img/about_me/about_me_3_xl.jpg',
|
||||
'img/about_me/about_me_3_xxl.jpg'],
|
||||
'content': '''My passion for animals and plants are what I
|
||||
spend most my time on currently. I love providing
|
||||
quality animal care.'''
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def get_title():
|
||||
return title
|
||||
|
||||
def get_content():
|
||||
return content
|
||||
def __get_content_dict():
|
||||
sections = dict()
|
||||
for file in os.listdir(markdown_dir):
|
||||
images = list()
|
||||
matter = frontmatter.load('{}/{}'.format(markdown_dir, file))
|
||||
for img in matter.metadata['images']:
|
||||
images.append('{}/{}'.format(
|
||||
matter.metadata['image-dir'], img))
|
||||
|
||||
sections[file.removesuffix('.md')] = {'images':
|
||||
images, 'content': markdown(matter.content)}
|
||||
|
||||
return sections
|
||||
|
||||
content = __get_content_dict()
|
||||
def get_content():
|
||||
return content.values()
|
||||
|
||||
|
||||
16
all_paw_care/content/pages/home/markdown/section1.md
Normal file
16
all_paw_care/content/pages/home/markdown/section1.md
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
image-dir: img/about_me
|
||||
images:
|
||||
- about_me_1_sm.jpg
|
||||
- about_me_1_md.jpg
|
||||
- about_me_1_lg.jpg
|
||||
- about_me_1_xl.jpg
|
||||
- about_me_1_xxl.jpg
|
||||
---
|
||||
|
||||
Before I provided animal caretaking services, I focused on my interest
|
||||
in computer technologies. I studied computer networking and computer
|
||||
science at [AACC](https://www.aacc.edu). The knowledge I gained from my
|
||||
studies was harnessed writing the code that powers this website and
|
||||
configuring the servers that the code runs on.
|
||||
|
||||
18
all_paw_care/content/pages/home/markdown/section2.md
Normal file
18
all_paw_care/content/pages/home/markdown/section2.md
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
image-dir: img/about_me
|
||||
images:
|
||||
- about_me_2_sm.jpg
|
||||
- about_me_2_md.jpg
|
||||
- about_me_2_lg.jpg
|
||||
- about_me_2_xl.jpg
|
||||
- about_me_2_xxl.jpg
|
||||
---
|
||||
|
||||
Plants and horticulture are a passion of mine, too. My interest has
|
||||
actively grown since starting caretaking services. Caring for
|
||||
animals in the Baltimore area, I have the opportunity of observing
|
||||
a broad range of vegetation. I've collected cuttings for propagation
|
||||
and many survive and thrive enough to make it to my garden or potted
|
||||
house plants. Succulent type plants are a favorite of mine and I have
|
||||
a ever growing collection.
|
||||
|
||||
17
all_paw_care/content/pages/home/markdown/section3.md
Normal file
17
all_paw_care/content/pages/home/markdown/section3.md
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
image-dir: img/about_me
|
||||
images:
|
||||
- about_me_3_sm.jpg
|
||||
- about_me_3_md.jpg
|
||||
- about_me_3_lg.jpg
|
||||
- about_me_3_xl.jpg
|
||||
- about_me_3_xxl.jpg
|
||||
---
|
||||
|
||||
I've been lucky enough to have the opportunity to grow my animal
|
||||
caretaking services to my primary source of income. I started
|
||||
listing availability on the [Rover](https://www.rover.com/) platform
|
||||
in 2018. After gaining loyal clients and reputation, moving my services
|
||||
to being independent was a logical move. I really love providing great
|
||||
and affordable caretaking services.
|
||||
|
||||
Reference in New Issue
Block a user