-
Notifications
You must be signed in to change notification settings - Fork 32
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
Hello Hugo Apéro: Converting a Blogdown Site from Hugo Academic | Silvia Canelón #36
Comments
Thanks! |
Thanks Silvia for this excellent writeup! I was wondering if you had any suggestions on how to implement to "On This Page" table of contents that you have in the sidebar? From what I can tell, this is implemented using some additions and tweaks to the /layouts directory? |
Hi @kwanlin! Thanks for your question -- it will be the first one I answer using Utterances! 🔮 Step 1. Create a custom partial for the table of contents (i.e. silvia/layouts/partials/shared/post-toc.html Lines 1 to 12 in 831e2cf
Step 2. Copy the Step 3. Insert the table of contents partial from Step 1 into the {{ partial "shared/post-toc.html" . }} Seen in context below: silvia/layouts/blog/single-sidebar.html Lines 28 to 34 in 831e2cf
Step 4. Tweak the table of content settings in the Lines 23 to 26 in 831e2cf
For another very similar implementation you can explore Alison Hill's single-sidebar.html and sidebar-toc.html setup. There are some extra things going on with my site that make it so the table of contents styling changes as the reader scrolls down the page. The implementation is a little clunky at the moment (I don't know JavaScript!) but I linked to some resources in #23 (comment) to go along with the commits if you're interested 🔍 |
Thank you for the detailed response! It looks like the two things that were tripping me up were:
|
Thanks for this post !! But everything was ok until I decided to update blogdown to 1.6 version and Hugo to 0.89.4 version and now I can not update the site. Any idea about how to fix it? Thanks in advance !! |
Hi @Tai-Rocha! Thanks for reading the post. Blogdown and Hugo issues can be tricky to figure out! Here are some questions to consider:
|
Excelent post! I'm following to migrate my web site. When I move my blog content I found that some of my post don't show on the list (actually the blog only show one). I have to remove the type parameter on the YAML to all the post. Sharing this here jus in case some one else found this issue. |
When transferring my old posts I noticed that .Rmd files are directly rendered to .html files thus any Apero specific theme settings are not included. Converting the files to .Rmarkdown fixed the issue. Also sharing in case somebody else runs into the same problem. |
I did the deploy with different steps:
That avoid the merge conflicts and has to delete the files one more time. Gracias por este tutorial, me ayudó muchisimo! |
Hello Hugo Apéro: Converting a Blogdown Site from Hugo Academic | Silvia Canelón
A tutorial on how to take your personal Hugo Academic/Wowchemy website and convert it to the Hugo Apéro theme
https://silvia.rbind.io/blog/2021-hello-hugo-apero/
The text was updated successfully, but these errors were encountered: