Skip to content

Commit

Permalink
homepagge activity
Browse files Browse the repository at this point in the history
  • Loading branch information
codecalm committed Apr 29, 2024
1 parent 2cd0da4 commit 5e196a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion pages/_includes/parts/activity.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{% assign limit = include.limit | default: false %}
<div class="divide-y">
{% for item in activity limit:limit %}
{% if limit %}
{% assign activity = activity | slice: 0, limit %}
{% endif %}

{% for item in activity %}
{% assign person = people[forloop.index] %}
<div>
<div class="row">
Expand Down
8 changes: 6 additions & 2 deletions pages/_includes/ui/map.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% assign id = include.map-id %}
{% assign data = site.data.maps[id] %}
{% assign data = maps[id] %}

{{ id }}

{% if data %}
<div class="ratio ratio-{{ data.ratio | default: include.ratio | default: '16x9' }}">
Expand All @@ -8,6 +10,7 @@
</div>
</div>

{% comment %}
{% capture_global scripts %}
<script>
// @formatter:off
Expand Down Expand Up @@ -36,4 +39,5 @@
// @formatter:on
</script>
{% endcapture_global %}
{% endif %}
{% endcomment %}
{% endif %}

0 comments on commit 5e196a2

Please sign in to comment.