aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--projects/autograd.md2
-rw-r--r--projects/bubbl.md2
-rw-r--r--projects/chip8emu.md2
-rw-r--r--projects/index.html2
-rw-r--r--projects/msg.md64
-rw-r--r--templates/project.html2
6 files changed, 52 insertions, 22 deletions
diff --git a/projects/autograd.md b/projects/autograd.md
index 59f70d2..63d8ee4 100644
--- a/projects/autograd.md
+++ b/projects/autograd.md
@@ -1,6 +1,6 @@
name = Autograd
description = An implementation of autograd / backpropagation.
-languages = Python
+tags = Python
url = /projects/autograd
template = project.html
links = [
diff --git a/projects/bubbl.md b/projects/bubbl.md
index 324b821..12b5083 100644
--- a/projects/bubbl.md
+++ b/projects/bubbl.md
@@ -1,6 +1,6 @@
name = BUBBL
description = An Operating System for The x86 Architecture.
-languages = C / C++ / ASM
+tags = C / C++ / ASM
url = /projects/bubbl
template = project.html
links = [
diff --git a/projects/chip8emu.md b/projects/chip8emu.md
index 34ebdfa..daceb72 100644
--- a/projects/chip8emu.md
+++ b/projects/chip8emu.md
@@ -1,6 +1,6 @@
name = CHIP8Emu
description = An Emulator/Interpreter for CHIP-8.
-languages = C++
+tags = C++
url = /projects/chip8emu
template = project.html
links = [
diff --git a/projects/index.html b/projects/index.html
index beb392c..e56466d 100644
--- a/projects/index.html
+++ b/projects/index.html
@@ -16,7 +16,7 @@ title = PROJECTS
<p class="text-xl text-center text-wrap">{{ put description }}</p>
</div>
- <div class="text-center text-sm border-t-2 mt-3 py-1">{{ put languages }}</div>
+ <div class="text-center text-sm border-t-2 mt-3 py-1">{{ put tags }}</div>
</a>
{{ endeachdo }}
diff --git a/projects/msg.md b/projects/msg.md
index a9c4989..d1d02b4 100644
--- a/projects/msg.md
+++ b/projects/msg.md
@@ -1,6 +1,6 @@
name = MSG
description = An incredibly opinionated, hackable, minimal Static Site Generator.
-languages = C
+tags = C
url = /projects/msg
template = project.html
links = [
@@ -23,11 +23,11 @@ $ ./msg -h
msg: The Minimal Static Site Generator
Usage: ./msg [-h] [-w] [-v] [-o <output>] <directory>
--h : Help
--w : Watch working directory for changes
--v : Verbose
--o <output>: Output directory
-<directory>: Working directory
+ -h : Help
+ -w : Watch working directory for changes
+ -v : Verbose
+ -o <output>: Output directory
+ <directory>: Working directory
```
### Site Structure
@@ -42,7 +42,7 @@ Usage: ./msg [-h] [-w] [-v] [-o <output>] <directory>
│   ├── navbar.html
├── projects.html
└── templates
-└── base.html
+ └── base.html
```
### Features
@@ -52,10 +52,10 @@ Usage: ./msg [-h] [-w] [-v] [-o <output>] <directory>
```html
<!-- index.html -->
<html>
-<body>
-{{ include "navbar.html" }}
-...
-</body>
+ <body>
+ {{ include "navbar.html" }}
+ ...
+ </body>
</html>
```
@@ -64,12 +64,12 @@ Usage: ./msg [-h] [-w] [-v] [-o <output>] <directory>
```html
<!-- templates/base.html -->
<html>
-<head>
-{{ content "head" }}
-</head>
-<body>
-{{ body }}
-</body>
+ <head>
+ {{ content "head" }}
+ </head>
+ <body>
+ {{ body }}
+ </body>
</html>
<!-- index.html -->
@@ -84,6 +84,13 @@ Usage: ./msg [-h] [-w] [-v] [-o <output>] <directory>
```html
<!-- projects/xyz.html -->
title = XYZ
+links = [
+ href = https://example.org
+ label = abc
+ ___
+ href = https://google.com
+ label = test
+]
---
<h1>XYZ!</h1>
@@ -92,6 +99,27 @@ title = XYZ
{{ eachdo resources.projects }}
<p>{{ put title }}</p>
{{ endeachdo }}
+
+{{ eachdo page.links }}
+<p>{{ put href }}</p>
+<p>{{ put label }}</p>
+{{ endeachdo }}
+```
+
+```html
+<!-- config.cfg -->
+links = [
+ href = https://github.com/compromyse
+ label = GITHUB
+ ___
+ href = https://www.linkedin.com/in/compromyse
+ label = LINKEDIN
+]
+
+<!-- index.html -->
+{{ eachdo config.links }}
+<a href="{{ put href }}" class="button" target="_blank">{{ put label }}</a>
+{{ endeachdo }}
```
#### Template - specify template for page
@@ -102,3 +130,5 @@ template = base_tailwind.html
<h1 class="p-2">XYZ!</h1>
```
+
+`Licensed under GPLv3`
diff --git a/templates/project.html b/templates/project.html
index 6f6b958..42d9fc9 100644
--- a/templates/project.html
+++ b/templates/project.html
@@ -36,7 +36,7 @@
<h1 class="text-5xl font-semibold">{{ putpage name }}</h1>
<div>
<h4 class="text-xl">{{ putpage description }}</h4>
- <h6 class="text-center text-sm border-t-4 mt-2 py-1">{{ putpage languages }}</h6>
+ <h6 class="text-center text-sm border-t-4 mt-2 py-1">{{ putpage tags }}</h6>
</div>
{{ eachdo page.links }}