From 23c4a57662d998a79328686129533900f9469369 Mon Sep 17 00:00:00 2001 From: Lee Reid Date: Mon, 12 Dec 2022 17:14:30 +0100 Subject: [PATCH] image has default style applied --- Example_Output/Index.html | 4 ++-- Example_Output/cat-topics/anatomy.html | 2 +- Example_Output/cat-topics/behaviour.html | 2 +- Example_Output/cat-topics/cat-care.html | 4 ++-- Example_Output/cat-topics/history.html | 2 +- Example_Output/sitemap.html | 2 +- Example_Output/sitemap.xml | 2 +- MarkdownToSiteGenerator/HTML/Image.cs | 1 + 8 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Example_Output/Index.html b/Example_Output/Index.html index f0100b4..755e654 100644 --- a/Example_Output/Index.html +++ b/Example_Output/Index.html @@ -21,6 +21,6 @@ -

The Cat Site

Depending on what you've opened, this is either an markdown file that will be built into a website, or a webpage that came from markdown files. The internet seems to love cats, so this site about cats.

Please note that links and images will appear to not work if you're viewing this in GitHub or on your file system as links assume these files are on a webserver, where '/' points to the site root. When uploaded to a webserver, the html files will all work!

Picture of a cat. You'll just see this alt text if you're on your filesystem or github. The cat will appear when files are hosted.

You can use the menu bar to see pages in this website, or jump straight to the page about cat history.

You can also take a look at the site map.

+ +

The Cat Site

Depending on what you've opened, this is either an markdown file that will be built into a website, or a webpage that came from markdown files. The internet seems to love cats, so this site about cats.

Please note that links and images will appear to not work if you're viewing this in GitHub or on your file system as links assume these files are on a webserver, where '/' points to the site root. When uploaded to a webserver, the html files will all work!

Picture of a cat. You'll just see this alt text if you're on your filesystem or github. The cat will appear when files are hosted.

You can use the menu bar to see pages in this website, or jump straight to the page about cat history.

You can also take a look at the site map.

\ No newline at end of file diff --git a/Example_Output/cat-topics/anatomy.html b/Example_Output/cat-topics/anatomy.html index 6ec3149..733a9df 100644 --- a/Example_Output/cat-topics/anatomy.html +++ b/Example_Output/cat-topics/anatomy.html @@ -19,6 +19,6 @@ +

Cat Anatomy

You'll notice this page doesn't have a title as metadata. The title will default to 'cat anatomy' and can be linked to using the name cat_anatomy.

Here are some basic facts about the physical characteristics and anatomy of cats:

  1. Cats have a flexible spine and powerful legs, which allows them to run and jump quickly
  2. Their sharp claws and retractable paws enable them to climb trees and catch prey
  3. Cats have excellent senses, including keen vision, hearing, and sense of smell

1. They have a unique ability to rotate their outer ear (the pinna) in the direction of a sound

\ No newline at end of file diff --git a/Example_Output/cat-topics/behaviour.html b/Example_Output/cat-topics/behaviour.html index 265adbb..f07c437 100644 --- a/Example_Output/cat-topics/behaviour.html +++ b/Example_Output/cat-topics/behaviour.html @@ -20,6 +20,6 @@ +

The behavior and intelligence of cats

The markdown for this file has a space in it. You'll notice how the HTML file does not, and links also do not (check the menu).

Some opinions by an AI chatbot about cats

  1. Cats are known for their independent and aloof nature, but they can also be affectionate with their owners
  2. They are solitary hunters and use a combination of stealth and agility to catch their prey
  3. Cats are intelligent animals and can be trained to perform various tasks and tricks
  4. They are also known for their playfulness and will often play with toys, string, and other objects
\ No newline at end of file diff --git a/Example_Output/cat-topics/cat-care.html b/Example_Output/cat-topics/cat-care.html index a0cd722..3650291 100644 --- a/Example_Output/cat-topics/cat-care.html +++ b/Example_Output/cat-topics/cat-care.html @@ -22,6 +22,6 @@ -

