1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-23 06:24:25 -04:00

stop hardcoding images/ directory in content frontmatter

This commit is contained in:
2020-04-16 09:34:58 -04:00
parent 9005c00112
commit 8537042ff1
28 changed files with 38 additions and 26 deletions

13
archetypes/video.md Normal file
View File

@@ -0,0 +1,13 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ dateFormat "2006-01-02 15:04:05-0700" .Date }}
image: "thumb.png"
type: videos
layout: video
resources:
- src: "{{ .Name }}.mp4"
- src: "{{ .Name }}.webm"
- src: "subs.en.vtt"
- src: "thumb.png"
draft: true
---

View File

@@ -9,6 +9,5 @@ layout: video
resources:
- src: "birthday.mp4"
- src: "birthday.webm"
- src: "images/thumb.png"
- src: "subs.en.vtt"
- src: "thumb.png"
---

View File

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

View File

@@ -3,14 +3,14 @@ title: "My Brief Apperance in Hillary Clinton's DNC Video"
description: "My brief apperance in one of Hillary Clinton's 2016 DNC convention videos on substance abuse."
date: 2016-07-25 00:00:00-0400
url: "/hillary"
image: "convention-720p.png"
image: "thumb.png"
type: videos
layout: video
resources:
- src: "convention-720p.mp4"
- src: "convention-720p.webm"
- src: "images/convention-720p.png"
- src: "convention-720p.en.vtt"
- src: "subs.en.vtt"
- src: "thumb.png"
---
Video is property of [Hillary for America](https://www.hillaryclinton.com/), the [Democratic National Committee](https://democrats.org/), and [CNN / WarnerMedia](http://cnnpressroom.blogs.cnn.com/). © 2016.

View File

Before

Width:  |  Height:  |  Size: 283 KiB

After

Width:  |  Height:  |  Size: 283 KiB

View File

@@ -9,8 +9,8 @@ layout: video
resources:
- src: "leo.mp4"
- src: "leo.webm"
- src: "images/thumb.png"
- src: "subs.en.vtt"
- src: "thumb.png"
---
Video is property of [Leo Laporte](https://leolaporte.com/) and [G4techTV / HOW TO Channel](https://en.wikipedia.org/wiki/G4techTV). © 2007.

View File

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

View File

@@ -8,7 +8,7 @@ tags:
- Bernie Sanders
- 2020 Presidential Campaign
- Politics
image: "sad-bernie.jpg"
image: "images/sad-bernie.jpg"
draft: false
---

View File

@@ -8,7 +8,7 @@ tags:
- Networking
- Privacy
- Temper Tantrums
image: "archive-is.png"
image: "images/archive-is.png"
draft: false
---

View File

@@ -11,7 +11,7 @@ tags:
- Tutorial
aliases:
- /2018/12/10/cool-bash-tricks-for-your-terminal-dotfiles/
image: "terminal_icon.jpg"
image: "images/terminal_icon.jpg"
draft: false
---

View File

@@ -8,7 +8,7 @@ tags:
- Coronavirus
- Public Health
- GitHub
image: "covid19dashboards.png"
image: "images/covid19dashboards.png"
css: |
h2 a:last-child {
background-image: none;

View File

@@ -8,7 +8,7 @@ tags:
- Emoji
- Keyframes
- Cool Tricks
image: "codepen.png"
image: "images/codepen.png"
draft: false
---

View File

@@ -8,7 +8,7 @@ tags:
- Apple
- iCloud Drive
- Betrayal
image: "email.png"
image: "images/email.png"
draft: false
---

View File

@@ -8,7 +8,7 @@ tags:
- Subdomain Takeover
- Bug Bounty
- Tutorial
image: "hackerone-2.png"
image: "images/hackerone-2.png"
draft: false
---

View File

@@ -8,7 +8,7 @@ tags:
- Continuous Integration
- Docker
- Open Source
image: "actions-flow.png"
image: "images/actions-flow.png"
draft: false
---

View File

@@ -9,7 +9,7 @@ tags:
- Backups
- Linux
- Restic
image: "apocalypse.png"
image: "images/apocalypse.png"
draft: false
---

View File

@@ -9,7 +9,7 @@ tags:
- Pull Request
- Open Source
- GitHub
image: "step7-2.png"
image: "images/step7-2.png"
draft: false
---

View File

@@ -8,7 +8,7 @@ tags:
- Tutorial
- Virtual Machines
- VMware
image: "screen-shot-2018-12-07-at-2-04-04-pm.png"
image: "images/screen-shot-2018-12-07-at-2-04-04-pm.png"
aliases:
- /2018/12/04/how-to-shrink-linux-virtual-disk-vmware/
draft: false

View File

@@ -7,7 +7,7 @@ tags:
- Bernie Sanders
- Hillary Clinton
- Politics
image: "9e58a-1bvweqv_ve2_c1tw5-ihrhw.jpg"
image: "images/9e58a-1bvweqv_ve2_c1tw5-ihrhw.jpg"
aliases:
- /2016/02/28/millenial-with-hillary-clinton/
draft: false

View File

@@ -8,7 +8,7 @@ tags:
- Nostalgia
- Vintage Code
- Awesome List
image: "jbb-screen1.png"
image: "images/jbb-screen1.png"
draft: false
---

View File

@@ -9,7 +9,7 @@ tags:
- Netlify
- Privacy
- JAMStack
image: "overview.png"
image: "images/overview.png"
draft: false
---

View File

@@ -8,7 +8,7 @@ tags:
- Music
- Rap
- Tufts University
image: "1_b41ztscbaxqi60snwsswfw.jpg"
image: "images/1_b41ztscbaxqi60snwsswfw.jpg"
aliases:
- /2013/11/21/no-homo-still-raps-motto/
draft: false

View File

@@ -7,7 +7,7 @@ tags:
- Campaign 2020
- Rankings
- Attempted Humor
image: "obama-laughing.jpg"
image: "images/obama-laughing.jpg"
draft: false
---

View File

@@ -8,7 +8,7 @@ tags:
- Cloudflare
- Hosting
- Tutorial
image: "cf-workers.png"
image: "images/cf-workers.png"
draft: false
---

View File

@@ -8,7 +8,7 @@ tags:
- Shodan
- Internet of Things
- Dorking
image: "shodan.png"
image: "images/shodan.png"
css: |
h3 a:last-child, h4 a:last-child {
background-image: none;

View File

@@ -3,7 +3,7 @@
<h1><a class="no-underline" href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<video
{{ with .Resources.GetMatch "images/*.png" }}poster="{{ .Permalink }}"{{ end }}
{{ with .Resources.GetMatch "thumb.*" }}poster="{{ .Permalink }}"{{ end }}
controls crossorigin playsinline preload="none">
{{ with .Resources.GetMatch "*.webm" }}<source src="{{ .Permalink }}" type="video/webm">{{ end }}
{{ with .Resources.GetMatch "*.mp4" }}<source src="{{ .Permalink }}" type="video/mp4">{{ end }}

View File

@@ -8,7 +8,7 @@
{{/* Article image (with fallback to default image */}}
{{- with .Params.image }}
{{- $imagePath := (path.Join "content" $.File.Dir "images/" .) }}
{{- $imagePath := (path.Join "content" $.File.Dir .) }}
{{- $.Scratch.Set "socialImage_url" (replace $imagePath "content/" "") }}
{{- with (imageConfig $imagePath) }}