-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExecution codes.R
57 lines (37 loc) · 1.45 KB
/
Execution codes.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
library(blogdown)
blogdown::new_site(theme = "alex-shpak/hugo-book")
blogdown::build_site()
blogdown::serve_site()
blogdown::stop_server()
blogdown::check_site()
blogdown::clean_duplicates()
blogdown::find_hugo()
#----
# Steps to rebuild the website.
# Step #1: Back up the folder 'content'.
# Step #2: Delete the damaged repository at Github
# Settings -> Danger Zone -> Delete this repository
# Step #3: Recreate the repository with exactly identical name.
# Step #4: Create a new project at RStudio.
# new project -> Version control -> Git -> Repository URL -> paste the URL, create project as subdirectory of ...
# in Console, type:
# blogdown::new_site(theme = "alex-shpak/hugo-book")
#----
# To upload a batch of files
# in the 'Terminal' tab next to the 'Console' tab
# copy and paste: git add -A
# then 'Commit', and 'push'
# Procedure to build a new blog:
# Create a new repository.
# Create a new project on the local computer.
# execute blogdown::new_site(theme = "###/theme name") in console
# commit to github if error messages are shown when building site.
# setup at netlify.[refer to https://www.youtube.com/watch?v=9Jqvaoeh1W4&t=1081s]
#
# need to update hugo from time to time.
# hugo_book theme----
# body font and font size \themes\hugo-book\assets\_fonts.scss
# at Netlify ----
# advanced build settings
# key HUO_VERSION number current version of hugo.
# version 101.0 does not work well, so I set 82.0 in netlify.toml and .Rprofile