initial checkin
This commit is contained in:
.gitignore
archetypes
config.tomlcontent
_index.md
push.shblog
1000-miles.md_index.mdaerospace-horror-1.mdandroid-test.mdbe-a-part-of-it.mdblogging-30000ft.mdcanyons.mddamn.mddfw-rap.mdfipo.mdhalfway.mdhorse-in-the-hills.mdicelandic-worries.mdnashville.mdnew-orleans.mdnumbers.mdrapid-city.mdrapid-incompetence.mdready-steady-go.mdrockets.mdrodizio.mdsanta-cruz.mdtennessee.mdthe-blues.mdwashington-columbia.md
static
themes/hugo-theme-notrack
.gitignoreLICENSE.mdREADME.mdtheme.toml
archetypes
data
notrack
exampleSite
.gitmodules
archetypes
config.tomlcontent
static
images
layouts
404.html
_default
home.htmlpartials
blog-entry-summary.htmlblog-taxonomy-info.htmlfooter.htmlhead.htmlheader.htmlpagination.htmlpost-category-link.htmlpost-tag-link.html
shortcodes
contact-box.htmlcontainer.htmlgallery-category.htmlgallery-modal.htmlgallery-photo.htmlgallery-script.htmlimage.htmlrawhtml.htmlresume-category.htmlresume-entry.htmlresume-section.htmlsocial.htmlvideo.html
taxonomy
static
css
fonts
FreeMono.woffFreeMonoBold.woffFreeMonoBoldOblique.woffFreeMonoOblique.woffFreeSans-small.woffFreeSans.woffFreeSansBold-small.woffFreeSansBold.woffFreeSansBoldOblique.woffFreeSansOblique.woffFreeSerif-small.woffFreeSerif.woffFreeSerifBold-small.woffFreeSerifBold.woffFreeSerifBoldItalic-small.woffFreeSerifBoldItalic.woffFreeSerifItalic-small.woffFreeSerifItalic.wofffa-brands-400.woff2fa-solid-900.woff2mononoki-Bold.woff2mononoki-BoldItalic.woff2mononoki-Italic.woff2mononoki-Regular.woff2
js
@ -0,0 +1,27 @@
|
||||
{{ with $.Page.Site.Params.social }}
|
||||
{{ $socialMap := $.Page.Site.Data.notrack.social }}
|
||||
{{ $width := default "12em" (.Get "width") }}
|
||||
{{ $height := default "auto" (.Get "height") }}
|
||||
{{ $float := default "right" (.Get "float") }}
|
||||
<div class="contactbox {{ $float }}" style="width: {{ $width }}; height: {{ $height }}">
|
||||
<ul>
|
||||
{{- $socialArray := slice -}}
|
||||
{{ range $website, $user := $.Site.Params.social }}
|
||||
{{- $social := $website | lower | index $socialMap | default dict -}}
|
||||
{{- $social := dict "user" $user | merge $social -}}
|
||||
{{- $socialArray = $socialArray | append $social -}}
|
||||
{{ end }}
|
||||
|
||||
{{ range sort $socialArray "weight" -}}
|
||||
{{- if .prefix -}}
|
||||
<li><a href="{{- .prefix -}}{{ .user }}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
|
||||
{{- else if .template -}}
|
||||
<li><a href="{{- printf .template .user -}}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
|
||||
{{- else if .url -}}
|
||||
<li><a href="{{- .url -}}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</ul>
|
||||
{{ printf "<!-- Icons are from Awesome Font, licenced under SIL OFL 1.1 (https://scripts.sil.org/OFL) -->" | safeHTML }}
|
||||
</div>
|
||||
{{ end }}
|
@ -0,0 +1,3 @@
|
||||
<div class="{{ default "resume-content" (.Get "class") }}">
|
||||
{{ .Inner }}
|
||||
</div>
|
@ -0,0 +1,4 @@
|
||||
<ul class="gallery-category">
|
||||
{{ .Inner }}
|
||||
<li class="gallery-photo"></li>
|
||||
</ul>
|
@ -0,0 +1,8 @@
|
||||
<!-- Modal for gallery images -->
|
||||
<div id="myModal" class="modal">
|
||||
<span class="close">×</span>
|
||||
<img class="modal-content" id="modal-img">
|
||||
<div id="caption"></div>
|
||||
<div id="loader"></div>
|
||||
</div>
|
||||
|
@ -0,0 +1,4 @@
|
||||
<li class="gallery-photo">
|
||||
<img src="{{ ( printf "img/thumbnails/%s" (.Get "fn")) | absURL }}" }}
|
||||
alt="{{ .Get "caption" }}">
|
||||
</li>
|
@ -0,0 +1 @@
|
||||
<script src="/js/gallery.js"></script>
|
32
themes/hugo-theme-notrack/layouts/shortcodes/image.html
Normal file
32
themes/hugo-theme-notrack/layouts/shortcodes/image.html
Normal file
@ -0,0 +1,32 @@
|
||||
<figure class="image-shortcode{{ with .Get "class" }} {{ . }}{{ end }}
|
||||
{{- with .Get "wide" }}{{- if eq . "true" }} wide{{ end -}}{{ end -}}
|
||||
{{- with .Get "frame" }}{{- if eq . "true" }} frame{{ end -}}{{ end -}}
|
||||
{{- with .Get "float" }} {{ . }}{{ end -}}"
|
||||
style="
|
||||
{{- with .Get "width" }}width: {{ . }};{{ end -}}
|
||||
{{- with .Get "height" }}height: {{ . }};{{ end -}}">
|
||||
{{- if .Get "link" -}}
|
||||
<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>
|
||||
{{- end }}
|
||||
<img src="{{ .Get "src" | absURL }}"
|
||||
{{- if or (.Get "alt") (.Get "caption") }}
|
||||
alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}"
|
||||
{{- end -}}
|
||||
/> <!-- Closing img tag -->
|
||||
{{- if .Get "link" }}</a>{{ end -}}
|
||||
{{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}}
|
||||
<figcaption>
|
||||
{{ with (.Get "title") -}}
|
||||
<h4>{{ . }}</h4>
|
||||
{{- end -}}
|
||||
{{- if or (.Get "caption") (.Get "attr") -}}<p>
|
||||
{{- .Get "caption" | markdownify -}}
|
||||
{{- with .Get "attrlink" }}
|
||||
<a href="{{ . }}">
|
||||
{{- end -}}
|
||||
{{- .Get "attr" | markdownify -}}
|
||||
{{- if .Get "attrlink" }}</a>{{ end }}</p>
|
||||
{{- end }}
|
||||
</figcaption>
|
||||
{{- end }}
|
||||
</figure>
|
@ -0,0 +1 @@
|
||||
{{ .Inner }}
|
@ -0,0 +1 @@
|
||||
<p class="resume-subcategory">{{ .Get "title" }}</p>
|
@ -0,0 +1,31 @@
|
||||
<div class="resume-entry">
|
||||
<!-- What the resume entry is about (degree program, work, etc.) -->
|
||||
{{ with .Get "what" }}
|
||||
<p class="what">{{ . }}</p>
|
||||
{{ end }}
|
||||
|
||||
{{ $where := false }}
|
||||
{{ $when := false }}
|
||||
|
||||
{{/* Where was the thing you did? (e.g. Mozilla) */}}
|
||||
{{ with .Get "where" }}{{ $where = . }}{{ end }}
|
||||
|
||||
{{/* When did you do it? (e.g. 2020) */}}
|
||||
{{- with .Get "when" }}{{ $when = . }}{{ end }}
|
||||
|
||||
{{ if and $where $when }}
|
||||
<p class="resume-entry-data"><span class="where">{{ $where }}</span> |
|
||||
<span class="when">{{ $when }}</span></p>
|
||||
{{ else if $where }}
|
||||
<p class="resume-entry-data"><span class="where">{{ $where }}</span></p>
|
||||
{{ else if $when }}
|
||||
<p class="resume-entry-data"><span class="when">{{ $when }}</span></p>
|
||||
{{ end }}
|
||||
|
||||
{{/* additional HTML under or as the entry */}}
|
||||
{{ if gt (len .Inner) 0 }}
|
||||
<div class="resume-inner">
|
||||
{{ .Inner }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
@ -0,0 +1,6 @@
|
||||
<div class="category-title">
|
||||
<h4>{{ .Get "title" }}</h4>
|
||||
</div>
|
||||
<div class="category-content">
|
||||
{{ .Inner }}
|
||||
</div>
|
28
themes/hugo-theme-notrack/layouts/shortcodes/social.html
Normal file
28
themes/hugo-theme-notrack/layouts/shortcodes/social.html
Normal file
@ -0,0 +1,28 @@
|
||||
{{ $socialMap := .Site.Data.notrack.social }}
|
||||
|
||||
{{ with $.Site.Params.social }}
|
||||
<div class="social">
|
||||
<ul>
|
||||
{{- $socialArray := slice -}}
|
||||
{{ range $website, $user := $.Site.Params.social }}
|
||||
{{- $social := $website | lower | index $socialMap | default dict -}}
|
||||
{{- $social := dict "user" $user | merge $social -}}
|
||||
|
||||
{{- $data := index $socialMap $website -}}
|
||||
|
||||
{{- $socialArray = $socialArray | append $social -}}
|
||||
{{ end }}
|
||||
{{ range sort $socialArray "weight" -}}
|
||||
{{- if .prefix -}}
|
||||
<li><a href="{{- .prefix -}}{{ .user }}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
|
||||
{{- else if .template -}}
|
||||
<li><a href="{{- printf .template .user -}}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
|
||||
{{- else if .url -}}
|
||||
<li><a href="{{- .url -}}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ printf "<!-- Icons are from Awesome Font, licenced under SIL OFL 1.1 (https://scripts.sil.org/OFL) -->" | safeHTML }}
|
5
themes/hugo-theme-notrack/layouts/shortcodes/video.html
Normal file
5
themes/hugo-theme-notrack/layouts/shortcodes/video.html
Normal file
@ -0,0 +1,5 @@
|
||||
<video class="video-shortcode" preload="{{ .Get "preload" }}" controls>
|
||||
<source src="{{ .Get "src" }}" type="{{ .Get "type" }}">
|
||||
There should have been a video here but your browser does not seem
|
||||
to support it.
|
||||
</video>
|
Reference in New Issue
Block a user