![]() By default, the image logo.png under the static/ directory is used. Logo: A list of options to define the logo of the website. Similar to highlightjsCDN, you can specify the CDN host of MathJax, e.g., ///ajax/libs, and you can also specify the version of MathJax. MathJax*: The JavaScript library MathJax can render LaTeX math expressions on web pages. See for all languages and themes that highlight.js supports. You can change the version (e.g., 9.12.0), the CND host (e.g., using cdnjs: ///ajax/libs), add more languages (e.g., ), and change the theme (e.g., atom-one-light). Highlightjs*: These options are used to configure the JavaScript library highlight.js for syntax highlighting of code blocks on the web pages. It is not visible on web pages (you can only see it from the HTML source), but should give search engines a hint about your website. Params: Miscellaneous parameters for the theme.ĭescription: A brief description of your website. In the above example, I added a menu item CV with the URL /vitae/, and there is supposed to be a corresponding source file vitae.md under the content/ directory to generate the page /vitae/index.html, so the link will actually function. ] name = "Home" url = "/" weight = 1 ] name = "About" url = "/about/" weight = 2 ] name = "GitHub" url = "" weight = 3 ] name = "CV" url = "/vitae/" weight = 4 ] name = "Twitter" url = "" weight = 5 If you want to order the items, you may assign a weight to each item, e.g., Menu: This list of options specifies the text and URL of menu items at the top. IgnoreFiles and s: These options have been explained in Section 2.2.2. Again, you have to read the documentation of a theme to know what options are supported or required. It is quite possible that a different theme will not work with your current config.toml. You need to be very careful when changing themes, because one theme can be drastically different from another theme in terms of the configurations. Typically this is displayed in a web browser’s title bar or on a page tab. This option defaults to false in Hugo, and it means your website must be viewed through a web server, e.g., blogdown::serve_site() has provided a local web server, so you can preview your website locally when relativeurls = false. You may want to set it to true only if you intend to view your website locally through your file viewer, e.g., double-click on an HTML file and view it in your browser. Some of these options may be obvious to understand, and some may need explanations:īaseurl: You can configure this option later, after you have a domain name for your website. D.5 Paths of figures and other dependenciesīaseurl = "/" relativeurls = false languageCode = "en-us" title = "A Hugo website" theme = "hugo-lithium" ignoreFiles = post = "/:year/:month/:day/:slug/" ] name = "About" url = "/about/" ] name = "GitHub" url = "" ] name = "Twitter" url = "" description = "A website built through Hugo and blogdown." highlightjsVersion = "9.12.0" highlightjsCDN = "///ajax/libs" highlightjsLang = highlightjsTheme = "github" MathJaxCDN = "///ajax/libs" MathJaxVersion = "2.7.5" url = "logo.png" width = 50 height = 50 alt = "Logo".D.3 Building a website for local preview.5.3 Default site generator in rmarkdown.1.6.3 Customize the R Markdown output format.1.6.2 Render R Markdown to Markdown or HTML?. ![]() ![]() 1.2.5 When in doubt, run blogdown::check_site().
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |