Skip to content

Commit

Permalink
removed <hr> from footer
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltomasz committed Aug 5, 2023
1 parent 0369667 commit 153636a
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
*.DS_Store/
.luarc.json
.hugo_build.lock
.themes
8 changes: 4 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[submodule "themes/simplist"]
path = themes/simplist
url = https://github.com/ronv/simplist.git
url = git@github.com:danieltomasz/simplist.git

[submodule "themes/lines"]
path = themes/lines
url = [email protected]:danieltomasz/lines.git
# [submodule "themes/lines"]
# path = themes/lines
# url = [email protected]:danieltomasz/lines.git

[submodule "themes/hugo-redirect"]
path = themes/hugo-redirect
Expand Down
14 changes: 14 additions & 0 deletions content/posts/Index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
longform:
format: scenes
title: posts
workflow: Default Workflow
sceneFolder: /
scenes:
- back to hugo
- learning-hugo
- pdf-quarto-tips
- using obsidian callouts with quarto
ignoredFiles: []
draft: true
---
13 changes: 9 additions & 4 deletions content/posts/pdf-quarto-tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ I put number as comments, so you can better understand specific lines.
<!--Those are setting I am using to render a working preview of a chapter.
The final version will be using a font provided by my university: -->
## Use profiles to compile either whole book or thesis or single chapter
Since quarto 1.2 profiles are introduced [^2] In my use case I have on profile `_quarto-thesis.yml` which include all chapters and preambles, and another `_quarto.yml` which I can use just to compile the current markdown file; If I want to render whole thesis I just use `quarto render --profile thesis`; you could have as many as you want of those profiles (I was procrastinating that way with different look and templates for my thesis :slight_smile: )

## Roman numbering for front matter and arabic for main matter

I am inserting roman numbering for front matter and arabic for main matter.
Expand Down Expand Up @@ -116,15 +120,15 @@ book:


I want to all of my content of to live in the 'chapters' folder.
Unfortunately currently in `quatro` users always need to include `index.md` (it makes sense when generating `html` as output, but not always when generating `pdf``).
Unfortunately currently in `quatro` users always need to include `index.md` (it makes sense when generating `html` as output, but not always when generating `pdf`).

I can leave the `index.md` file empty, but then I will have an empty page between my table of content and first chapter.
I can include the first chapter into index.md but then we were hitting the same problem on smaller scale again.

### My solution

By default, latex is adding a page break after each chapter, and the `index.md` file is treated as a chapter, even if empty.
I am cheating a bit, not solving the problem, but hiding it by relaxing `\clearpage`` behaviour in latex.
As a hack, I am hiding the problem by relaxing `\clearpage` behaviour in latex.

I am leaving my `index.md` file almost empty, I'm just adding this latex code [^1]:

Expand All @@ -147,8 +151,9 @@ In future the `quatro` behaviour might change regarding inclusion of `index.md``
I just saw this post published on the blog of Cameron Patrick, it contains more useful information about writing thesis with `quarto`: https://cameronpatrick.com/post/2023/07/quarto-thesis-formatting/.

I am personally using modified `quarto-thesis` template for my thesis, you can find it here: https://github.com/nmfs-opensci/quarto-thesis
If you don't use quarto, but you want to play with, you can modify it online on the Posit virtual `Rstudio` instance https://rstudio.cloud/content/4383755 (free account required)
If you don't use quarto, but you want to play with it, you can modify it online on the Posit virtual `Rstudio` instance https://rstudio.cloud/content/4383755 (free account required)

## References

[^1]: https://tex.stackexchange.com/a/176109
[^1]: https://tex.stackexchange.com/a/176109
[^2]: [Quarto - Project Profiles](https://quarto.org/docs/projects/profiles.html)
3 changes: 0 additions & 3 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ ignoreFiles = [ "\\.qmd$", "\\.ipynb$", "\\.py$" ]
url = "/atom.xml"
weight = -10

[[redirects]]
from = "/"
to = "/about/"

[[params.social]]
name = "github"
Expand Down
12 changes: 12 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{/* <hr> */}}
<footer>
<nav>

<ul>
<li>
© {{ dateFormat "2006" now }}
</li>

</ul>
</nav>
</footer>
2 changes: 1 addition & 1 deletion layouts/partials/footer_giscus.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<hr>
{{/* <hr> */}}

<footer>

Expand Down
4 changes: 4 additions & 0 deletions layouts/partials/tags.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ range $i, $e := .Params.tags -}}
{{- if $i -}}, {{ end -}}
<a href='{{ "/tags/" | relLangURL }}{{ . | urlize }}'>{{ $e }}</a>
{{- end -}}

0 comments on commit 153636a

Please sign in to comment.