Skip to content

Commit

Permalink
updated to use projects layout
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronBrooks11 committed Jan 14, 2025
1 parent fc07593 commit 07402bd
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
6 changes: 0 additions & 6 deletions _layouts/project.html

This file was deleted.

29 changes: 29 additions & 0 deletions _layouts/projects.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
layout: default
---

<article class="project-index">
<header>
<h1>{{ page.title }}</h1>
<p>{{ page.description }}</p>
</header>

<section class="project-docs">
<h2>Project Documentation</h2>
<p>For detailed documentation, visit the project's documentation page:</p>
<ul>
{% assign project_name = page.title | downcase | replace: " ", "-" %}
<li><a href="/projects/{{ project_name }}/docs/README.html">README</a></li>
</ul>
</section>

<section class="project-assets">
<h2>Project Assets</h2>
<p>View the project's assets (images, files, etc.) here:</p>
<!-- Add logic to display project assets if necessary -->
</section>

<footer>
<p>Back to <a href="/projects/">projects list</a></p>
</footer>
</article>
2 changes: 1 addition & 1 deletion sync_docs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Set layout type for README.md files (can be easily changed)
LAYOUT_TYPE="page"
LAYOUT_TYPE="projects"

# Force submodule update (set to true to force changes)
FORCE_SUBMODULE_UPDATE=true
Expand Down

0 comments on commit 07402bd

Please sign in to comment.