From 153636a293ac800a864f98a1d491ae6984e7cef5 Mon Sep 17 00:00:00 2001 From: Daniel Borek Date: Sun, 6 Aug 2023 01:39:04 +0200 Subject: [PATCH] removed
from footer --- .gitignore | 1 + .gitmodules | 8 ++++---- content/posts/Index.md | 14 ++++++++++++++ content/posts/pdf-quarto-tips.md | 13 +++++++++---- hugo.toml | 3 --- layouts/partials/footer.html | 12 ++++++++++++ layouts/partials/footer_giscus.html | 2 +- layouts/partials/tags.html | 4 ++++ 8 files changed, 45 insertions(+), 12 deletions(-) create mode 100644 content/posts/Index.md create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/tags.html diff --git a/.gitignore b/.gitignore index b4ab56c..15679cd 100755 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ *.DS_Store/ .luarc.json .hugo_build.lock +.themes diff --git a/.gitmodules b/.gitmodules index 6391cac..926f524 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 = git@github.com:danieltomasz/lines.git +# [submodule "themes/lines"] +# path = themes/lines +# url = git@github.com:danieltomasz/lines.git [submodule "themes/hugo-redirect"] path = themes/hugo-redirect diff --git a/content/posts/Index.md b/content/posts/Index.md new file mode 100644 index 0000000..0c89494 --- /dev/null +++ b/content/posts/Index.md @@ -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 +--- diff --git a/content/posts/pdf-quarto-tips.md b/content/posts/pdf-quarto-tips.md index de9661b..e094f08 100644 --- a/content/posts/pdf-quarto-tips.md +++ b/content/posts/pdf-quarto-tips.md @@ -60,6 +60,10 @@ I put number as comments, so you can better understand specific lines. +## 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. @@ -116,7 +120,7 @@ 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. @@ -124,7 +128,7 @@ I can include the first chapter into index.md but then we were hitting the same ### 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]: @@ -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 \ No newline at end of file +[^1]: https://tex.stackexchange.com/a/176109 +[^2]: [Quarto - Project Profiles](https://quarto.org/docs/projects/profiles.html) \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index 3a12178..b710574 100644 --- a/hugo.toml +++ b/hugo.toml @@ -137,9 +137,6 @@ ignoreFiles = [ "\\.qmd$", "\\.ipynb$", "\\.py$" ] url = "/atom.xml" weight = -10 -[[redirects]] - from = "/" - to = "/about/" [[params.social]] name = "github" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..9e420a3 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,12 @@ +{{/*
*/}} + diff --git a/layouts/partials/footer_giscus.html b/layouts/partials/footer_giscus.html index 16be63e..92d7765 100644 --- a/layouts/partials/footer_giscus.html +++ b/layouts/partials/footer_giscus.html @@ -1,4 +1,4 @@ -
+{{/*
*/}}