https://github.com/pablosproject/pablosproject.com
Personal Website
https://github.com/pablosproject/pablosproject.com
Last synced: 3 months ago
JSON representation
Personal Website
- Host: GitHub
- URL: https://github.com/pablosproject/pablosproject.com
- Owner: pablosproject
- Created: 2024-11-19T09:40:20.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-19T09:41:42.000Z (over 1 year ago)
- Last Synced: 2025-03-09T05:28:23.135Z (over 1 year ago)
- Size: 413 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pablosproject.com
Based on [Hugo Researcher](https://github.com/ojroques/hugo-researcher) which in turn is based on the Jekyll theme [Researcher](https://github.com/ankitsultana/researcher).
## Useful command
- **Serve**: `hugo server -D` (-D for drafts)
- **Build**: `hugo -D`
- **Add a post**: `hugo new posts/POST.md`
## Installation
This theme uses Sass to generate CSS files so make sure you have the
*extended* Hugo version installed.
Add the theme to your site's `themes` directory:
```bash
git submodule add https://github.com/ojroques/hugo-researcher.git themes/researcher
# if your website is not managed by git:
# git clone https://github.com/ojroques/hugo-researcher.git themes/researcher
```
Update the theme option in `config.toml`:
```toml
theme = "researcher"
```
## Configuration
A self-explanatory configuration file is present in
[exampleSite/config.toml](https://github.com/ojroques/hugo-researcher/blob/master/exampleSite/config.toml),
along the files of a demo website.
## KaTeX
You can enable [KaTeX](https://katex.org/) (math typesetting) by including
`math: true` in your content files. Or you can enable it globally by setting
`math` to `true` in your project config.
Hugo introduces tags when it sees newlines which breaks KaTeX block
environments. The theme has a `math` shortcode to circumvent this issue:
```md
{{< math >}}
\begin{pmatrix}
a & b \\
c & d
\end{pmatrix}
{{< /math >}}
```
Check [this
issue](https://github.com/ojroques/hugo-researcher/issues/1#issuecomment-697247056)
for more details.