Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions _freeze/posts/cyn_test/execute-results/html.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"hash": "0d3016bf9b43ff9ab4393825da8d4955",
"result": {
"markdown": "---\ntitle: \"Blog Post Template\"\nauthor: \"Cynthia Hester\"\ndesription: \"Something to describe what I did\"\ndate: \"04/20/2023\"\nformat:\n html:\n toc: true\n code-fold: true\n code-copy: true\n code-tools: true\ncategories:\n - hw1\n - challenge1\n - my name\n - dataset\n - ggplot2\n---\n\n::: {.cell}\n\n```{.r .cell-code}\nlibrary(tidyverse)\n\nknitr::opts_chunk$set(echo = TRUE)\n```\n:::\n\n\n## Instructions\n\nThis document provides yaml header inforamtion you will need to replicate each week to submit your homework or other blog posts. Please observe the following conventions:\n\n- Save your own copy of this template as a blog post in the `posts` folder, naming it `FirstLast_hwX.qmd`\n- Edit the yaml header to change your author name - use the same name each week\n- include a *description* that is reader friendly\n- update the *category* list to indicate the type of submission, the data used, the main packages or techniques, your name, or any thing else to make your document easy to find\n- edit as a normal qmd/rmd file\n\n\n\n::: {.cell}\n\n```{.r .cell-code}\nx <- c(2,3,4,5)\nmean(x)\n```\n\n::: {.cell-output .cell-output-stdout}\n```\n[1] 3.5\n```\n:::\n:::\n\n\n## Rendering your post\n\nWhen you click the **Render** button a document will be generated that includes both content and the output of embedded code.\n\n:::{.callout-warning}\nBe sure that you have moved your `*.qmd` file into the `posts` folder **BEFORE** you render it, so that all files are stored in the correct location.\n:::\n\n:::{.callout-important}\nOnly render a single file - don't try to render the whole website!\n:::\n\n:::{.callout-note}\n## Pilot Student Blogs\n\nWe are piloting a workflow including individual student websites with direted and limited pull requests back to course blogs. Please let us know if you would like to participate.\n:::\n\n## Reading in data files\n\nThe easiest data source to use - at least initially - is to choose something easily accessible, either from our `_data` folder provided, or from an online source that is publicly available.\n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
65 changes: 65 additions & 0 deletions posts/cyn_test.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
title: "Blog Post Template"
author: "Cynthia Hester"
desription: "Something to describe what I did"
date: "04/20/2023"
format:
html:
toc: true
code-fold: true
code-copy: true
code-tools: true
categories:
- hw1
- challenge1
- my name
- dataset
- ggplot2
---

```{r}
#| label: setup
#| warning: false

library(tidyverse)

knitr::opts_chunk$set(echo = TRUE)
```

## Instructions

This document provides yaml header inforamtion you will need to replicate each week to submit your homework or other blog posts. Please observe the following conventions:

- Save your own copy of this template as a blog post in the `posts` folder, naming it `FirstLast_hwX.qmd`
- Edit the yaml header to change your author name - use the same name each week
- include a *description* that is reader friendly
- update the *category* list to indicate the type of submission, the data used, the main packages or techniques, your name, or any thing else to make your document easy to find
- edit as a normal qmd/rmd file


```{r}
x <- c(2,3,4,5)
mean(x)
```

## Rendering your post

When you click the **Render** button a document will be generated that includes both content and the output of embedded code.

:::{.callout-warning}
Be sure that you have moved your `*.qmd` file into the `posts` folder **BEFORE** you render it, so that all files are stored in the correct location.
:::

:::{.callout-important}
Only render a single file - don't try to render the whole website!
:::

:::{.callout-note}
## Pilot Student Blogs

We are piloting a workflow including individual student websites with direted and limited pull requests back to course blogs. Please let us know if you would like to participate.
:::

## Reading in data files

The easiest data source to use - at least initially - is to choose something easily accessible, either from our `_data` folder provided, or from an online source that is publicly available.
2 changes: 1 addition & 1 deletion shell_scripts/checkDate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
current_date=$(date "+%m/%d/%Y")

# Find tracked files in the posts directory with the .qmd extension
files=$(git ls-files --others --exclude-standard -- ./posts/*.qmd)
files=$(git ls-files --others --modified --exclude-standard -- ./posts/*.qmd)

for file in $files; do
if ! grep -q -E "date:\s+\"$current_date\"" "$file"; then
Expand Down