Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New example site #27

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
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
6 changes: 3 additions & 3 deletions exampleSite/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ menu:

params:
homePosts: 6
mainSections: ["post", "work"]
mainSections: ["post", "project"]
editLink: "https://github.com/yihui/hugo-prose/edit/master/exampleSite/content/"
authorDelimiter: " / "
pageFeatures: [+sidenotes]
description: >
A website built through Hugo and blogdown with the hugo-prose theme.
footer: >
© [Lucius Annaeus Seneca](https://en.wikipedia.org/wiki/Seneca_the_Younger)
4 BC -- AD 65
© [Beatrix Potter](https://en.wikipedia.org/wiki/Beatrix_Potter)
28 July 1866 – 22 December 1943
license: >
Text and figures are licensed under [Creative Commons Attribution CC BY
4.0](https://creativecommons.org/licenses/by/4.0/). The source code is
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ menu:

<div class="quote-right">

> Until we have begun to go without them, we fail to realize how unnecessary many things are. We've been using them not because we needed them but because we had them.
> “There is something delicious about writing the first words of a story. You never quite know where they'll take you.”

</div>

Expand Down
2 changes: 2 additions & 0 deletions exampleSite/content/card/philosophy.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ style: 'background: darkslategray; color: white;'
weight: 1
---

## Welcome!

As "a major philosophical figure of the Roman Imperial Period", Seneca’s lasting contribution to philosophy has been to the school of Stoicism. His writing is highly accessible and was the subject of attention from the Renaissance onwards by writers such as Michel de Montaigne. He has been described as “a towering and controversial figure of antiquity” and “the world’s most interesting Stoic”.

Seneca wrote a number of books on Stoicism, mostly on ethics, with one work (Naturales Quaestiones) on the physical world. Seneca built on the writings of many of the earlier Stoics: he often mentions Zeno, Cleanthes, and Chrysippus; and frequently cites Posidonius, with whom Seneca shared an interest in natural phenomena. He frequently quotes Epicurus, especially in his Letters.
53 changes: 0 additions & 53 deletions exampleSite/content/post/2015-07-23-letter-1.md

This file was deleted.

59 changes: 0 additions & 59 deletions exampleSite/content/post/2016-02-14-letter-2.md

This file was deleted.

62 changes: 0 additions & 62 deletions exampleSite/content/post/2019-07-29-letter-3.md

This file was deleted.

70 changes: 0 additions & 70 deletions exampleSite/content/post/2019-07-30-letter-4.md

This file was deleted.

2 changes: 2 additions & 0 deletions exampleSite/content/post/2020-11-10-r-markdown-demo/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ slug: r-markdown-demo
features: [+sticky_menu]
toc-title: Outline
bibliography: packages.bib
categories:
- R
---

```{r, setup, include=FALSE}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
features: [+sticky_menu]
toc-title: Outline
bibliography: packages.bib
categories:
- R
---

<script src="{{< relref "post/2020-11-10-r-markdown-demo/index.html" >}}index_files/header-attrs/header-attrs.js"></script>
Expand Down Expand Up @@ -218,14 +220,14 @@ <h3>Sidenotes</h3>
<div id="citations" class="section level3">
<h3>Citations</h3>
<p>Use <code>bibliography</code> or <code>references</code> in YAML to include the bibliography database,
and use <code>@</code> to cite items, e.g., <code>@R-base</code> generates <span class="citation"><a href="#ref-R-base" role="doc-biblioref">R Core Team</a> (<a href="#ref-R-base" role="doc-biblioref">2020</a>)</span>.</p>
and use <code>@</code> to cite items, e.g., <code>@R-base</code> generates <span class="citation"><a href="#ref-R-base" role="doc-biblioref">R Core Team</a> (<a href="#ref-R-base" role="doc-biblioref">2019</a>)</span>.</p>
<pre class="r"><code>knitr::write_bib(&#39;base&#39;, &#39;packages.bib&#39;)</code></pre>
<p>As you can see above, we generated a <code>.bib</code> database with <code>knitr::write_bib()</code>.</p>
<p>Citation entries are displayed in the right margin by default like footnotes. To
disable this behavior, set <code>features: [-sidenotes]</code> in YAML.</p>
<div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-R-base" class="csl-entry">
R Core Team. 2020. <em>R: A Language and Environment for Statistical Computing</em>. Vienna, Austria: R Foundation for Statistical Computing. <a href="https://www.R-project.org/">https://www.R-project.org/</a>.
R Core Team. 2019. <em>R: A Language and Environment for Statistical Computing</em>. Vienna, Austria: R Foundation for Statistical Computing. <a href="https://www.R-project.org/">https://www.R-project.org/</a>.
</div>
</div>
</div>
Expand Down
Loading