-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from torizon/castello/style
Page Style Layout Improvements & Tooling
- Loading branch information
Showing
20 changed files
with
401 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"recommendations": [ | ||
"eliostruyf.vscode-front-matter" | ||
"eliostruyf.vscode-front-matter", | ||
"microhobby.taskrunnercodeplus" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "start-hugo", | ||
"detail": "Start the Hugo server to be used as a development server", | ||
"hide": false, | ||
"command": "docker", | ||
"type": "shell", | ||
"args": [ | ||
"run", | ||
"--rm", | ||
"-it", | ||
"-v", | ||
"${workspaceFolder}:/src", | ||
"-p", | ||
"1313:1313", | ||
"klakegg/hugo:ext-alpine", | ||
"server" | ||
], | ||
"problemMatcher": [ | ||
"$tsc" | ||
], | ||
"presentation": { | ||
"reveal": "always" | ||
}, | ||
"icon": { | ||
"id": "run", | ||
"color": "terminal.ansiBlue" | ||
}, | ||
"group": "none" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- Images that use the standard image format for markdown will be displayed in a | ||
magnific modal popup. Use format ![alt text](/path/to/image.img) --> | ||
<!-- Place this file in layouts > _default > _markup > render-image.html --> | ||
<!-- Also place the image-modal.css and partial/image-modal.html appropriately. --> | ||
<!-- Id for the image on the page is set to a random 6 numbers, chosen from 1 to 500 --> | ||
<!-- Onclick opens the modal, and displays/overlays the the image that has the id for the | ||
clicked image. --> | ||
<!-- attribution appreciated. github: zjeaton web: https://froglegs.co --> | ||
|
||
<div class="md__image centered-figure"> | ||
<img class="auto-sized-image" width="70%" id="{{ first 6 (shuffle (seq 1 500)) }}" src="{{ .Destination | safeURL }}" onclick="openModal(this.id)" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}"{{ end }} /> | ||
<figcaption> | ||
<h4>{{ .Text }}</h4> | ||
</figcaption> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<footer> | ||
<footer class="footer-scrolled"> | ||
© Torizon {{ time.Now.Year }} | ||
</footer> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!-- Place in layouts > partials > image-modal.html --> | ||
<!-- Use the partial at the bottom of any page in which you want magnific pop-up images, | ||
or simply place at the bottom of baseof.html --> | ||
<!-- Modal will open upon clicking the image. Modal will close with clicking the x or image. --> | ||
|
||
<!-- The Modal --> | ||
<div id="myModal" class="modal"> | ||
<button class="modal-close" onclick="closeModal()">close</button> | ||
<div class="modal-content"> | ||
<img class="modal-pic" id="modalPic" onclick="closeModal()" style="max-width: 100%; max-height: 80vh; margin: auto;"> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{ if .Params.title }} | ||
<meta property="og:title" content="{{ .Params.title }}" /> | ||
{{ else }} | ||
<meta property="og:title" content="Engineering at the Edge" /> | ||
{{ end }} | ||
{{ if .Params.abstract }} | ||
<meta property="og:description" content="{{ .Params.abstract }}" /> | ||
{{ end }} | ||
{{ if .Params.title }} | ||
<meta property="og:type" content="aticle" /> | ||
{{ end }} | ||
<meta property="og:url" content="{{ .Permalink }}" /> | ||
{{ if .Params.ogImage }} | ||
<meta property="og:image" content="{{ .Params.ogImage }}" /> | ||
{{ else }} | ||
<meta property="og:image" content="{{ .Permalink }}img/mainOg.jpg" /> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,9 @@ | |
margin-right: auto; | ||
text-align: center; | ||
margin: 0 auto; | ||
} | ||
} | ||
|
||
.auto-sized-image { | ||
max-width: 100%; | ||
height: auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* The markdown image container */ | ||
.md__image { | ||
cursor: pointer; | ||
} | ||
|
||
/* The Modal (background) */ | ||
.modal { | ||
display: none; | ||
position: fixed; | ||
z-index: 1; | ||
padding-top: 4em; | ||
left: 0; | ||
top: 0; | ||
width: 100%; | ||
height: 100%; | ||
overflow: auto; | ||
background-color: #00508dc7; | ||
backdrop-filter: blur(5px); | ||
} | ||
|
||
/* Modal Content */ | ||
.modal-content { | ||
position: relative; | ||
margin: auto; | ||
padding: 0; | ||
width: 90%; | ||
max-width: 1400px; | ||
} | ||
|
||
.modal-pic { | ||
display: flex; | ||
align-content: center; | ||
cursor: pointer; | ||
margin-top: 3em !important; | ||
} | ||
|
||
/* The Close Button */ | ||
/* Optimized for accessibility by using a button named close but | ||
shifting the close text out of the button and only showing x */ | ||
.modal-close { | ||
color: white; | ||
background-color: #ffffff00; | ||
position: absolute; | ||
top: 2.5em; | ||
right: 1.3em; | ||
font-size: 2em; | ||
font-weight: bold; | ||
height: 1em; | ||
width: 1em; | ||
text-indent: 10em; | ||
overflow: hidden; | ||
border: 0; | ||
} | ||
|
||
.modal-close::after { | ||
position: absolute; | ||
line-height: 0.5; | ||
top: 0.2em; | ||
left: 0.1em; | ||
text-indent: 0; | ||
content: "\00D7" | ||
} | ||
|
||
.modal-close:hover, | ||
.modal-close:focus { | ||
color: #b90000; | ||
text-decoration: none; | ||
cursor: pointer; | ||
} |
Oops, something went wrong.