Skip to content

Commit

Permalink
Updated publications
Browse files Browse the repository at this point in the history
  • Loading branch information
apetros committed Dec 12, 2024
1 parent c78b8f9 commit e1851ad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions layouts/partials/custom_head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script type='text/javascript' src='https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js'></script>
2 changes: 2 additions & 0 deletions layouts/shortcodes/rawhtml.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!-- raw html -->
{{.Inner}}
10 changes: 10 additions & 0 deletions layouts/shortcodes/readfromfile.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{ $file := .Get 0 }}
{{ $lines := .Get 1 }}
{{ $filestr := readFile $file }}
{{/* Splitting content by newline */}}
{{ $filestr := split $filestr "\n" }}
{{/* Limit the array/slice, start from 2nd item then grab all first 3 item */}}
{{ $filestr := first $lines (after 0 $filestr) }}
{{/* Delimit by newline */}}
{{ $filestr := delimit $filestr "\n\n" }}
{{ $filestr | markdownify }}

0 comments on commit e1851ad

Please sign in to comment.