/dagong.github.io

Da Gong's Website. Da Gong is a Ph.D. Candidate in Economics at UC Riverside. Email: dgong005@ucr.edu. The source code is adopted from Github Pages template for academic personal websites (academicpages.github.io), forked from mmistakes/minimal-mistakes

Primary LanguageJavaScriptMIT LicenseMIT

Da Gong's Website

https://dadasmash.github.io/dagong.github.io/
Lecturer in Data Analytics
State University of New York, Geneseo
PhD in Economics
Email: dgong@geneseo.edu


A Github Pages template for academic websites. This was forked (then detached) by Stuart Geiger from the Minimal Mistakes Jekyll Theme, which is © 2016 Michael Rose and released under the MIT License. See LICENSE.md.

I think I've got things running smoothly and fixed some major bugs, but feel free to file issues or make pull requests if you want to improve the generic template / theme.

Note: if you are using this repo and now get a notification about a security vulnerability, delete the Gemfile.lock file.

Instructions

  1. Register a GitHub account if you don't have one and confirm your e-mail (required!)
  2. Fork this repository by clicking the "fork" button in the top right.
  3. Go to the repository's settings (rightmost item in the tabs that start with "Code", should be below "Unwatch"). Rename the repository "[your GitHub username].github.io", which will also be your website's URL.
  4. Set site-wide configuration and create content & metadata (see below -- also see this set of diffs showing what files were changed to set up an example site for a user with the username "getorg-testacct")
  5. Upload any files (like PDFs, .zip files, etc.) to the files/ directory. They will appear at https://[your GitHub username].github.io/files/example.pdf.
  6. Check status by going to the repository settings, in the "GitHub pages" section
  7. (Optional) Use the Jupyter notebooks or python scripts in the markdown_generator folder to generate markdown files for publications and talks from a TSV file.

See more info at https://academicpages.github.io/
another template: https://github.com/alshedivat/al-folio/tree/c1428532e0735210175034d2588ce00446d3c335

Further instruction provided by Da Gong

here's a useful link:

https://www.youtube.com/watch?v=jplSmg2Z-Tw

some hint

first thing, change url and repository address in _config.yml
for menu at the top bar, for example: Research and Datasets.
their menu option is stored at _data/navigation.yml
the link and corresponding markdown is stored at /pages and corresponding files
the items or contents (e.g. if your want to uplaod pdf file under Research section...) are stored in corresponding folder under master directory (e.g. _research)
bio content (first page) is at _pages/about.md
To set up research page, can also refer to https://kmlv.github.io/research/ and https://zwbai.github.io/#
To set two colomns in webpage, check this link (need to set CSS in the html header):https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_two_columns_unequal
enlarge image when hover (need to set CSS in the html header):https://www.educative.io/answers/how-to-enlarge-an-image-on-hover-in-html
To set the size of profile photo: go to _sass/_sidebar.scss and find the .author__avatar (see https://opinderkaur.com/). the code for oval profile could be found in the academicpages original code


click image and direct to a specific location (within same page or other page): https://stackoverflow.com/questions/20565644/how-to-link-to-a-div-on-another-page
interactive visualization: https://github.com/plotly/plotly.py

insert Youtube video (the last answer): https://stackoverflow.com/questions/34708476/jekyll-blog-hosted-in-github-how-to-insert-youtube-embeddings

to be found by Google Serach engine and set sitemap

  1. google7cf42ba7c158084e.html is for verification purpose for Google search engine
  2. see https://search.google.com/search-console/welcome and alshedivat/al-folio#442
  3. to get the sitemap address: use this link, https://dadasmash.github.io/dagong.github.io/sitemap/ and the sitemap to my website is https://dadasmash.github.io/dagong.github.io//sitemap.xml.
  4. Then creat the robots.txt file (https://dev.to/stankukucka/google-search-console-cant-fetch-sitemap-on-github-pages-31kn). this file is to allow google crawl and build index from your website.
  5. click "URL Inspection" section in Google Search Console and and "Request Indexing"

Use Git Bash (edit wepage locally)

git clone https://github.com/dadasmash/dagong.github.io
ls
cd "C:\UCR TA\GradQaunt\Workshop\Summer2023\Webpage\dagong.github.io"
Start making changes to the content on the page
git status
git add
git commit
git status
git push

To run the webpage locally (not on GitHub Pages, to serve on your own computer)

  1. Clone the repository and made updates as detailed above
  2. Make sure you have ruby-dev, bundler, and nodejs installed: sudo apt install ruby-dev ruby-bundler nodejs
  3. Run bundle clean to clean up the directory (no need to run --force)
  4. Run bundle install to install ruby dependencies. If you get errors, delete Gemfile.lock and try again.
  5. Run bundle exec jekyll liveserve to generate the HTML and serve it from localhost:4000 the local server will automatically rebuild and refresh the pages on change.

Changelog -- bugfixes and enhancements

There is one logistical issue with a ready-to-fork template theme like academic pages that makes it a little tricky to get bug fixes and updates to the core theme. If you fork this repository, customize it, then pull again, you'll probably get merge conflicts. If you want to save your various .yml configuration files and markdown files, you can delete the repository and fork it again. Or you can manually patch.

To support this, all changes to the underlying code appear as a closed issue with the tag 'code change' -- get the list here. Each issue thread includes a comment linking to the single commit or a diff across multiple commits, so those with forked repositories can easily identify what they need to patch.