Merge pull request #35 from leigh-hackspace/netatalk-post

Add Netatalk installation post
This commit is contained in:
2024-03-03 22:03:06 +00:00
committed by GitHub
17 changed files with 482 additions and 5 deletions

View File

@@ -0,0 +1 @@
{{ .Inner }}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,145 @@
.slider
position: relative
width: 100%
// overflow: hidden
.slider-container
display: flex
flex-wrap: nowrap
flex-direction: row
overflow: hidden
transform: translate3d(0, 0, 0)
min-height: 100%
&.is-vertical
flex-direction: column
.slider-item
flex: none
.image
&.is-covered
img
object-fit: cover
object-position: center center
height: 100%
width: 100%
// Responsive embedded objects
.video-container
height: 0
padding-bottom: 0
padding-top: 56.25% // ratio 16:9
margin: 0
position: relative
&.is-1by1,
&.is-square
padding-top: 100%
&.is-4by3
padding-top: 75%
&.is-21by9
padding-top: 42.857143%
& iframe,
& object,
& embed
position: absolute
top: 0
left: 0
width: 100% !important
height: 100% !important
.slider-navigation-previous,
.slider-navigation-next
display: flex
justify-content: center
align-items: center
position: absolute
width: 42px
height: 42px
background: white center center no-repeat
background-size: 20px 20px
border: 1px solid white
border-radius: 25091983px
box-shadow: 0 2px 5px #3232321a
top: 50%
margin-top: -20px
left: 0px
cursor: pointer
transition: transform .3s, opacity .3s
&:hover
transform: scale(1.2)
&.is-hidden
display: none
opacity: 0
svg
width: 25%
.slider-navigation-next
left: auto
right: 0px
background: white center center no-repeat
background-size: 20px 20px
.slider-pagination
display: none
justify-content: center
align-items: center
position: absolute
bottom: 0
left: 0
right: 0
padding: .5rem 1rem
text-align: center
.slider-page
background: white
width: 10px
height: 10px
border-radius: 25091983px
display: inline-block
margin: 0 3px
box-shadow: 0 2px 5px #3232321a
transition: transform .3s
cursor: pointer
&.is-active,
&:hover
transform: scale(1.4)
@media screen and (min-width: 800px)
display: flex
// Hero Carousel
=hero-carousel
position: absolute
top: 0
left: 0
bottom: 0
right: 0
height: auto
border: none
margin: auto
padding: 0
z-index: 0
.hero
&.has-carousel
position: relative
+ .hero-body,
+ .hero-head,
+ .hero-footer
z-index: 10
overflow: hidden
.hero-carousel
+hero-carousel
.slider
width: 100%
max-width: 100%
overflow: hidden
height: 100% !important
max-height: 100%
z-index: 0
.has-background
max-height: 100%
.is-background
object-fit: cover
object-position: center center
height: 100%
width: 100%
.hero-body
margin: 0 3rem
z-index: 10

View File

