feat: initial commit
This commit is contained in:
commit
e214116e40
253 changed files with 17406 additions and 0 deletions
60
src/includes/home/recent-activity.liquid
Normal file
60
src/includes/home/recent-activity.liquid
Normal file
|
@ -0,0 +1,60 @@
|
|||
<article>
|
||||
<h2>
|
||||
{% tablericon "activity" %}
|
||||
Recent activity
|
||||
</h2>
|
||||
<p>
|
||||
<a href="/posts" class="article">Posts</a> •
|
||||
<a href="/links" class="link">Links</a> •
|
||||
<a href="/watching" class="movies">Watching</a> •
|
||||
<a href="/books" class="books">Books</a>
|
||||
</p>
|
||||
{%- for item in items -%}
|
||||
<article class="{{ item.type }}">
|
||||
<aside>
|
||||
<time datetime="{{ item.content_date }}">
|
||||
{{ item.content_date | date:"%B %e, %Y" }}
|
||||
</time>
|
||||
• {{ item.label }}
|
||||
{%- if item.notes -%}
|
||||
{% assign notes = item.notes | prepend: "### Notes\n" | markdown %}
|
||||
• {% render "blocks/modal.liquid",
|
||||
label:"Notes",
|
||||
content:notes,
|
||||
id:item.content_date
|
||||
%}
|
||||
{%- endif -%}
|
||||
</aside>
|
||||
<h3>
|
||||
{%- if item.type == "concerts" -%}
|
||||
{%- capture artistName -%}
|
||||
{%- if item.artist_url -%}
|
||||
<a href="{{ item.artist_url }}">{{ item.title | split: ' at ' | first }}</a>
|
||||
{%- else -%}
|
||||
{{ item.title | split: ' at ' | first }}
|
||||
{%- endif -%}
|
||||
{%- endcapture -%}
|
||||
{%- capture venue -%}
|
||||
{%- if item.venue_lat and item.venue_lon -%}
|
||||
<a href="https://www.openstreetmap.org/?mlat={{ item.venue_lat }}&mlon={{ item.venue_lon }}#map=18/{{ item.venue_lat }}/{{ item.venue_lon }}">{{ item.venue_name }}</a>
|
||||
{%- else -%}
|
||||
{{ item.venue_name }}
|
||||
{%- endif -%}
|
||||
{%- endcapture -%}
|
||||
{{ artistName }}
|
||||
{% if venue %} at {{ venue }}{% endif %}
|
||||
{%- else -%}
|
||||
<a href="{{ item.url | prepend: globals.url }}">{{ item.title }}</a>
|
||||
{%- if item.type == "link" and item.author -%}
|
||||
<span> via </span>
|
||||
{%- if item.author.url -%}
|
||||
<a href="{{ item.author.url }}">{{ item.author.name }}</a>
|
||||
{%- else -%}
|
||||
{{ item.author.name }}
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
</h3>
|
||||
</article>
|
||||
{%- endfor -%}
|
||||
</article>
|
Loading…
Add table
Add a link
Reference in a new issue