The health and care of domestic cats

Markdown

The markdown for this file contains a subheading. No problem. I've also added some extra metadata. You can take a look at that in the html source.

Ok back to cat facts

  1. Cats require regular veterinary checkups to ensure they are healthy and up-to-date on vaccinations
  2. They also need a balanced diet of high-quality cat food, and plenty of fresh water
  3. Regular grooming, including brushing their fur and clipping their nails, is also important for their health and well-being
  4. Cats should be kept indoors to protect them from dangers such as traffic, other animals, and diseases

Oh, a cat again. Notice that we can just use the filename even though the file is not in this directory. That's because all images end up in a flattened directory. You'll just see this alt text if you're on your filesystem or github. The cat will appear when files are hosted.

+ +

The health and care of domestic cats

Markdown

The markdown for this file contains a subheading. No problem. I've also added some extra metadata. You can take a look at that in the html source.

Ok back to cat facts

  1. Cats require regular veterinary checkups to ensure they are healthy and up-to-date on vaccinations
  2. They also need a balanced diet of high-quality cat food, and plenty of fresh water
  3. Regular grooming, including brushing their fur and clipping their nails, is also important for their health and well-being
  4. Cats should be kept indoors to protect them from dangers such as traffic, other animals, and diseases

Oh, a cat again. Notice that we can just use the filename even though the file is not in this directory. That's because all images end up in a flattened directory. You'll just see this alt text if you're on your filesystem or github. The cat will appear when files are hosted.

\ No newline at end of file diff --git a/Example_Output/cat-topics/history.html b/Example_Output/cat-topics/history.html index cf6f8fd..ea0ca6c 100644 --- a/Example_Output/cat-topics/history.html +++ b/Example_Output/cat-topics/history.html @@ -20,6 +20,6 @@ +

The history and origins of domestic cats:

Here are some facts about cats, according to an AI chat bot.

  1. Cats are thought to have been domesticated about 9,500 years ago in the Near East

1. Domestic cats are descended from the African wildcat (Felis silvestris lybica)

  1. Cats were first kept as pets by the ancient Egyptians, who worshiped them as gods
  2. The ancient Romans also kept cats as pets, and they were introduced to Europe through Roman conquests

If you found that interesting, you can read about cats' anatomy.

\ No newline at end of file diff --git a/Example_Output/sitemap.html b/Example_Output/sitemap.html index bea0605..8807419 100644 --- a/Example_Output/sitemap.html +++ b/Example_Output/sitemap.html @@ -6,5 +6,5 @@
+ \ No newline at end of file diff --git a/Example_Output/sitemap.xml b/Example_Output/sitemap.xml index b18f0fe..f8b9dea 100644 --- a/Example_Output/sitemap.xml +++ b/Example_Output/sitemap.xml @@ -1 +1 @@ -https://example.com/Index.html2022-12-121monthlyhttps://example.com/cat-topics/anatomy.html2022-12-121monthlyhttps://example.com/cat-topics/behaviour.html2022-12-121monthlyhttps://example.com/cat-topics/cat-care.html2022-12-121monthlyhttps://example.com/cat-topics/history.html2022-12-121monthly \ No newline at end of file +https://example.com/cat-topics/anatomy.html2022-12-121monthlyhttps://example.com/cat-topics/behaviour.html2022-12-121monthlyhttps://example.com/cat-topics/cat-care.html2022-12-121monthlyhttps://example.com/cat-topics/history.html2022-12-121monthlyhttps://example.com/Index.html2022-12-121monthly \ No newline at end of file diff --git a/MarkdownToSiteGenerator/HTML/Image.cs b/MarkdownToSiteGenerator/HTML/Image.cs index f0179c3..b342a02 100644 --- a/MarkdownToSiteGenerator/HTML/Image.cs +++ b/MarkdownToSiteGenerator/HTML/Image.cs @@ -12,6 +12,7 @@ public Image(string href, string altText) { HRef= href; AltText = altText; + this.CSSClass = "img-fluid"; } } }