summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-05-21 14:18:14 -0500
committerToby Vincent <tobyv13@gmail.com>2023-05-21 14:18:14 -0500
commit2fffcb67e641688a48f5b82fea066cf52b254148 (patch)
tree1e317577deb99c616079d69439882c698b08b195
parent26efa2247187912e9ff0f1e73687823a6bab2c05 (diff)
refactor: add header links and fix macro bug
-rw-r--r--content/projects.md5
-rw-r--r--templates/index.html5
-rw-r--r--templates/section.html8
3 files changed, 4 insertions, 14 deletions
diff --git a/content/projects.md b/content/projects.md
deleted file mode 100644
index 6a1d392..0000000
--- a/content/projects.md
+++ /dev/null
@@ -1,5 +0,0 @@
-+++
-title = "Projects"
-+++
-
-## Projectr
diff --git a/templates/index.html b/templates/index.html
index 9e61436..40646eb 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -28,9 +28,10 @@
<nav>
<span>{{ macros::nav_item(name=config.title, url=config.base_url) }}</span>
<ul>
- <li>{{ macros::nav_item(name="Projects",url=get_url(path="@/projects.md") ) }}</li>
- <li>{{ macros::nav_item(name="Posts",url=get_url(path="@/posts/_index.md") ) }}</li>
<li>{{ macros::nav_item(name="About",url=get_url(path="@/about.md") ) }}</li>
+ <li>{{ macros::nav_item(name="Projects",url="https://sr.ht/~tobyvin") }}</li>
+ <li>{{ macros::nav_item(name="Dotfiles",url="https://git.sr.ht/~tobyvin/.dotfiles") }}</li>
+ <li>{{ macros::nav_item(name="Posts",url=get_url(path="@/posts/_index.md") ) }}</li>
</ul>
</nav>
</header>
diff --git a/templates/section.html b/templates/section.html
index 880f421..f83d0fd 100644
--- a/templates/section.html
+++ b/templates/section.html
@@ -4,13 +4,7 @@
<ul class="simple">
{% for page in section.pages %}
<li>
- <article>
- {{ macros::post_header(page_ref=page) }}
- {% if page.summary %}
- <p>{{ page.summary | safe }}</p>
- <a href="{{ page.permalink }}#continue-reading">...</a>
- {% endif %}
- </article>
+ <article>{{ macros::post_header(page_ref=page) }}</article>
</li>
{% endfor %}
</ul>