Coder Social home page Coder Social logo

joelnitta-home's Introduction

joelnitta-home

Netlify Status

Source code for personal website of Joel Nitta.

Created with Quarto in R.

Site built by GitHub actions to the gh_pages branch, deployed by Netlify.

Local deployment

  • Generate the translated website with babelquarto::render_website()

  • Preview the website with servr::httw("_site")

Drafting a new blogpost

Use the custom draft_post() function:

post_qmd <- draft_post(
  slug = "example_post",
  title = "How to use the draft_post() function",
  desc = "Using templates to increase productivity",
  categories = c("R", "data")
)
#> ℹ Creating new directory at 'posts/2024-01-11_example_post'
#> ℹ Writing blog post template at 'posts/2024-01-11_example_post/index.qmd'
readr::read_lines(post_qmd)
#>  [1] "---"                                                                                                               
#>  [2] "title: \"How to use the draft_post() function\""                                                                   
#>  [3] "description:"                                                                                                      
#>  [4] "  Using templates to increase productivity"                                                                        
#>  [5] "date: 2024-01-11"                                                                                                  
#>  [6] "date-modified: today"                                                                                              
#>  [7] "image: featured.png"                                                                                               
#>  [8] "citation:"                                                                                                         
#>  [9] "  url: 2024-01-11_example_post"                                                                                    
#> [10] "lang: en"                                                                                                          
#> [11] "categories:"                                                                                                       
#> [12] "  - R"                                                                                                             
#> [13] "  - data"                                                                                                          
#> [14] "---"                                                                                                               
#> [15] ""                                                                                                                  
#> [16] "```{r}"                                                                                                            
#> [17] "#| label: setup"                                                                                                   
#> [18] "#| include: false"                                                                                                 
#> [19] ""                                                                                                                  
#> [20] "renv::use(lockfile = \"renv.lock\")"                                                                               
#> [21] "```"                                                                                                               
#> [22] ""                                                                                                                  
#> [23] ""                                                                                                                  
#> [24] "## Reproducibility {.appendix}"                                                                                    
#> [25] ""                                                                                                                  
#> [26] "- [Source code](https://github.com/joelnitta/joelnitta-home/tree/main/posts/2024-01-11_example_post/index.qmd)"    
#> [27] "- [`renv` lockfile](https://github.com/joelnitta/joelnitta-home/tree/main/posts/2024-01-11_example_post/renv.lock)"
fs::dir_delete(fs::path_dir(post_qmd))

Licenses

Code: MIT

Text and images, unless otherwise indicated: Creative Commons Attribution CC BY 4.0

Publications (PDF files): Indicated in each publication.

joelnitta-home's People

Contributors

joelnitta avatar maelle avatar

Stargazers

Harry Zhong avatar stesiam avatar  avatar Taemo Bang avatar Lukas Gröninger avatar

Watchers

 avatar

Forkers

isaakbm maelle

joelnitta-home's Issues

Some links are broken

such as https://raw.githubusercontent.com/joelnitta/joelnitta-home/main/_posts/2021-11-16_r-bioinfo-flow/_targets.R

Probably _posts needs to be changed to posts

Refactor i18n

Translation currently relies on PO files and multiple branches. While PO files have the advantage of tracking changes to each sentence (roughly), this workflow is overly fiddly. babelquarto provides an easier way to do this that will be easier to maintain and update.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.