fixed some general silliness with secrets index.html is changed because it is updated when main.py is run
This commit is contained in:
parent
2b5a4467ec
commit
62233d9fda
56
index.html
56
index.html
|
@ -1,29 +1,29 @@
|
||||||
<htmL lang="en">
|
<htmL lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>One cat per day!</title>
|
<title>One cat per day!</title>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<link rel="stylesheet" href="https://api.fonts.coollabs.io/icon?family=Material+Icons">
|
<link rel="stylesheet" href="https://api.fonts.coollabs.io/icon?family=Material+Icons">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<nav>
|
<nav>
|
||||||
<div class="greeting">
|
<div class="greeting">
|
||||||
<h1>One cat per day!</h1>
|
<h1>One cat per day!</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons">
|
<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="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>
|
<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>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<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 -->
|
<!-- 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">
|
<img class = "cat-img" src=img/cat2024-07-25-12:12:20.jpg alt="A picture of a cat">
|
||||||
</main>
|
</main>
|
||||||
<footer>
|
<footer>
|
||||||
<p>Made by <a href="https://zepp.omg.lol" target="_blank" rel="noopener noreferrer">zepp</a> for the love of cats. </p>
|
<p>Made by <a href="https://zepp.omg.lol" target="_blank" rel="noopener noreferrer">zepp</a> for the love of cats. </p>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</htmL>
|
</htmL>
|
3
main.py
3
main.py
|
@ -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 gets you access to more cats however, which is purrfect for our needs
|
||||||
api_key = ""
|
api_key = ""
|
||||||
with open(".secrets", "r") as f:
|
with open(".secrets", "r") as f:
|
||||||
api_key = f.readlines()
|
api_key = f.readline()
|
||||||
api_key = api_key[0].strip("\n")
|
|
||||||
|
|
||||||
# I ask for 10 cats because I don't want an animated gif to use as the cat image of the day
|
# 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
|
# I'm specifically looking for a jpg, and may look for specific image dimeensions as well in the future
|
||||||
|
|
Loading…
Reference in New Issue