Skip to content

Commit 61a1d9f

Browse files
committed
analytics
1 parent d5bc45b commit 61a1d9f

2 files changed

Lines changed: 47 additions & 45 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Node.js
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: 20 # Node 18 también funciona, pero 20 es más estable
26+
node-version: 20
2727
cache: "npm"
2828

2929
- name: Install dependencies
@@ -32,13 +32,13 @@ jobs:
3232
- name: Build Eleventy site
3333
run: |
3434
npm run build
35-
[ -f docs/.nojekyll ] || touch docs/.nojekyll # Asegura que .nojekyll esté en docs/
35+
[ -f docs/.nojekyll ] || touch docs/.nojekyll
3636
3737
- name: Upload artifact
3838
uses: actions/upload-pages-artifact@v3
3939
with:
40-
path: "docs/" # Ruta personalizada que coincides con tu configuración
40+
path: "docs/"
4141

4242
- name: Deploy to GitHub Pages
4343
id: deployment
44-
uses: actions/deploy-pages@v4 # ¡Versión actualizada!
44+
uses: actions/deploy-pages@v4
Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,48 @@
11
<!DOCTYPE html>
22
<html lang="es">
3-
<head>
4-
<!-- Google tag (gtag.js)
5-
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XM2E5589LJ"></script>
6-
<script>
7-
window.dataLayer = window.dataLayer || [];
8-
function gtag(){dataLayer.push(arguments);}
9-
gtag('js', new Date());
10-
gtag('config', 'G-XM2E5589LJ');
11-
</script>
12-
-->
13-
<meta charset="UTF-8">
14-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
15-
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
16-
<link rel="stylesheet" href="{{ '/css/styles.css' | url }}">
17-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Montserrat:wght@700&display=swap" rel="stylesheet">
18-
19-
<title>{{ title }}</title>
20-
</head>
21-
<body>
22-
23-
{% include "header.njk" %}
24-
25-
{% include "nav.njk" %}
26-
27-
<!-- Contenido principal -->
28-
<div class="container">
29-
<div class="contenido-principal">
30-
{{ content | safe }}
31-
</div>
32-
<div class="boton-ruta-aprendizaje mt-4">
33-
<a href="{{ '/ruta-aprendizajeDS' | url }}" class="btn btn-primary">Volver a la ruta de aprendizaje</a>
34-
</div>
35-
</div>
3+
<head>
4+
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
8+
<link rel="stylesheet" href="{{ '/css/styles.css' | url }}">
9+
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Montserrat:wght@700&display=swap" rel="stylesheet">
10+
11+
<title>{{ title }}</title>
3612

13+
<!-- Google tag (gtag.js) -->
14+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X1EETP8PXC"></script>
15+
<script>
16+
window.dataLayer = window.dataLayer || [];
17+
function gtag() {
18+
dataLayer.push(arguments);
19+
}
20+
gtag('js', new Date());
21+
gtag('config', 'G-X1EETP8PXC');
22+
</script>
23+
</head>
24+
<body>
25+
26+
{% include "header.njk" %}
27+
28+
{% include "nav.njk" %}
29+
30+
<!-- Contenido principal -->
31+
<div class="container">
32+
<div class="contenido-principal">
33+
{{ content | safe }}
34+
</div>
35+
<div class="boton-ruta-aprendizaje mt-4">
36+
<a href="{{ '/ruta-aprendizajeDS' | url }}" class="btn btn-primary">Volver a la ruta de aprendizaje</a>
37+
</div>
38+
</div>
3739

38-
<!-- Footer -->
39-
{% include "footer.njk" %}
40+
<!-- Footer -->
41+
{% include "footer.njk" %}
4042

41-
<script src="{{ '/js/scripts.js' | url }}"></script>
42-
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
43-
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
44-
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
45-
</body>
46-
</html>
43+
<script src="{{ '/js/scripts.js' | url }}"></script>
44+
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
45+
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
46+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
47+
</body>
48+
</html>

0 commit comments

Comments
 (0)