Skip to content

Commit

Permalink
modify talk generation
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrotian authored Dec 29, 2023
1 parent 3c4e12b commit b3b350c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/render-slides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
for file in _slides/*.md; do
filename=$(basename -- "$file")
basename="${filename%.*}"
awk '/^---$/{flag=(flag+1)%2;next} flag' "$file" > "_talks/$filename"
echo "[See slides/poster](slide/$basename.html)" >> "_talks/$filename"
awk '/^---$/{print; if(flag) exit; flag=1; next} flag' "$file" > "_talks/$filename"
echo "[See slides/poster](../slide/$basename.html)" >> "_talks/$filename"
done
- name: Push to Branch
run: |
Expand Down
3 changes: 1 addition & 2 deletions _includes/archive-single-talk.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{% if teaser contains "://" %}
"{{ teaser }}"
{% else %}
"{{ teaser | prepend: "/images/" | prepend: base_path }}"
"{{ teaser | prepend: "/images/" | prepend: base_path }}"
{% endif %}
alt="">
</div>
Expand All @@ -37,6 +37,5 @@ <h2 class="archive__item-title" itemprop="headline">
{% endif %}
{% if post.date %}<p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {{ post.date | date: '%B %d, %Y' }}</p>{% endif %}
{% if post.venue %}<p class="archive__item-excerpt" itemprop="description">{{post.type}}, {{ post.venue }}, {{post.location}} {% endif %}
{% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify }}</p>{% endif %}
</article>
</div>
6 changes: 3 additions & 3 deletions _slides/2023-marp-slides.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
marp: true
theme: gaia
theme: default
class: invert
# Header configuring this as marp slides
# Theme and class simply defining my preferred dark theme for slides
title: "These are some sample markdown slides"
collection: talks
type: "oral"
venue: "AMS"
date: 12/28/2023
date: 28/12/2023
location: "Richland, WA"
---

<!-- A slide with a title -->
# These are some sample markdown slides
# Sample markdown slides using MARP

---

Expand Down

0 comments on commit b3b350c

Please sign in to comment.