feat: add blog #7
Loading…
Reference in New Issue
No description provided.
Delete Branch "feat/blog"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Please see https://git.distrust.co/public/website/pulls/7/files#issuecomment-385 and apply that to all references of
{{ site.baseurl }}
@ -1,4 +1,4 @@
<footer style="height: 40px">
<span><img src="assets/base/distrust-white.svg" width="20px" alt="copyleft"/></span> {{ site.footer }}
<span><img src="../assets/base/distrust-white.svg" width="20px" alt="copyleft"/></span> {{ site.footer }}
This should use site absolute path
@ -4,3 +4,3 @@
<div>
<a id="home-link" href="/index.html">
<img class="menu-logo" src="assets/base/distrust-text-white.svg"
<img class="menu-logo" src="../assets/base/distrust-text-white.svg"
Same here
@ -70,3 +70,3 @@
<div class="flex-container-inner">
<div class="text-well">
<h3>StageX</h3>
<h3>[Stageˣ]</h3>
To support more browsers I'd probably do
@ -0,0 +2,4 @@
layout: post
title: Adventures In Supply Chain Integrity
date: 2024-03-28
cover_image: "../assets/images/whale_shark.jpg"
Absolute path
@ -18,2 +13,2 @@
})
.catch(error => console.error('Error loading JSON:', error));
if (window.location.pathname === "/index.html") {
fetch('../assets/js/carousel-items.json')
Absolute path
@ -0,0 +6,4 @@
<div class="posts">
{% for post in site.posts %}
<article class="post">
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
I'd probably include the title in the link as well
@ -0,0 +12,4 @@
{{ post.excerpt }}
</div>
<h4>Written on {{ post.date | date: "%B %e, %Y" }}</h4>
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
Generally I'd avoid using the baseurl. This makes local development more difficult and prevents have multiple domains with the same content (eg. deploying as a Tor Hidden Service)
@ -40,3 +41,3 @@
# Build settings
theme: jekyll-theme-console
permalink: blog/:title.html
Doesn't this normally generate files/links in the format
blog/:title/index.html
?@ -1,4 +1,4 @@
<footer style="height: 40px">
<span><img src="assets/base/distrust-white.svg" width="20px" alt="copyleft"/></span> {{ site.footer }}
<span><img src="/assets/base/distrust-white.svg" width="20px" alt="copyleft"/></span> {{ site.footer }}
Would be good to use the jekyll built-in function for static assets
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Forgejo.