Skip to content

Commit

Permalink
Tags
Browse files Browse the repository at this point in the history
  • Loading branch information
javierarce committed Dec 29, 2023
1 parent 8beca83 commit d2fd088
Show file tree
Hide file tree
Showing 6 changed files with 152 additions and 24 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.

version: 6.0.11
version: 6.0.12
title: "Javier's computer"
description: "My computer on the net"
baseurl: ""
Expand Down
118 changes: 115 additions & 3 deletions _data/movies.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,119 @@
{
"updated_at": "2023-12-11",
"count": 541,
"updated_at": "2023-12-29",
"count": 555,
"movies": [
{
"watched_on": "2023-12-27",
"title": "Auto Focus (2002)",
"rating": 2.5,
"stars": "★★½",
"rewatched": false,
"permalink": "auto-focus"
},
{
"watched_on": "2023-12-27",
"title": "Ikiru (1952)",
"rating": 4,
"stars": "★★★★",
"rewatched": false,
"permalink": "ikiru"
},
{
"watched_on": "2023-12-27",
"title": "Investigation of a Citizen Above Suspicion (1970)",
"rating": 4,
"stars": "★★★★",
"rewatched": false,
"permalink": "investigation-of-a-citizen-above-suspicion"
},
{
"watched_on": "2023-12-26",
"title": "La Strada (1954)",
"rating": 4.5,
"stars": "★★★★½",
"rewatched": false,
"permalink": "la-strada"
},
{
"watched_on": "2023-12-25",
"title": "Eer (2021)",
"rating": 2,
"stars": "★★",
"rewatched": false,
"permalink": "eer"
},
{
"watched_on": "2023-12-25",
"title": "Dream Scenario (2023)",
"rating": 3.5,
"stars": "★★★½",
"rewatched": false,
"permalink": "dream-scenario"
},
{
"watched_on": "2023-12-21",
"title": "Pearl (2022)",
"rating": 2.5,
"stars": "★★½",
"rewatched": false,
"permalink": "pearl-2022"
},
{
"watched_on": "2023-12-20",
"title": "Big Deal on Madonna Street (1958)",
"rating": 3.5,
"stars": "★★★½",
"rewatched": false,
"permalink": "big-deal-on-madonna-street"
},
{
"watched_on": "2023-12-18",
"title": "In Search of Ozu (2018)",
"rating": 4,
"stars": "★★★★",
"rewatched": false,
"permalink": "in-search-of-ozu"
},
{
"watched_on": "2023-12-17",
"title": "Bicycle Thieves (1948)",
"rating": 5,
"stars": "★★★★★",
"rewatched": false,
"permalink": "bicycle-thieves"
},
{
"watched_on": "2023-12-17",
"title": "Pool of London (1951)",
"rating": 4,
"stars": "★★★★",
"rewatched": false,
"permalink": "pool-of-london"
},
{
"watched_on": "2023-12-16",
"title": "Leave the World Behind (2023)",
"rating": 1.5,
"stars": "★½",
"rewatched": false,
"permalink": "leave-the-world-behind-2023"
},
{
"watched_on": "2023-12-15",
"title": "Anatomy of a Fall (2023)",
"rating": 3.5,
"stars": "★★★½",
"rewatched": false,
"permalink": "anatomy-of-a-fall"
},
{
"watched_on": "2023-12-13",
"title": "Wild Strawberries (1957)",
"rating": 4,
"stars": "★★★★",
"rewatched": false,
"permalink": "wild-strawberries"
},
{
"watched_on": "2023-12-11",
"title": "The Holdovers (2023)",
Expand Down Expand Up @@ -812,7 +924,7 @@
},
{
"watched_on": "2023-06-27",
"title": "Talking Heads (1980)",
"title": "Talking Heads (1981)",
"rating": 4,
"stars": "★★★★",
"rewatched": false,
Expand Down
12 changes: 7 additions & 5 deletions _layouts/tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
{% endfor %}

<div class="Archive">
<h2>{{ page.tag | capitalize }}</h2>
<ul>
<h2>{{ page.tag | capitalize }} ({{ posts | size }})</h2>
<ul class="Archive__entryList">
{% for post in posts %}
<li>
<li class="Archive__entryListItem">
<a href="{{ post.url }}" class="is-{{ post.category }}">{{ post.title }}</a>
<span class="Date">{{ post.date | date: '%B %d, %Y' }}</span>

<div class="Archive__entryListItemContent">
<p>{{ post.content | strip_html | truncatewords: 20 }}</p>
<span class="Archive__entryListItemDate">{{ post.date | date: '%B %d, %Y' }}</span>
</div>
</li>
{% endfor %}
</ul>
Expand Down
15 changes: 15 additions & 0 deletions css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -384,3 +384,18 @@ span.Date {
opacity: 0.5;
}

.Archive__entryList {
list-style: none;
margin: 0;
}
.Archive__entryListItem {
list-style: none;
margin: 0 0 2em;
}
.Archive__entryListItemContent p {
margin: 0 0 0.8em;
}
.Archive__entryListItemDate {
opacity: 0.5;
font-size: 0.9em;
}
15 changes: 5 additions & 10 deletions pages/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@
permalink: /tags/
---

{% for tag in site.tags %}
<h2 id="{{ tag[0] | slugify }}">{{ tag[0] | capitalize }}</h2>
<ul>
{% for post in tag[1] %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
{% endfor %}
<ul>
{% for tag in site.tags %}
<li><a href="/tags/{{ tag[0] }}">{{ tag[0] | capitalize }}</a></li>
{% endfor %}
</ul>
14 changes: 9 additions & 5 deletions subscribe.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,26 @@ permalink: subscribe
className: About
---

Suscríbete a mi newsletter para recibir avisos cuando publique un nuevo proyecto o haga algo extremadamente gracioso.
Suscríbete a mi newsletter para recibir avisos cuando publique un nuevo
proyecto o haga algo extremadamente gracioso.

[Archivo](/tags/newsletter)

<div class="Contact">
<form class="Form" method="post" action="https://mailer.javier.computer/subscription/form">
<input type="hidden" name="nonce" />
<input type="hidden" name="l" value="10546b54-985f-41ab-836c-eac7e11477ef"/>
<label class="Label" for="email">Email</label>
<div class="Input__field">
<input class="Input" type="email" name="email" required placeholder="" />
</div>

<label class="Label" for="name">Nombre <span class="is-optional">(opcional)</span></label>
<div class="Input__field">
<input class="Input" type="text" name="name" placeholder="" />
</div>

<label class="Label" for="email">Email</label>
<div class="Input__field">
<input class="Input" type="email" name="email" required placeholder="" />
</div>

<div class="Actions"><input class="Button" type="submit" value="Subscríbete" /></div>
</form>
</div>

0 comments on commit d2fd088

Please sign in to comment.