FIX: Workflow to work with jekyll.

This commit is contained in:
MajorDroolz
2023-01-04 23:16:48 -05:00
parent 219a7543de
commit a4a4e04ab2
7 changed files with 30 additions and 8 deletions

View File

@@ -28,7 +28,6 @@ jobs:
run: | run: |
find . -name "*.js" -type f -exec terser {} -c -o {} \; find . -name "*.js" -type f -exec terser {} -c -o {} \;
find . -name "*.css" -type f -exec csso {} -o {} \; find . -name "*.css" -type f -exec csso {} -o {} \;
find . -name "*.html" -type f -exec html-minifier --remove-comments --collapse-whitespace {} -o {} \;
- name: "Commiting changes." - name: "Commiting changes."
run: | run: |

View File

@@ -32,7 +32,6 @@ freshmanual:
title: FreshManual title: FreshManual
subtitle: Mobile App subtitle: Mobile App
stack: [ html, css, js, php, docker, mariadb, azure ] stack: [ html, css, js, php, docker, mariadb, azure ]
image: /res/avatar.svg
link: /404 link: /404
color: blue color: blue
@@ -61,7 +60,6 @@ pollbuddy:
id: pollbuddy id: pollbuddy
title: Poll Buddy title: Poll Buddy
stack: [ html, css, js, php, docker, mariadb, azure ] stack: [ html, css, js, php, docker, mariadb, azure ]
image: /res/avatar.svg
link: /404 link: /404
color: green color: green
@@ -90,7 +88,6 @@ rpi-crisis:
id: rpi-crisis id: rpi-crisis
title: CRISIS title: CRISIS
stack: [ html, css, js, php, docker, mariadb, azure ] stack: [ html, css, js, php, docker, mariadb, azure ]
image: /res/avatar.svg
link: /404 link: /404
color: red color: red

View File

@@ -38,7 +38,7 @@ layout: default
{% if malung.image %} {% if malung.image %}
<img id="image-inner" src="{{malung.image}}" alt="Image of {{malung.title}}"> <img id="image-inner" src="{{malung.image}}" alt="Image of {{malung.title}}">
{% else %} {% else %}
<h1 aria-hidden>Image Not Available</h1> <h1 aria-hidden="true">Image Not Available</h1>
{% endif %} {% endif %}
</div> </div>
<div id="stack"> <div id="stack">

View File

@@ -31,7 +31,13 @@ layout: default
<div id="project-list"> <div id="project-list">
{% for project in home.featured %} {% for project in home.featured %}
<a class="{{ work[project].color }} project-item shadow" href="/experience/{{ project }}"> <a class="{{ work[project].color }} project-item shadow" href="/experience/{{ project }}">
<div class="space"></div> {% if work[project].image %}
<div class="space project-image-outer">
<img src="{{work[project].image}}" alt="{{work[project].title}}" class="project-image">
</div>
{% else %}
<div class="project-noimage" aria-hidden="true">Image Not Available</div>
{% endif %}
<div class="nav-link project-link r-icon" data-i="arrow_right"> <div class="nav-link project-link r-icon" data-i="arrow_right">
{{ work[project].title }} {{ work[project].title }}
<!-- Add the subtitle, if it exists. --> <!-- Add the subtitle, if it exists. -->

View File

@@ -261,4 +261,26 @@ nav {
.nav1, .nav2 { .nav1, .nav2 {
display: none; display: none;
} }
}
.project-noimage {
color: #0002;
font-size: 40px;
font-family: "Open Sans";
font-weight: 900;
display: flex;
flex: 1000;
justify-content: center;
align-items: center;
}
.project-image-outer {
position: relative;
justify-content: center;
align-items: center;
}
.project-image {
position: absolute;
max-height: 100%;
} }

View File

@@ -65,5 +65,3 @@ html {
.dark-back::before { .dark-back::before {
filter: brightness(0.8); filter: brightness(0.8);
} }
/*----------------------------------------------------------------------------*/