Browse Source

Use data for projects.

Syfaro 2 months ago
parent
commit
af7cdd841e
3 changed files with 13 additions and 4 deletions
  1. 9
    0
      data/projects.yaml
  2. 3
    3
      themes/fox/layouts/index.html
  3. 1
    1
      themes/fox/static/css/fox.css

+ 9
- 0
data/projects.yaml View File

@@ -0,0 +1,9 @@
1
+- name: Furry Art Multiuploader
2
+  desc: A tool that allows artists to upload to multiple sites at once instead of having to upload the same thing on many different sites.
3
+  link: https://multiupload.us
4
+- name: go-telegram-bot-api
5
+  desc: A golang wrapper for the Telegram Bot API.
6
+  link: https://github.com/go-telegram-bot-api/telegram-bot-api
7
+- name: MCApi.us
8
+  desc: An API to get the status of or query a Minecraft server.
9
+  link: https://mcapi.us

+ 3
- 3
themes/fox/layouts/index.html View File

@@ -18,14 +18,14 @@
18 18
         <section>
19 19
             <h3>Things I Work On</h3>
20 20
 
21
-            {{ range where .Pages "Section" "project" }}
21
+            {{ range .Site.Data.projects }}
22 22
                 <div class="project">
23 23
                     <p class="project-name">
24
-                        <a href="{{ .Params.projecturl }}">{{ .Title }}</a>
24
+                        <a href="{{ .link }}">{{ .name }}</a>
25 25
                     </p>
26 26
 
27 27
                     <p>
28
-                        {{ .Params.projectshort }}
28
+                        {{ .desc | markdownify }}
29 29
                     </p>
30 30
                 </div>
31 31
             {{ end }}

+ 1
- 1
themes/fox/static/css/fox.css View File

@@ -428,4 +428,4 @@ section.char-desc li:not(:first-child) {
428 428
     .post-info .published-at {
429 429
         display: block;
430 430
     }
431
-}
431
+}

Loading…
Cancel
Save