@@ -0,0 +1,86 @@
/* Background */ .bg { background-color: #f8f8f8; }
/* PreWrapper */ .chroma { background-color: #f8f8f8; }
/* Other */ .chroma .x { }
/* Error */ .chroma .err { }
/* CodeLine */ .chroma .cl { }
/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
/* LineHighlight */ .chroma .hl { background-color: #dfdfdf }
/* LineNumbersTable */ .chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
/* LineNumbers */ .chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
/* Line */ .chroma .line { display: flex; }
/* Keyword */ .chroma .k { color: #aa22ff; font-weight: bold }
/* KeywordConstant */ .chroma .kc { color: #aa22ff; font-weight: bold }
/* KeywordDeclaration */ .chroma .kd { color: #aa22ff; font-weight: bold }
/* KeywordNamespace */ .chroma .kn { color: #aa22ff; font-weight: bold }
/* KeywordPseudo */ .chroma .kp { color: #aa22ff }
/* KeywordReserved */ .chroma .kr { color: #aa22ff; font-weight: bold }
/* KeywordType */ .chroma .kt { color: #00bb00; font-weight: bold }
/* Name */ .chroma .n { }
/* NameAttribute */ .chroma .na { color: #bb4444 }
/* NameBuiltin */ .chroma .nb { color: #aa22ff }
/* NameBuiltinPseudo */ .chroma .bp { }
/* NameClass */ .chroma .nc { color: #0000ff }
/* NameConstant */ .chroma .no { color: #880000 }
/* NameDecorator */ .chroma .nd { color: #aa22ff }
/* NameEntity */ .chroma .ni { color: #999999; font-weight: bold }
/* NameException */ .chroma .ne { color: #d2413a; font-weight: bold }
/* NameFunction */ .chroma .nf { color: #00a000 }
/* NameFunctionMagic */ .chroma .fm { }
/* NameLabel */ .chroma .nl { color: #a0a000 }
/* NameNamespace */ .chroma .nn { color: #0000ff; font-weight: bold }
/* NameOther */ .chroma .nx { }
/* NameProperty */ .chroma .py { }
/* NameTag */ .chroma .nt { color: #008000; font-weight: bold }
/* NameVariable */ .chroma .nv { color: #b8860b }
/* NameVariableClass */ .chroma .vc { }
/* NameVariableGlobal */ .chroma .vg { }
/* NameVariableInstance */ .chroma .vi { }
/* NameVariableMagic */ .chroma .vm { }
/* Literal */ .chroma .l { }
/* LiteralDate */ .chroma .ld { }
/* LiteralString */ .chroma .s { color: #bb4444 }
/* LiteralStringAffix */ .chroma .sa { color: #bb4444 }
/* LiteralStringBacktick */ .chroma .sb { color: #bb4444 }
/* LiteralStringChar */ .chroma .sc { color: #bb4444 }
/* LiteralStringDelimiter */ .chroma .dl { color: #bb4444 }
/* LiteralStringDoc */ .chroma .sd { color: #bb4444; font-style: italic }
/* LiteralStringDouble */ .chroma .s2 { color: #bb4444 }
/* LiteralStringEscape */ .chroma .se { color: #bb6622; font-weight: bold }
/* LiteralStringHeredoc */ .chroma .sh { color: #bb4444 }
/* LiteralStringInterpol */ .chroma .si { color: #bb6688; font-weight: bold }
/* LiteralStringOther */ .chroma .sx { color: #008000 }
/* LiteralStringRegex */ .chroma .sr { color: #bb6688 }
/* LiteralStringSingle */ .chroma .s1 { color: #bb4444 }
/* LiteralStringSymbol */ .chroma .ss { color: #b8860b }
/* LiteralNumber */ .chroma .m { color: #666666 }
/* LiteralNumberBin */ .chroma .mb { color: #666666 }
/* LiteralNumberFloat */ .chroma .mf { color: #666666 }
/* LiteralNumberHex */ .chroma .mh { color: #666666 }
/* LiteralNumberInteger */ .chroma .mi { color: #666666 }
/* LiteralNumberIntegerLong */ .chroma .il { color: #666666 }
/* LiteralNumberOct */ .chroma .mo { color: #666666 }
/* Operator */ .chroma .o { color: #666666 }
/* OperatorWord */ .chroma .ow { color: #aa22ff; font-weight: bold }
/* Punctuation */ .chroma .p { }
/* Comment */ .chroma .c { color: #008800; font-style: italic }
/* CommentHashbang */ .chroma .ch { color: #008800; font-style: italic }
/* CommentMultiline */ .chroma .cm { color: #008800; font-style: italic }
/* CommentSingle */ .chroma .c1 { color: #008800; font-style: italic }
/* CommentSpecial */ .chroma .cs { color: #008800; font-weight: bold }
/* CommentPreproc */ .chroma .cp { color: #008800 }
/* CommentPreprocFile */ .chroma .cpf { color: #008800 }
/* Generic */ .chroma .g { }
/* GenericDeleted */ .chroma .gd { color: #a00000 }
/* GenericEmph */ .chroma .ge { font-style: italic }
/* GenericError */ .chroma .gr { color: #ff0000 }
/* GenericHeading */ .chroma .gh { color: #000080; font-weight: bold }
/* GenericInserted */ .chroma .gi { color: #00a000 }
/* GenericOutput */ .chroma .go { color: #888888 }
/* GenericPrompt */ .chroma .gp { color: #000080; font-weight: bold }
/* GenericStrong */ .chroma .gs { font-weight: bold }
/* GenericSubheading */ .chroma .gu { color: #800080; font-weight: bold }
/* GenericTraceback */ .chroma .gt { color: #0044dd }
/* GenericUnderline */ .chroma .gl { text-decoration: underline }
/* TextWhitespace */ .chroma .w { color: #bbbbbb }

View File

@@ -26,6 +26,10 @@ $body-font-size: 1.25em;
// Import Bulmas styles
@import "bulma.sass";
@import "chroma.scss";
// Add Carousel add-on
@import "bulma-carousel.sass";
// -------------------------------------------------------

View File

@@ -2,10 +2,19 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
{{ if .Page.Store.Get "hasMermaid" }}
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
{{ end }}
{{ if .Page.Store.Get "hasCarousel" }}
{{ with resources.Get "js/bulma-carousel.min.js" }}
<script src="{{ .RelPermalink }}"></script>
{{ end }}
<script>
bulmaCarousel.attach('.carousel', { pagination: false });
</script>
{{ end }}
{{ $theme := resources.Get "js/theme.js" }}

View File

@@ -0,0 +1,7 @@
<!-- Start Carousel -->
<div class="carousel">
{{ .Inner }}
</div>
<!-- End Carousel -->
{{ .Page.Store.Set "hasCarousel" true }}

View File

@@ -3,6 +3,9 @@
{{ $img = $img.Resize (print (default "1264x" $width) " webp") }}
{{ $title := .Get "title" }}
{{ $class := .Get "class" }}
{{- with .Parent -}}
<div>
{{ end }}
<figure class="image{{ if $class }} {{ $class }}{{ end }}">
<img src="{{ $img.RelPermalink }}" width="{{ $img.Width }}" height="{{ $img.Height }}" {{ if $title }}
alt="{{ $title }}" {{ end }}>
@@ -13,4 +16,7 @@
</small>
</figcaption>
{{ end }}
</figure>
</figure>
{{- with .Parent -}}
</div>
{{ end }}