mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-23 10:54:25 -04:00
stop hardcoding images/ directory in content frontmatter
This commit is contained in:
13
archetypes/video.md
Normal file
13
archetypes/video.md
Normal 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
|
||||||
|
---
|
@@ -9,6 +9,5 @@ layout: video
|
|||||||
resources:
|
resources:
|
||||||
- src: "birthday.mp4"
|
- src: "birthday.mp4"
|
||||||
- src: "birthday.webm"
|
- src: "birthday.webm"
|
||||||
- src: "images/thumb.png"
|
- src: "thumb.png"
|
||||||
- src: "subs.en.vtt"
|
|
||||||
---
|
---
|
||||||
|
Before Width: | Height: | Size: 128 KiB After Width: | Height: | Size: 128 KiB |
@@ -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."
|
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
|
date: 2016-07-25 00:00:00-0400
|
||||||
url: "/hillary"
|
url: "/hillary"
|
||||||
image: "convention-720p.png"
|
image: "thumb.png"
|
||||||
type: videos
|
type: videos
|
||||||
layout: video
|
layout: video
|
||||||
resources:
|
resources:
|
||||||
- src: "convention-720p.mp4"
|
- src: "convention-720p.mp4"
|
||||||
- src: "convention-720p.webm"
|
- src: "convention-720p.webm"
|
||||||
- src: "images/convention-720p.png"
|
- src: "subs.en.vtt"
|
||||||
- src: "convention-720p.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.
|
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.
|
||||||
|
Before Width: | Height: | Size: 283 KiB After Width: | Height: | Size: 283 KiB |
@@ -9,8 +9,8 @@ layout: video
|
|||||||
resources:
|
resources:
|
||||||
- src: "leo.mp4"
|
- src: "leo.mp4"
|
||||||
- src: "leo.webm"
|
- src: "leo.webm"
|
||||||
- src: "images/thumb.png"
|
|
||||||
- src: "subs.en.vtt"
|
- 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.
|
Video is property of [Leo Laporte](https://leolaporte.com/) and [G4techTV / HOW TO Channel](https://en.wikipedia.org/wiki/G4techTV). © 2007.
|
||||||
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
@@ -8,7 +8,7 @@ tags:
|
|||||||
- Bernie Sanders
|
- Bernie Sanders
|
||||||
- 2020 Presidential Campaign
|
- 2020 Presidential Campaign
|
||||||
- Politics
|
- Politics
|
||||||
image: "sad-bernie.jpg"
|
image: "images/sad-bernie.jpg"
|
||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ tags:
|
|||||||
- Networking
|
- Networking
|
||||||
- Privacy
|
- Privacy
|
||||||
- Temper Tantrums
|
- Temper Tantrums
|
||||||
image: "archive-is.png"
|
image: "images/archive-is.png"
|
||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@ tags:
|
|||||||
- Tutorial
|
- Tutorial
|
||||||
aliases:
|
aliases:
|
||||||
- /2018/12/10/cool-bash-tricks-for-your-terminal-dotfiles/
|
- /2018/12/10/cool-bash-tricks-for-your-terminal-dotfiles/
|
||||||
image: "terminal_icon.jpg"
|
image: "images/terminal_icon.jpg"
|
||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ tags:
|
|||||||
- Coronavirus
|
- Coronavirus
|
||||||
- Public Health
|
- Public Health
|
||||||
- GitHub
|
- GitHub
|
||||||
image: "covid19dashboards.png"
|
image: "images/covid19dashboards.png"
|
||||||
css: |
|
css: |
|
||||||
h2 a:last-child {
|
h2 a:last-child {
|
||||||
background-image: none;
|
background-image: none;
|
||||||
|
@@ -8,7 +8,7 @@ tags:
|
|||||||
- Emoji
|
- Emoji
|
||||||
- Keyframes
|
- Keyframes
|
||||||
- Cool Tricks
|
- Cool Tricks
|
||||||
image: "codepen.png"
|
image: "images/codepen.png"
|
||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ tags:
|
|||||||
- Apple
|
- Apple
|
||||||
- iCloud Drive
|
- iCloud Drive
|
||||||
- Betrayal
|
- Betrayal
|
||||||
image: "email.png"
|
image: "images/email.png"
|
||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ tags:
|
|||||||
- Subdomain Takeover
|
- Subdomain Takeover
|
||||||
- Bug Bounty
|
- Bug Bounty
|
||||||
- Tutorial
|
- Tutorial
|
||||||
image: "hackerone-2.png"
|
image: "images/hackerone-2.png"
|
||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ tags:
|
|||||||
- Continuous Integration
|
- Continuous Integration
|
||||||
- Docker
|
- Docker
|
||||||
- Open Source
|
- Open Source
|
||||||
image: "actions-flow.png"
|
image: "images/actions-flow.png"
|
||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@ tags:
|
|||||||
- Backups
|
- Backups
|
||||||
- Linux
|
- Linux
|
||||||
- Restic
|
- Restic
|
||||||
image: "apocalypse.png"
|
image: "images/apocalypse.png"
|
||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@ tags:
|
|||||||
- Pull Request
|
- Pull Request
|
||||||
- Open Source
|
- Open Source
|
||||||
- GitHub
|
- GitHub
|
||||||
image: "step7-2.png"
|
image: "images/step7-2.png"
|
||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ tags:
|
|||||||
- Tutorial
|
- Tutorial
|
||||||
- Virtual Machines
|
- Virtual Machines
|
||||||
- VMware
|
- 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:
|
aliases:
|
||||||
- /2018/12/04/how-to-shrink-linux-virtual-disk-vmware/
|
- /2018/12/04/how-to-shrink-linux-virtual-disk-vmware/
|
||||||
draft: false
|
draft: false
|
||||||
|
@@ -7,7 +7,7 @@ tags:
|
|||||||
- Bernie Sanders
|
- Bernie Sanders
|
||||||
- Hillary Clinton
|
- Hillary Clinton
|
||||||
- Politics
|
- Politics
|
||||||
image: "9e58a-1bvweqv_ve2_c1tw5-ihrhw.jpg"
|
image: "images/9e58a-1bvweqv_ve2_c1tw5-ihrhw.jpg"
|
||||||
aliases:
|
aliases:
|
||||||
- /2016/02/28/millenial-with-hillary-clinton/
|
- /2016/02/28/millenial-with-hillary-clinton/
|
||||||
draft: false
|
draft: false
|
||||||
|
@@ -8,7 +8,7 @@ tags:
|
|||||||
- Nostalgia
|
- Nostalgia
|
||||||
- Vintage Code
|
- Vintage Code
|
||||||
- Awesome List
|
- Awesome List
|
||||||
image: "jbb-screen1.png"
|
image: "images/jbb-screen1.png"
|
||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@ tags:
|
|||||||
- Netlify
|
- Netlify
|
||||||
- Privacy
|
- Privacy
|
||||||
- JAMStack
|
- JAMStack
|
||||||
image: "overview.png"
|
image: "images/overview.png"
|
||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ tags:
|
|||||||
- Music
|
- Music
|
||||||
- Rap
|
- Rap
|
||||||
- Tufts University
|
- Tufts University
|
||||||
image: "1_b41ztscbaxqi60snwsswfw.jpg"
|
image: "images/1_b41ztscbaxqi60snwsswfw.jpg"
|
||||||
aliases:
|
aliases:
|
||||||
- /2013/11/21/no-homo-still-raps-motto/
|
- /2013/11/21/no-homo-still-raps-motto/
|
||||||
draft: false
|
draft: false
|
||||||
|
@@ -7,7 +7,7 @@ tags:
|
|||||||
- Campaign 2020
|
- Campaign 2020
|
||||||
- Rankings
|
- Rankings
|
||||||
- Attempted Humor
|
- Attempted Humor
|
||||||
image: "obama-laughing.jpg"
|
image: "images/obama-laughing.jpg"
|
||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ tags:
|
|||||||
- Cloudflare
|
- Cloudflare
|
||||||
- Hosting
|
- Hosting
|
||||||
- Tutorial
|
- Tutorial
|
||||||
image: "cf-workers.png"
|
image: "images/cf-workers.png"
|
||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ tags:
|
|||||||
- Shodan
|
- Shodan
|
||||||
- Internet of Things
|
- Internet of Things
|
||||||
- Dorking
|
- Dorking
|
||||||
image: "shodan.png"
|
image: "images/shodan.png"
|
||||||
css: |
|
css: |
|
||||||
h3 a:last-child, h4 a:last-child {
|
h3 a:last-child, h4 a:last-child {
|
||||||
background-image: none;
|
background-image: none;
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
<h1><a class="no-underline" href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
|
<h1><a class="no-underline" href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
|
||||||
|
|
||||||
<video
|
<video
|
||||||
{{ with .Resources.GetMatch "images/*.png" }}poster="{{ .Permalink }}"{{ end }}
|
{{ with .Resources.GetMatch "thumb.*" }}poster="{{ .Permalink }}"{{ end }}
|
||||||
controls crossorigin playsinline preload="none">
|
controls crossorigin playsinline preload="none">
|
||||||
{{ with .Resources.GetMatch "*.webm" }}<source src="{{ .Permalink }}" type="video/webm">{{ end }}
|
{{ with .Resources.GetMatch "*.webm" }}<source src="{{ .Permalink }}" type="video/webm">{{ end }}
|
||||||
{{ with .Resources.GetMatch "*.mp4" }}<source src="{{ .Permalink }}" type="video/mp4">{{ end }}
|
{{ with .Resources.GetMatch "*.mp4" }}<source src="{{ .Permalink }}" type="video/mp4">{{ end }}
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
{{/* Article image (with fallback to default image */}}
|
{{/* Article image (with fallback to default image */}}
|
||||||
{{- with .Params.image }}
|
{{- with .Params.image }}
|
||||||
{{- $imagePath := (path.Join "content" $.File.Dir "images/" .) }}
|
{{- $imagePath := (path.Join "content" $.File.Dir .) }}
|
||||||
|
|
||||||
{{- $.Scratch.Set "socialImage_url" (replace $imagePath "content/" "") }}
|
{{- $.Scratch.Set "socialImage_url" (replace $imagePath "content/" "") }}
|
||||||
{{- with (imageConfig $imagePath) }}
|
{{- with (imageConfig $imagePath) }}
|
||||||
|
Reference in New Issue
Block a user