Be professional 👔
Be professional 👔
Autobiography 📖
Be professional 👔
Autobiography 📖
Learning and Sharing 🔈
Be professional 👔
Autobiography 📖
Learning and Sharing 🔈
Have fun programming and blogging! 😁
customize your content by modifying a template website -- lots of work 😅
install.packages("blogdown")
blogdown::install_hugo()
customize your content by modifying a template website -- lots of work 😅
install.packages("blogdown")
blogdown::install_hugo()
custom domain name -- straightforward 😄
Google Domains (.com, .org, .me) for a cost of $12 per year
Google Analytics (monitor website traffic for free)
customize your content by modifying a template website -- lots of work 😅
install.packages("blogdown")
blogdown::install_hugo()
custom domain name -- straightforward 😄
Google Domains (.com, .org, .me) for a cost of $12 per year
Google Analytics (monitor website traffic for free)
publish with GitHub and Netlify -- somewhat tricky 😣
tell Netlify to continuously build and deploy your website from source
configure custom domain DNS
New Project → New Directory → Website using blogdown
New Project → New Directory → Website using blogdown
Create a new website using the RStudio dialog to set it up in a new project.
Live preview a website locally (Addins -> Serve Site).
configuration: a few site settings to go through
config.toml
config/_default/*.toml ⇒ languages, menus, params
configuration: a few site settings to go through
config.toml
config/_default/*.toml ⇒ languages, menus, params
content: mostly markdown files
home/*.md -- homepage widgets
authors/admin -- your biography
post, talk, project, publication -- your achievements 💯
configuration: a few site settings to go through
config.toml
config/_default/*.toml ⇒ languages, menus, params
content: mostly markdown files
home/*.md -- homepage widgets
authors/admin -- your biography
post, talk, project, publication -- your achievements 💯
static: self imported files
configuration: a few site settings to go through
config.toml
config/_default/*.toml ⇒ languages, menus, params
content: mostly markdown files
home/*.md -- homepage widgets
authors/admin -- your biography
post, talk, project, publication -- your achievements 💯
static: self imported files
DO NOT TOUCH: public, resources, themes
active = true
: keep widget; active = false
: discard widget
weight
display order (small weight shows first)
works in the same way for both homepage widgets and navigation bar menus
For example, content/home/accomplishments.md
+++# Accomplishments widget.widget = "accomplishments" headless = true # This file represents a page section.active = false # Activate this widget? true/falseweight = 50 # Order that this section will appear.
folder name admin can be replaced with a customized user name
edit authors/admin/_index.md
to introduce yourself
replace authors/admin/avatar.jpg
with your profile picture
"<i class="fab fa-r-project"></i>"
versus "r icon::fa('r-project')"
Optional
Activate/deactivate the sections (widgets) on the homepage
Rearrange the section orders however you like
blogdown::new_post(ext = '.Rmd')
)Do not knit your post, instead
use the Serve Site Addin to preview your post, or
refresh preview
In YAML header,
draft:TRUE
⇒ preview an R markdown post
draft:FALSE
⇒ ready to deploy a post
highlight = truehighlight_languages = ["r"] highlight_style = "arta"
For image not created from your R Markdown file, you should
add image to the static/img
folder
insert your image using 
For image not created from your R Markdown file, you should
add image to the static/img
folder
insert your image using 
Any files in the static
folder can be referred using similar relative path!
For image not created from your R Markdown file, you should
add image to the static/img
folder
insert your image using 
Any files in the static
folder can be referred using similar relative path!
Follow the following steps to link your resume to the navigation bar:
add your resume to the static/files
folder
Specify the URL to your resume in config/_default/menus.toml
[[main]] name = "Resume" # displayed text url = "files/resume.pdf" weight = 70
relative path will be after your domain name (e.g., https://xxx.com/
),
homepage section (widget): [text](#posts)
tags: [text](tags/rstats)
categories [text](categories/r)
relative path will be after your domain name (e.g., https://xxx.com/
),
homepage section (widget): [text](#posts)
tags: [text](tags/rstats)
categories [text](categories/r)
DO NOT leave out prefix https://
when directing visitor to external webpages.
relative path will be after your domain name (e.g., https://xxx.com/
),
homepage section (widget): [text](#posts)
tags: [text](tags/rstats)
categories [text](categories/r)
DO NOT leave out prefix https://
when directing visitor to external webpages.
Recommended practice for generating permanent links in config.toml
slug
serves as a short page ID
URL won't change as you move around or rename file/folder
# Rules to generate permanent links of your pages[permalinks] post = "/:year/:month/:day/:slug/" publication = "/publication/:slug/" talk = "/talk/:slug/"
Per publication folder, you need
index.md
featured.png
cite.bib
Create a "hello world" post
Preview your post
Optional
Try inserting
code chunk
emoji
icon
image
hyperlink to internal pages
config/_default/params.toml
your contact information (if you activate content/home/contact.md
)
site name and description → title
and description
custom domain and Google analytics → baseurl
and google_analytics
active comments → comments
config.toml
enable emoji → enableEmoji = true
activate Chinese/Japanese/Korean languages → hasCJKLanguage = true
Push your repository to GitHub
public
folderPush your repository to GitHub
public
folderI get out of my pod 😆
cite.bib
on BibDeskBe professional 👔
Keyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
Esc | Back to slideshow |