fixed some general silliness with secrets index.html is changed because it is updated when main.py is run

This commit is contained in:
emma 2024-07-25 12:13:57 -04:00
parent 2b5a4467ec
commit 62233d9fda
2 changed files with 29 additions and 30 deletions

View File

@ -1,29 +1,29 @@
<htmL lang="en">
<head>
<title>One cat per day!</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://api.fonts.coollabs.io/icon?family=Material+Icons">
</head>
<body>
<header>
<nav>
<div class="greeting">
<h1>One cat per day!</h1>
</div>
<div class="buttons">
<a href="rss.html" target="_blank" rel="noopener noreferrer"><button><span class="material-icons">rss_feed</span><span>Subscribe via RSS</span></button></a>
<a href="https://git.32bit.cafe/zepp/onecatper.day" target="_blank" rel="noopener noreferrer"><button><span class="material-icons">terminal</span><span>Check out the code</span></button></a>
</div>
</nav>
</header>
<main>
<!-- a more descriptive alt text is not possible, I can only know ahead of time that one or more catss will be in the image -->
<img class = "cat-img" src=img/cat2024-07-25-08:58:14.jpg alt="A picture of a cat">
</main>
<footer>
<p>Made by <a href="https://zepp.omg.lol" target="_blank" rel="noopener noreferrer">zepp</a> for the love of cats. </p>
</footer>
</body>
</htmL>
<head>
<title>One cat per day!</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://api.fonts.coollabs.io/icon?family=Material+Icons">
</head>
<body>
<header>
<nav>
<div class="greeting">
<h1>One cat per day!</h1>
</div>
<div class="buttons">
<a href="rss.html" target="_blank" rel="noopener noreferrer"><button><span class="material-icons">rss_feed</span><span>Subscribe via RSS</span></button></a>
<a href="https://git.32bit.cafe/zepp/onecatper.day" target="_blank" rel="noopener noreferrer"><button><span class="material-icons">terminal</span><span>Check out the code</span></button></a>
</div>
</nav>
</header>
<main>
<!-- a more descriptive alt text is not possible, I can only know ahead of time that one or more catss will be in the image -->
<img class = "cat-img" src=img/cat2024-07-25-12:12:20.jpg alt="A picture of a cat">
</main>
<footer>
<p>Made by <a href="https://zepp.omg.lol" target="_blank" rel="noopener noreferrer">zepp</a> for the love of cats. </p>
</footer>
</body>
</htmL>

View File

@ -19,8 +19,7 @@ def get_image_url():
# api key gets you access to more cats however, which is purrfect for our needs
api_key = ""
with open(".secrets", "r") as f:
api_key = f.readlines()
api_key = api_key[0].strip("\n")
api_key = f.readline()
# I ask for 10 cats because I don't want an animated gif to use as the cat image of the day
# I'm specifically looking for a jpg, and may look for specific image dimeensions as well in the future