Skip to content

Commit d42a7e3

Browse files
committed
17.1: custom buttons, changes in backup, fixes
1 parent 3c4bc8a commit d42a7e3

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/content/collections/projects/backup.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ el repositorio general se actualiza de manera automática todos los días, los r
2323
### Backup Carrera
2424
el repositorio es una especie de continuación al conocido "Backup", que contiene mucha información y exámenes de otros años recopilados por ex-estudaintes de la carrera.
2525

26-
- [backup original (onedrive UO)](https://unioviedo-my.sharepoint.com/:f:/g/personal/uo257355_uniovi_es/EjUyVaf6mAhMh1TqxDFey8kB-CKEk7KP6CqwkYylcYdRQg?e=xbMQHT) (se necesita cuenta de uniovi)
27-
- [backup carrera (gdrive mirror)](https://drive.google.com/drive/folders/1z8Sc4v4nRte7a7H5TaDDtwROzoN4_Cu3?usp=share_link)
26+
- [Backup Carrera (original)](https://unioviedo-my.sharepoint.com/:f:/g/personal/uo257355_uniovi_esEjUyVaf6mAhMh1TqxDFey8kB-CKEk7KP6CqwkYylcYdRQg?e=xbMQHT) *se necesita cuenta de uniovi*
27+
- [Backup Carrera (mirror, google drive)](https://drive.google.com/drive/folders/1z8Sc4v4nRte7a7H5TaDDtwROzoN4_Cu3?usp=share_link)
2828

2929
## Descarga
3030
para descargar un repositorio, se puede clonar de forma individual o descargar en formato zip desde GitHub.
@@ -89,12 +89,14 @@ para descargar todos los repositorios, usar el siguiente comando en una terminal
8989

9090
## y4t1
9191
- [Gestión de Tecnologías de la Información](https://github.com/miermontoto/GTI)
92+
- ["gti quiz", colección de preguntas de examen del segundo parcial](https://mier.info/gti/)
9293
- [Ingeniería de Servicios](https://github.com/miermontoto/Servicios)
9394
- [Inteligencia de Negocio](https://github.com/miermontoto/Negocio)
9495
- [Seguridad](https://github.com/miermontoto/Servicios)
9596
- [Tecnologías Web](https://github.com/miermontoto/Web)
9697
- <span class="unavailable">["tew-lab-jee", prácticas de laboratorio](https://github.com/miermontoto/tew-2324-4-UO283319-lab-jee)</span>
97-
- <span class="unavailable">"2324-tew1-41", trabajo en grupo</span>
98+
- <span class="unavailable">"2324-tew1-41", primer trabajo en grupo</span>
99+
- <span class="unavailable">"2324-tew2-41", segundo trabajo en grupo</span>
98100

99101
</div>
100102

src/content/collections/projects/gti.njk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ permalink: /gti/
66
demo: /gti/
77
source: https://github.com/search?q=repo%3Amiermontoto%2Fmiermontoto+gti.&type=code
88
download: /content/collections/projects/gti.data.json
9+
buttons: ['<a class="button download" href="/content/collections/projects/gti.data.json"><svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"/></svg> download json</a>',
10+
'<span class="button" id="reset"><svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M48.5 224H40c-13.3 0-24-10.7-24-24V72c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2L98.6 96.6c87.6-86.5 228.7-86.2 315.8 1c87.5 87.5 87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3c-62.2-62.2-162.7-62.5-225.3-1L185 183c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8H48.5z"/></svg> reset</span>'
11+
]
912
---
1013

1114
{% addStyle 'gti' %}
@@ -17,7 +20,6 @@ download: /content/collections/projects/gti.data.json
1720
<span id="scored"><span id="score">0</span>%</span>
1821
<noscript class=".error">ERROR: JavaScript is NEEDED for the quiz to work!</noscript>
1922
</div>
20-
<span class="button" id="reset">reset</span>
2123
<div id="options">
2224
<input type="checkbox" id="shuffle-questions" checked>
2325
<label for="shuffle">shuffle questions</label>

src/static/css/global.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ a, a:visited
4444

4545
code
4646
color: base.$white
47-
background-color: base.$secondary
47+
background-color: base.$dark
4848
padding: 0 5px
4949
border-radius: 5px
5050

src/templates/project.njk

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ layout: base.njk
33
css: project
44
---
55

6-
<a href="/" id="back">< go back</a>
6+
<a href="{{ back or "/" }}" id="back">< go back</a>
77
{% if source %}
88
<span id="sep"> | </span>
99
<a href="{{ source }}" id="source">source code ></a>
1010
{% endif %}
1111
<h1>{{ title }}</h1>
12-
{% if download %}
13-
<a class="button" id="download" href="{{ download }}"><i class="fa-solid fa-download"></i>download</a>
12+
{% if buttons %}
13+
{% for button in buttons %}
14+
{{ button | safe }}
15+
{% endfor %}
1416
{% endif %}
1517
<hr>
1618
{% if content %}

0 commit comments

Comments
 (0)