This commit is contained in:
Your Name 2024-06-09 14:32:31 +02:00
commit d283c3288b
4 changed files with 57 additions and 15 deletions

View file

@ -1,8 +1,8 @@
<h1 align="center">Disseminate</h1> <h1 align="center">Disseminate</h1>
<div style="margin:auto;" align="center"> <div style="margin:auto;" align="center">
<a href="https://www.buymeacoffee.com/hexlocation" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;"></a> <a href="https://www.buymeacoffee.com/hexlocation" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;"></a>
<a href="https://ci.hexloc.me/repos/2/branches/stable" target="_blank"> <a href="https://ci.penhub.nl/repos/1/branches/stable" target="_blank">
<img src="https://ci.hexloc.me/api/badges/1/status.svg?branch=stable" alt="status-badge" /> <img src="https://ci.penhub.nl/api/badges/1/status.svg?branch=stable" alt="status-badge" />
</a> </a>
</div> </div>
@ -18,8 +18,11 @@ It stems from an issue i've come across, where no blogging platform i could find
## State of Project ## State of Project
Disseminate is a work-in-progress. While the code is there, it is not recommended to run this in production yet. Disseminate is a work-in-progress, although Disseminate is in a more than usable state.
## Blogs using Disseminate
* [My own :)](https://penhub.nl)
## Opening an issue. ## Opening an issue.
Registrations are open again! Unfortunately however, i have to manually accept each account. Registrations are open again! Unfortunately however, i have to manually accept each account.
@ -34,9 +37,10 @@ to get your account accepted.
## To-do ## To-do
- [x] Server-side parsing. - [x] [HIGH] Server-side parsing.
- [x] Docker build system. - [x] [MEDIUM] Docker build system.
- [x] Proper metadata (title, date etc). - [x] [MEDIUM] Proper metadata (title, date etc).
- [x] **Automated** prebuilt docker images. - [x] [MEDIUM] **Automated** prebuilt docker images.
- [ ] Caching for faster load times. - [ ] [LOW] Caching for faster load times.
- [ ] Alternative frontend (solution)? (EJS is pretty primitive!) - [ ] [LOW] Interface for blog management (web ui?).
- [ ] [LOW] Alternative frontend (solution)? (EJS is pretty primitive!)

View file

@ -4,4 +4,5 @@ export interface Branding {
export default interface Config { export default interface Config {
branding: Branding; branding: Branding;
theme: string; theme: string;
themeOpts: any;
} }

View file

@ -1,10 +1,23 @@
<style> <style>
@import url(https://fonts.bunny.net/css?family=alef:400); @import url(https://fonts.bunny.net/css?family=alef:400);
@import url('https://fonts.cdnfonts.com/css/source-code-pro');
#main-content, #header-content { #main-content, #header-content {
margin-top: 50px; margin-top: 50px;
margin: auto; margin: auto;
width: 50%; width: 50%;
} }
code {
font-family: "Source Code Pro";
padding-left: 2px;
padding-right: 2px;
border: 1px #2e2e2e solid;
background-color: #2e2e2e;
border-radius: 5px;
}
#h_subtitle {
line-height: 5px;
color: gray;
}
#main-content { #main-content {
text-align: left; text-align: left;
} }
@ -12,7 +25,11 @@
text-align: center; text-align: center;
} }
#link-container a { #link-container a {
<% if(config.hasOwnProperty("themeOpts") && config.themeOpts.hasOwnProperty("accentColor")) { %>
color: <%= config.themeOpts.accentColor %> !important;
<% } else { %>
color: #82d3ff !important; color: #82d3ff !important;
<% } %>
} }
#link-container { #link-container {
display: flex; display: flex;
@ -28,10 +45,18 @@
a { a {
text-decoration: none; text-decoration: none;
decoration: none; decoration: none;
color: #82d3ff; <% if(config.hasOwnProperty("themeOpts") && config.themeOpts.hasOwnProperty("accentColor")) { %>
color: <%= config.themeOpts.accentColor %> !important;
<% } else { %>
color: #82d3ff !important;
<% } %>
} }
table td { table td {
color: #82d3ff; <% if(config.hasOwnProperty("themeOpts") && config.themeOpts.hasOwnProperty("accentColor")) { %>
color: <%= config.themeOpts.accentColor %> !important;
<% } else { %>
color: #82d3ff !important;
<% } %>
line-height: 25px; line-height: 25px;
text-decoration: underline; text-decoration: underline;
} }

View file

@ -1,9 +1,21 @@
<title><%= config.branding.title %></title>
<link rel="stylesheet" href="/static/custom.css">
<div id="header-content"> <div id="header-content">
<h1><%= config.branding.title %></h1> <h1 id="h_title"><%= config.branding.title %></h1>
<% if(config.branding.hasOwnProperty("subtitle")) { %>
<p id="h_subtitle"><%= config.branding.subtitle %></p>
<% } %>
<hr> <hr>
<div id="link-container"> <div id="link-container">
<% if(config.hasOwnProperty("themeOpts") && config.themeOpts.hasOwnProperty("links")) { %>
<% for(const link of config.themeOpts.links) { %>
<a href="<%= link.url %>"><%= link.title %></a>
<% } %>
<% } else { %>
<a href="/">home</a> <a href="/">home</a>
<a href="/post/about.md">about</a> <a href="/post/about.md">about</a>
<a href="/post/contact.md">contact</a> <a href="/post/contact.md">contact</a>
<% } %>
</div> </div>
</div> </div>