Skip to content

Switch to hugo #9

Closed
Closed

Description

@benmarwick

Looks like you are using jekyll here? Have you taken a look at blogdown? It uses Hugo and is a much smoother experience rendering pages and so on. You never need to leave the R console. Documentation is excellent: https://bookdown.org/yihui/blogdown/ It might make it easier to have community contributions if it is as simple as possible to edit pages, etc. Just a thought!

Activity

  1. nevrome commented on Mar 29, 2018

    @nevrome
    Member

    We went the RStudio way here. Jekyll should not do anything. But as I look at it I see that there's no .nojekyll file yet. Should add this, I guess. Maybe that's what caused the trouble today in the afternoon, @MartinHinz?

  2. benmarwick commented on Mar 29, 2018

    @benmarwick
    ContributorAuthor

    I see, thanks. I wasn't familiar with that method, but now I see that it looks very easy and similar to blogdown. There is no Jekyll involved, my mistake.

  3. joeroe commented on Nov 6, 2020

    @joeroe
    Member

    As the website gets more complicated I also think we might consider blogdown. The workflow is basically the same, but will let us organise things into categories and e.g. easily render the meeting minutes as proper pages. There are some instructions for using blogdown with GitHub Pages here: https://bookdown.org/yihui/blogdown/github-pages.html.

  4. reopened this on Nov 6, 2020
  5. nevrome commented on Nov 8, 2020

    @nevrome
    Member

    Well - I guess we could as well change to blogdown, but what exactly would we win over the current setup?

    I think there is rather an argument to be made to ditch R altogether and switch to a static system like docsify. That would make editing the page more easy. Could be done on github in the browser then.

  6. joeroe commented on Jan 11, 2021

    @joeroe
    Member

    What I like about static site generators (and we yeah could ditch the Rmd step and go with straight hugo or jekyll) is the tools for organising content. We could for example turn the current sections for sessions and meeting minutes into hugo archetypes, keeping the markdown content the same, and just as easy to edit, but getting a consistent layout, index pages, taxonomies, and a dated feed "for free".

    I haven't used docsify, but it seems the ease of editing is about the same with any system based on markdown? It's R that's adding the extra step, and we probably don't really need it.

    If you don't mind, maybe it's easier if I start a branch and prototype something so you can see what I mean.

  7. nevrome commented on Jan 11, 2021

    @nevrome
    Member

    Go ahead 👍 - I have no strong opinions how the content should be rendered.

  8. MartinHinz commented on Jan 11, 2021

    @MartinHinz
    Collaborator

    Thank you for the proposal and the offer! I personally have only experience with Jekyll so far, but maybe Hugo is the choice? The archetype-thing sounds very interesting!

    Btw, there were some complains about the color scheme of the current website, something to discuss at the next meeting!?

  9. zackbatist commented on Jan 11, 2021

    @zackbatist
    Contributor

    Yeah, there were some concerns about accessibility for the website. I created issue #37 to track progress on that.

  10. joeroe commented on Jan 12, 2021

    @joeroe
    Member

    Okay I have a rough prototype using hugo (without R/blogdown) at http://joeroe.io/sslarch.github.io/. It's automatically built from https://github.com/joeroe/sslarch.github.io on push using a GitHub Action.

    The main advantage I see is the automatic organisation into sections with a menu and indexes, which can be easily extended by just adding new md files and directories. We can also customise the way specific types of content display in lists and as a single view, see e.g. the members list.

    For the sake of time I didn't replicate the style we're currently using, just picked an off-the-shelf hugo theme that's close to it. We can easily reproduce the old one or go with something else if that's what's preferred. Also note that the members list is no longer a tsv. It would be possible to get that functionality back by writing an R script that generates .md pages from a table, like Zack does with zackbatist/open-archaeo, although I don't think asking new members to "sign up" by creating a file for themselves in content/members/ would be that bad either?

  11. zackbatist commented on Jan 12, 2021

    @zackbatist
    Contributor

    Looks great to me! My only suggestion would be to add breadcrumbs to help determine the logical organization of the site and navigate accordingly.

  12. joeroe commented on Jan 13, 2021

    @joeroe
    Member

    @zackbatist Good idea. I've added them.

  13. nevrome commented on Jan 18, 2021

    @nevrome
    Member

    I love it. The layout is also fine for me. Some small suggestions, @joeroe (not necessarily to be implemented by you):

    • The CAA/SSLA $ icon in the top left still leads to your own homepage, @joeroe (maybe this is fixed automatically after merging?)
    • The page should prominently feature our logo (the logo might also guide the selection of the colour theme)
    • The Steering Committee members in members should not be ordered alphabetically, but according to their role: Convener - Vice Convener - Secretary
    • The sessions tab should get a better menu layout
  14. joeroe commented on Jan 19, 2021

    @joeroe
    Member

    Those should all be straightforward (and yes the first is just me being lazy with the config files and won't be there after merging). I can do them or if others want to try out the new system PRs to my fork are welcome!

  15. nevrome commented on Jan 19, 2021

    @nevrome
    Member

    Please add (or replace the available one) a quickstart guide to the README to explain how this hugo thing works in brief words. You should also explain the git submodule and how to get it.

  16. nevrome commented on Jan 19, 2021

    @nevrome
    Member

    The idea should be to give people an immediate ability to develop without opening the hugo or git man pages.

  17. joeroe commented on Feb 3, 2021

    @joeroe
    Member

    Since we decided to go ahead with this at the last meeting, I'd like to tidy up the code and improve the presentation before we go live (including the items above, #37 and #38). Nothing major, but it will take me a few days before it's ready for a PR.

  18. changed the title [-]consider blogdown[/-] [+]Switch to hugo[/+] on Mar 5, 2021
  19. joeroe commented on Mar 5, 2021

    @joeroe
    Member

    An update on the new site at http://joeroe.io/sslarch.github.io/ (source https://github.com/joeroe/sslarch.github.io):

    • Changed the theme to a custom one that is more flexible
    • Added the logo and changed the colour scheme to match it
    • Improved the typography, inspired by the current website
    • Improved the accessibility (Resolve accessibility issues on the website #37)
    • Documented how to build and change the site in README.md

    As long as the group still approves, I think this is very close to being ready. There are just a few issues I haven't had time to fix yet:

  20. MartinHinz commented on Mar 5, 2021

    @MartinHinz
    Collaborator

    Thank you so much! From my perspective, these are all things that we can also implement once this version is merged. So, I would suggest to PR right away?

  21. nevrome commented on Mar 5, 2021

    @nevrome
    Member

    Ja - let's merge and we fix it together in post-production 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions