Skip to content

Commit

Permalink
Update aReadingsIndexByTags.md
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyanjun committed Apr 28, 2024
1 parent d4e2e4d commit 78268ff
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions _pages/aReadingsIndexByTags.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,45 +64,41 @@ Besides using high-level categories, we also use the following detailed tags to
{% if t == newtag %}
{% assign posts = tag | last %}

<!--- for each tag, present its posts in a big table -->

### Table of readings
<!--- for each tag, get a table of index -->


{% assign counter = 0 %}
<table id="datatab3" summary="Table of Lectures" border="1">
<tr>
<h3><b>
<th>Index</th>
<th>Title</th>
<th>Desc</th>
</b>
</h3>
</tr>

<div class="posts">

{% assign sortedp = posts | sort: 'date' | reverse %}
{% for post in sortedp %}

{% assign counter=counter | plus:1 %}

<div class="post">
<tr>
<td>{{ counter }}</td>
<td><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }} </a></td>
<td>{{ post.dec }}</td>
</tr>

<!--
{% if post.tags %}
{% for word in post.tags %}
{% assign wordd = word | downcase %}
<a class="button" href="{{ site.baseurl }}/aReadingsIndexByTags/#{{wordd | replace:" ","-" }}"> {{ word }}</a>
{% endfor %}
{% endif %}
-->
{% if post.date %}
<span class="post-date">read on: - {{ post.date | date_to_string }}</span> <br>
{% endif %}

{% if post.content contains '<!--excerpt.start-->' %}
{{ post.content | split:'<!--excerpt.start-->' | first }}
{% else %}
{{ post.content }}
{% endif %}
{% endfor %}
</table>

</div>
<!--- for each tag, present its posts in orders -->

{% endif %}
{% endfor %}

</div>

---

{% endif %}
Expand Down

0 comments on commit 78268ff

Please sign in to comment.