-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.js
More file actions
113 lines (113 loc) · 25.9 KB
/
database.js
File metadata and controls
113 lines (113 loc) · 25.9 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
module.exports={
"about": [
{
"type": "about",
"filepath": "content/about/index.md",
"body": "<p>Turtles are reptiles of the order Testudines characterized by a special bony or cartilaginous shell developed from their ribs and acting as a shield. “Turtle” may refer to the order as a whole (American English) or to fresh-water and sea-dwelling testudines (British English). The order Testudines includes both extant (living) and extinct species. The earliest known members of this group date from the Middle Jurassic, making turtles one of the oldest reptile groups and a more ancient group than snakes or crocodilians. Of the 356 known species alive today, some are highly endangered.</p>\n<p><a class=\"text-blue-700 hover:underline\" blank=\"target\" href=\"https://en.wikipedia.org/wiki/Turtle\">Learn more »</a></p>\n"
}
],
"posts": [
{
"title": "About real turtles",
"date": "2020-06-01T00:00:00.000Z",
"teaser_image": "/media/turtle3.jpg",
"tags": [
"turtles"
],
"type": "posts",
"filepath": "content/posts/about-real-turtles.md",
"body": "<p>Turtles are reptiles of the order Testudines characterized by a special bony or cartilaginous shell developed from their ribs and acting as a shield.[3] “Turtle” may refer to the order as a whole (American English) or to fresh-water and sea-dwelling testudines (British English).[4] The order Testudines includes both extant (living) and extinct species. The earliest known members of this group date from the Middle Jurassic,[1] making turtles one of the oldest reptile groups and a more ancient group than snakes or crocodilians. Of the 356 known species[2] alive today, some are highly endangered.[2]</p>\n<!-- more -->\n<p>Turtles are ectotherms—animals commonly called cold-blooded—meaning that their internal temperature varies according to the ambient environment. However, because of their high metabolic rate, leatherback sea turtles have a body temperature that is noticeably higher than that of the surrounding water. Turtles are classified as amniotes, along with other reptiles, birds, and mammals. Like other amniotes, turtles breathe air and do not lay eggs underwater, although many species live in or around water.</p>\n<h2>Naming and etymology</h2>\n<p>Red-eared slider (terrapin)\nDifferences exist in usage of the common terms turtle, tortoise, and terrapin, depending on the variety of English being used.[5] These terms are common names and do not reflect precise biological or taxonomic distinctions.[6]</p>\n<p>Turtle may either refer to the order as a whole, or to particular turtles that make up a form taxon that is not monophyletic, or may be limited to only aquatic species. Tortoise usually refers to any land-dwelling, non-swimming chelonian.[7] Terrapin is used to describe several species of small, edible, hard-shell turtles, typically those found in brackish waters.</p>\n<p>In North America, all chelonians are commonly called turtles. Tortoise is used only in reference to fully terrestrial turtles or, more narrowly, only those members of Testudinidae, the family of modern land tortoises.[8][7] Terrapin may refer to small semi-aquatic turtles that live in fresh and brackish water, in particular the diamondback terrapin (Malaclemys terrapin).[9][10][11][12] Although the members of the genus Terrapene dwell mostly on land, they are referred to as box turtles rather than tortoises.[6] The American Society of Ichthyologists and Herpetologists uses “turtle” to describe all species of the order Testudines, regardless of whether they are land-dwelling or sea-dwelling, and uses “tortoise” as a more specific term for slow-moving terrestrial species.[5]</p>\n<p>In the United Kingdom, the word turtle is used for water-dwelling species, including ones known in the US as terrapins, but not for terrestrial species, which are known only as tortoises.</p>\n<p>The word chelonian is popular among veterinarians, scientists, and conservationists working with these animals as a catch-all name for any member of the superorder Chelonia, which includes all turtles living and extinct, as well as their immediate ancestors. Chelonia is based on the Greek word for turtles, χελώνη chelone; Greek χέλυς chelys “tortoise” is also used in the formation of scientific names of chelonians.[13] Testudines, on the other hand, is based on the Latin word for tortoise, testudo.[14] Terrapin comes from an Algonquian word for turtle.[8][15]</p>\n<p>Some languages do not have this distinction, as all of these are referred to by the same name. For example, in Spanish, the word tortuga is used for turtles, tortoises, and terrapins. A sea-dwelling turtle is tortuga marina, a freshwater species tortuga de río, and a tortoise tortuga terrestre.[16]</p>\n",
"summary": "<p>Turtles are reptiles of the order Testudines characterized by a special bony or cartilaginous shell developed from their ribs and acting as a shield.[3] “Turtle” may refer to the order as a whole (American English) or to fresh-water and sea-dwelling testudines (British English).[4] The order Testudines includes both extant (living) and extinct species. The earliest known members of this group date from the Middle Jurassic,[1] making turtles one of the oldest reptile groups and a more ancient group than snakes or crocodilians. Of the 356 known species[2] alive today, some are highly endangered.[2]</p>\n",
"summary_text": "Turtles are reptiles of the order Testudines characterized by a special bony or cartilaginous shell developed from their ribs and acting as a shield.[3] “Turtle” may refer to the order as a whole (American English) or to fresh-water and sea-dwelling testudines (British English).[4] The order Testudines includes both extant (living) and extinct species. The earliest known members of this group date from the Middle Jurassic,[1] making turtles one of the oldest reptile groups and a more ancient group than snakes or crocodilians. Of the 356 known species[2] alive today, some are highly endangered.[2]\n",
"without_summary": "<!-- more -->\n<p>Turtles are ectotherms—animals commonly called cold-blooded—meaning that their internal temperature varies according to the ambient environment. However, because of their high metabolic rate, leatherback sea turtles have a body temperature that is noticeably higher than that of the surrounding water. Turtles are classified as amniotes, along with other reptiles, birds, and mammals. Like other amniotes, turtles breathe air and do not lay eggs underwater, although many species live in or around water.</p>\n<h2>Naming and etymology</h2>\n<p>Red-eared slider (terrapin)\nDifferences exist in usage of the common terms turtle, tortoise, and terrapin, depending on the variety of English being used.[5] These terms are common names and do not reflect precise biological or taxonomic distinctions.[6]</p>\n<p>Turtle may either refer to the order as a whole, or to particular turtles that make up a form taxon that is not monophyletic, or may be limited to only aquatic species. Tortoise usually refers to any land-dwelling, non-swimming chelonian.[7] Terrapin is used to describe several species of small, edible, hard-shell turtles, typically those found in brackish waters.</p>\n<p>In North America, all chelonians are commonly called turtles. Tortoise is used only in reference to fully terrestrial turtles or, more narrowly, only those members of Testudinidae, the family of modern land tortoises.[8][7] Terrapin may refer to small semi-aquatic turtles that live in fresh and brackish water, in particular the diamondback terrapin (Malaclemys terrapin).[9][10][11][12] Although the members of the genus Terrapene dwell mostly on land, they are referred to as box turtles rather than tortoises.[6] The American Society of Ichthyologists and Herpetologists uses “turtle” to describe all species of the order Testudines, regardless of whether they are land-dwelling or sea-dwelling, and uses “tortoise” as a more specific term for slow-moving terrestrial species.[5]</p>\n<p>In the United Kingdom, the word turtle is used for water-dwelling species, including ones known in the US as terrapins, but not for terrestrial species, which are known only as tortoises.</p>\n<p>The word chelonian is popular among veterinarians, scientists, and conservationists working with these animals as a catch-all name for any member of the superorder Chelonia, which includes all turtles living and extinct, as well as their immediate ancestors. Chelonia is based on the Greek word for turtles, χελώνη chelone; Greek χέλυς chelys “tortoise” is also used in the formation of scientific names of chelonians.[13] Testudines, on the other hand, is based on the Latin word for tortoise, testudo.[14] Terrapin comes from an Algonquian word for turtle.[8][15]</p>\n<p>Some languages do not have this distinction, as all of these are referred to by the same name. For example, in Spanish, the word tortuga is used for turtles, tortoises, and terrapins. A sea-dwelling turtle is tortuga marina, a freshwater species tortuga de río, and a tortoise tortuga terrestre.[16]</p>\n",
"without_summary_text": "\nTurtles are ectotherms—animals commonly called cold-blooded—meaning that their internal temperature varies according to the ambient environment. However, because of their high metabolic rate, leatherback sea turtles have a body temperature that is noticeably higher than that of the surrounding water. Turtles are classified as amniotes, along with other reptiles, birds, and mammals. Like other amniotes, turtles breathe air and do not lay eggs underwater, although many species live in or around water.\nNaming and etymology\nRed-eared slider (terrapin)\nDifferences exist in usage of the common terms turtle, tortoise, and terrapin, depending on the variety of English being used.[5] These terms are common names and do not reflect precise biological or taxonomic distinctions.[6]\nTurtle may either refer to the order as a whole, or to particular turtles that make up a form taxon that is not monophyletic, or may be limited to only aquatic species. Tortoise usually refers to any land-dwelling, non-swimming chelonian.[7] Terrapin is used to describe several species of small, edible, hard-shell turtles, typically those found in brackish waters.\nIn North America, all chelonians are commonly called turtles. Tortoise is used only in reference to fully terrestrial turtles or, more narrowly, only those members of Testudinidae, the family of modern land tortoises.[8][7] Terrapin may refer to small semi-aquatic turtles that live in fresh and brackish water, in particular the diamondback terrapin (Malaclemys terrapin).[9][10][11][12] Although the members of the genus Terrapene dwell mostly on land, they are referred to as box turtles rather than tortoises.[6] The American Society of Ichthyologists and Herpetologists uses “turtle” to describe all species of the order Testudines, regardless of whether they are land-dwelling or sea-dwelling, and uses “tortoise” as a more specific term for slow-moving terrestrial species.[5]\nIn the United Kingdom, the word turtle is used for water-dwelling species, including ones known in the US as terrapins, but not for terrestrial species, which are known only as tortoises.\nThe word chelonian is popular among veterinarians, scientists, and conservationists working with these animals as a catch-all name for any member of the superorder Chelonia, which includes all turtles living and extinct, as well as their immediate ancestors. Chelonia is based on the Greek word for turtles, χελώνη chelone; Greek χέλυς chelys “tortoise” is also used in the formation of scientific names of chelonians.[13] Testudines, on the other hand, is based on the Latin word for tortoise, testudo.[14] Terrapin comes from an Algonquian word for turtle.[8][15]\nSome languages do not have this distinction, as all of these are referred to by the same name. For example, in Spanish, the word tortuga is used for turtles, tortoises, and terrapins. A sea-dwelling turtle is tortuga marina, a freshwater species tortuga de río, and a tortoise tortuga terrestre.[16]\n",
"year": "2020",
"month": "05",
"day": "31",
"dow": "00",
"doy": "152",
"week": "23",
"hour": "19",
"minute": "00",
"second": "00",
"pretty_date": "05/31/2020",
"author": "Master Roshi",
"author_email": "masterroshiisawesome@fakeemail.com",
"slug": "about-real-turtles",
"url": "/2020/05/about-real-turtles/",
"prev_url": "/",
"next_url": "/2020/06/getting-started/"
},
{
"title": "Getting started with turtles",
"date": "2020-07-01T00:00:00.000Z",
"teaser_image": "/media/turtle4.jpg",
"tags": [
"turtles"
],
"type": "posts",
"filepath": "content/posts/getting-started.md",
"body": "<p>Welcome to your first turtles post. Glad you could join us in the turtle-verse. Turtles is a very simple yet powerful static site builder. Although it’s main purpose is to build static webpages, theorically, you could build images, source code, ASCI art from it.</p>\n<!-- more -->\n<div class=\"text-center\">\n\t<img class=\"w-full\" src=\"/media/turtle4.jpg\">\n\t<span>Photo by <a href=\"https://unsplash.com/@cedric_frixon?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText\">Cédric Frixon</a> on <a href=\"/s/photos/turtle?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText\">Unsplash</a></span>\t\n</div>\n<p>The basic idea is that you have markdown/frontmatter content which gets rendered down into a database.js file. Other files are simply left unprocessed and copied to your site. The generated database.js is a flat json file. The database.js is read and used in conjunction with your template to generate your static site.</p>\n<h2>Structure</h2>\n<pre><code>- content/\n- site/\n- template/\n- turtles/\n- database.js\n- config.js\n</code></pre>\n<h3>content/</h3>\n<p>This is content that you add for your site. Any markdown files in here will get parsed, along with frontmatter (see example posts/my-first-post.md). All front matter and markdown files will re-generate a file called <code>database.js</code> which houses all your content in a json format. Any static files placed in here are ignored and simply copied over to your final <code>site/</code> directory. Any markdown files in <code>content/static</code> will not be added to the <code>database.js</code>. Out of the box, turtles offers <code>posts</code> but you are not limited to this. You can create your own collection types by creating a new directory, e.g. <code>projects/</code>, <code>blogs/</code>, <code>authors</code>, <code>pets</code> and then placing mardown files in that directory. It will start to show up in your database.js and you can access it anywhere in your template in a very similar fashion to the provided posts out of the box examples.</p>\n<h3>site/</h3>\n<p>This is where your final product site ends up. If you’re using Github (gh-pages) to host static sites, then you can pull in your repository and switch to that gh-page branch. This site is in the <code>.gitignore</code> for that very reason as you may not want to commit it to this repositories branch. If that isn’t the case for you, then go remove site/ from <code>.gitignore</code> file.</p>\n<h3>template/</h3>\n<p>This your site’s template. Have fun with it. Out of the box, you can use ejs script anywhere. Directories can be made dynamically using paths found in your database.js. Out of the box, we use <code>content/posts</code> to generate a collection of posts into our database.js. Also notice the directory <code>template/{posts[].year}</code>. This will yield you a directory for each post year in your <code>site/</code> once the build is completed.</p>\n<h3>turtles/</h3>\n<p>This houses some build scripts that come out of the box. You don’t have to worry too much about this, but go check out schema.posts.js to get an example of how you can create additional computed fields in addition to your frontmatter. Feel free to get creative here, but it’s not necessary to touch any of these files if you don’t need to.</p>\n<h3>database.js</h3>\n<p>This is a dynamically generated json file created from your <code>content/</code></p>\n<h4>config.js</h4>\n<p>Lets you configure options for the build scripts behind turtles. Take a peek inside.</p>\n",
"summary": "<p>Welcome to your first turtles post. Glad you could join us in the turtle-verse. Turtles is a very simple yet powerful static site builder. Although it’s main purpose is to build static webpages, theorically, you could build images, source code, ASCI art from it.</p>\n",
"summary_text": "Welcome to your first turtles post. Glad you could join us in the turtle-verse. Turtles is a very simple yet powerful static site builder. Although it’s main purpose is to build static webpages, theorically, you could build images, source code, ASCI art from it.\n",
"without_summary": "<!-- more -->\n<div class=\"text-center\">\n\t<img class=\"w-full\" src=\"/media/turtle4.jpg\">\n\t<span>Photo by <a href=\"https://unsplash.com/@cedric_frixon?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText\">Cédric Frixon</a> on <a href=\"/s/photos/turtle?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText\">Unsplash</a></span>\t\n</div>\n<p>The basic idea is that you have markdown/frontmatter content which gets rendered down into a database.js file. Other files are simply left unprocessed and copied to your site. The generated database.js is a flat json file. The database.js is read and used in conjunction with your template to generate your static site.</p>\n<h2>Structure</h2>\n<pre><code>- content/\n- site/\n- template/\n- turtles/\n- database.js\n- config.js\n</code></pre>\n<h3>content/</h3>\n<p>This is content that you add for your site. Any markdown files in here will get parsed, along with frontmatter (see example posts/my-first-post.md). All front matter and markdown files will re-generate a file called <code>database.js</code> which houses all your content in a json format. Any static files placed in here are ignored and simply copied over to your final <code>site/</code> directory. Any markdown files in <code>content/static</code> will not be added to the <code>database.js</code>. Out of the box, turtles offers <code>posts</code> but you are not limited to this. You can create your own collection types by creating a new directory, e.g. <code>projects/</code>, <code>blogs/</code>, <code>authors</code>, <code>pets</code> and then placing mardown files in that directory. It will start to show up in your database.js and you can access it anywhere in your template in a very similar fashion to the provided posts out of the box examples.</p>\n<h3>site/</h3>\n<p>This is where your final product site ends up. If you’re using Github (gh-pages) to host static sites, then you can pull in your repository and switch to that gh-page branch. This site is in the <code>.gitignore</code> for that very reason as you may not want to commit it to this repositories branch. If that isn’t the case for you, then go remove site/ from <code>.gitignore</code> file.</p>\n<h3>template/</h3>\n<p>This your site’s template. Have fun with it. Out of the box, you can use ejs script anywhere. Directories can be made dynamically using paths found in your database.js. Out of the box, we use <code>content/posts</code> to generate a collection of posts into our database.js. Also notice the directory <code>template/{posts[].year}</code>. This will yield you a directory for each post year in your <code>site/</code> once the build is completed.</p>\n<h3>turtles/</h3>\n<p>This houses some build scripts that come out of the box. You don’t have to worry too much about this, but go check out schema.posts.js to get an example of how you can create additional computed fields in addition to your frontmatter. Feel free to get creative here, but it’s not necessary to touch any of these files if you don’t need to.</p>\n<h3>database.js</h3>\n<p>This is a dynamically generated json file created from your <code>content/</code></p>\n<h4>config.js</h4>\n<p>Lets you configure options for the build scripts behind turtles. Take a peek inside.</p>\n",
"without_summary_text": "\n\n\t\n\tPhoto by Cédric Frixon on Unsplash\t\n\nThe basic idea is that you have markdown/frontmatter content which gets rendered down into a database.js file. Other files are simply left unprocessed and copied to your site. The generated database.js is a flat json file. The database.js is read and used in conjunction with your template to generate your static site.\nStructure\n- content/\n- site/\n- template/\n- turtles/\n- database.js\n- config.js\n\ncontent/\nThis is content that you add for your site. Any markdown files in here will get parsed, along with frontmatter (see example posts/my-first-post.md). All front matter and markdown files will re-generate a file called database.js which houses all your content in a json format. Any static files placed in here are ignored and simply copied over to your final site/ directory. Any markdown files in content/static will not be added to the database.js. Out of the box, turtles offers posts but you are not limited to this. You can create your own collection types by creating a new directory, e.g. projects/, blogs/, authors, pets and then placing mardown files in that directory. It will start to show up in your database.js and you can access it anywhere in your template in a very similar fashion to the provided posts out of the box examples.\nsite/\nThis is where your final product site ends up. If you’re using Github (gh-pages) to host static sites, then you can pull in your repository and switch to that gh-page branch. This site is in the .gitignore for that very reason as you may not want to commit it to this repositories branch. If that isn’t the case for you, then go remove site/ from .gitignore file.\ntemplate/\nThis your site’s template. Have fun with it. Out of the box, you can use ejs script anywhere. Directories can be made dynamically using paths found in your database.js. Out of the box, we use content/posts to generate a collection of posts into our database.js. Also notice the directory template/{posts[].year}. This will yield you a directory for each post year in your site/ once the build is completed.\nturtles/\nThis houses some build scripts that come out of the box. You don’t have to worry too much about this, but go check out schema.posts.js to get an example of how you can create additional computed fields in addition to your frontmatter. Feel free to get creative here, but it’s not necessary to touch any of these files if you don’t need to.\ndatabase.js\nThis is a dynamically generated json file created from your content/\nconfig.js\nLets you configure options for the build scripts behind turtles. Take a peek inside.\n",
"year": "2020",
"month": "06",
"day": "30",
"dow": "02",
"doy": "182",
"week": "27",
"hour": "19",
"minute": "00",
"second": "00",
"pretty_date": "06/30/2020",
"author": "Master Roshi",
"author_email": "masterroshiisawesome@fakeemail.com",
"slug": "getting-started",
"url": "/2020/06/getting-started/",
"prev_url": "/2020/05/about-real-turtles/",
"next_url": "/2020/05/more-about-turtles/"
},
{
"title": "More about turtles",
"date": "2020-06-01T00:00:00.000Z",
"teaser_image": "/media/turtle1.jpg",
"tags": [
"turtles"
],
"type": "posts",
"filepath": "content/posts/more-about-turtles.md",
"body": "<p>Hope you like turtles. Go create some stuff! You can open a ticket on github or ask on stack overflow if you have any questions. <p class=\"bg-red-600\">Go check out some youtube videos too, to see how easy it is to customize turtles.</p></p>\n<pre><code># here is some code to look at\nlet x = 1;\n\nfor (let i = 0; i < x; i++) {\n\talert(i);\n}\n</code></pre>\n",
"summary": "Hope you like turtles. Go create some stuff! You can open a ticket on github or ask on stack overflow if you have any questions. Go check out some youtube videos too, to see how easy it is to customize turtles.\n# here is some code to look at\nlet x = 1;\n\nfor (let i = 0; i < x; i++) {\n\talert(i);\n}\n\n",
"summary_text": "Hope you like turtles. Go create some stuff! You can open a ticket on github or ask on stack overflow if you have any questions. Go check out some youtube videos too, to see how easy it is to customize turtles.\n# here is some code to look at\nlet x = 1;\n\nfor (let i = 0; i < x; i++) {\n\talert(i);\n}\n\n",
"without_summary": "<p>Hope you like turtles. Go create some stuff! You can open a ticket on github or ask on stack overflow if you have any questions. <p class=\"bg-red-600\">Go check out some youtube videos too, to see how easy it is to customize turtles.</p></p>\n<pre><code># here is some code to look at\nlet x = 1;\n\nfor (let i = 0; i < x; i++) {\n\talert(i);\n}\n</code></pre>\n",
"without_summary_text": "Hope you like turtles. Go create some stuff! You can open a ticket on github or ask on stack overflow if you have any questions. Go check out some youtube videos too, to see how easy it is to customize turtles.\n# here is some code to look at\nlet x = 1;\n\nfor (let i = 0; i < x; i++) {\n\talert(i);\n}\n\n",
"year": "2020",
"month": "05",
"day": "31",
"dow": "00",
"doy": "152",
"week": "23",
"hour": "19",
"minute": "00",
"second": "00",
"pretty_date": "05/31/2020",
"author": "Master Roshi",
"author_email": "masterroshiisawesome@fakeemail.com",
"slug": "more-about-turtles",
"url": "/2020/05/more-about-turtles/",
"prev_url": "/2020/06/getting-started/",
"next_url": "/"
}
],
"site": {
"name": "Turtles Site",
"url": "https://turtles.cc",
"google_ad_client": null,
"disqus_shortname": null,
"contact_email": "no-spam-2073@my-email.com",
"author": "Master Roshi",
"author_email": "masterroshiisawesome@fakeemail.com"
}
}