Skip to content

Commit

Permalink
beautiful site
Browse files Browse the repository at this point in the history
  • Loading branch information
ijara committed Nov 8, 2024
1 parent 55d9127 commit 1d3b2a6
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 11 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# podpodcat
### ultima version

{% include _includes/daily/latest.md %}

https://ijara.github.io/podpodcat/
## Comandos
- Actualizar el sistema: `sudo apt-get update`
- Instalar Python3, pip y ffmpeg: `sudo apt-get install python3 python3-pip ffmpeg`
Expand Down
76 changes: 69 additions & 7 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,47 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/foundation.min.css" integrity="sha256-ogmFxjqiTMnZhxCqVmcqTj0aF1SdUeMPk+WPN/6E5w= sha384-9FBOUNzOvqqlc5ChiR5LblQPhoa8hSXMaYdac5PWGOb48Ga7ojL/BQ1M6gfkU4I" crossorigin="anonymous">
</head>
<title>PodPodCat - lector de diario oficial</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.4.3/css/foundation.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/motion-ui/1.2.3/motion-ui.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.4.3/css/foundation-prototype.min.css">
<link href='https://cdnjs.cloudflare.com/ajax/libs/foundicons/3.0.0/foundation-icons.css' rel='stylesheet' type='text/css'>
<!-- optional CDN for Foundation Icons ^^ --></head>
<body>
<div class="grid-container">
<div class="grid-x grid-margin-x">
<div id="latest" class="cell">
</div>
<div class="top-bar">
<div class="top-bar-left">
<ul class="menu">
<li class="menu-text">
PodPodCat
</li>
<li class=>
<a href="https:\/\/www.diariooficial.interior.gob.cl/edicionelectronica/">diario oficial</a>
</li>
</ul>
</div>
</div>
<div class="callout large primary">
<div class="text-center">
<h1>PodPodCat</h1>
<h2 class="subheader">lector diario oficial chile</h2>
</div>
</div>
<article class="grid-container">
<div class="grid-x align-center">
<div class="cell medium-8" >
<div class="blog-post">
<p class="float-left">Resumen</p>
<p class="float-right" id="fecha"></p>
<script>
document.getElementById('fecha').textContent = new Date().toLocaleDateString();
</script>
<hr>
<div id="latest" class=""/>
<hr>
</div>
</div>
<hr>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/foundation.min.js" integrity="sha256-pRF3z5Mq+NO33k5G/BL+RfZ9UP/sSJnDfNqZAC/BNnQ= sha384-6OBHO6AvrFqAcELVG1hgX1nGkAPsJ6tKE+Zs5yL4gAixvD25mLgSqNEBD63szOK" crossorigin="anonymous"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
Expand All @@ -29,8 +60,39 @@
.catch(error => {
console.error('Error:', error);
});
fetch('fecha.html')
.then(response => {
if (!response.ok) {
throw new Error('Error al cargar el archivo fecha.html');
}
return response.text();
})
.then(data => {
document.getElementById('fecha').innerHTML = data;
})
.catch(error => {
console.error('Error:', error);
});
});

</script>
<footer>
<div class="grid-x align-justify align-middle">
<div class="small-12 medium-shrink cell">
<ul class="menu">
<li class="align-self-middle">PodPodCat</li>
<li><a href="#">About</a></li>
<li><a href="mailto:[email protected]">Contact</a></li>
<li><a href="https://github.com/ijara/podpodcat">Code</a></li>
</ul>
</div>

<div class="small-12 medium-shrink cell">
<span>creado en 2024 con ✨</span>
</div>
</div>
</footer>

</article>
</body>
</html>
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def main():

fecha_actual = datetime.datetime.now().strftime("%Y%m%d") # Cambiar a datetime.datetime
directorio_diario = "docs"
nombre_archivo = f"newsletter_{fecha_actual}.md"
nombre_archivo = f"newsletter_{fecha_actual}.html"
ruta_completa_archivo = os.path.join(directorio_diario, nombre_archivo)

if not os.path.exists(directorio_diario):
Expand Down

0 comments on commit 1d3b2a6

Please sign in to comment.