From 3011de99ccacadb0015cd06bf1aa3ec758b65f1d Mon Sep 17 00:00:00 2001 From: Vincent Teo Date: Thu, 9 May 2024 22:22:45 +1000 Subject: [PATCH] feat: discord links and download terms --- _includes/assets/css/custom.css | 10 ++++++++++ ships/index.njk | 25 ++++++++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/_includes/assets/css/custom.css b/_includes/assets/css/custom.css index c21b462..b8543df 100644 --- a/_includes/assets/css/custom.css +++ b/_includes/assets/css/custom.css @@ -36,6 +36,16 @@ nord-stack#ship-page h1:not(#ship-name, [slot="header"]) { } } +#ship-links ul { + list-style-type: none; + margin: 0; + padding: 0; + + li { + margin-left: 20px; + } +} + #usage nord-table td { white-space: normal; } diff --git a/ships/index.njk b/ships/index.njk index a2be2cc..f60af14 100644 --- a/ships/index.njk +++ b/ships/index.njk @@ -9,6 +9,16 @@ eleventyComputed: currentTitle: "{{ ship.name }}" --- +{% macro linkIcon(url) %} + {% if r/github\.com/.test(url) %} + + {% elseif r/discord\.com/.test(url) %} + + {% else %} + + {% endif %} +{% endmacro %} + @@ -221,6 +231,10 @@ eleventyComputed: + + EGOTech's free blueprints and any of its derivatives can be freely distributed but are not to be sold in game or otherwise. + License + {% else %}

Purchase Blueprint

Price: {{ ship.cost.toLocaleString() }} Credits @@ -257,8 +271,17 @@ eleventyComputed:

Links