Skip to content

Commit

Permalink
fix base_url bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wtong2017 committed Jan 10, 2023
1 parent 7ff99c0 commit ba4ebcb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: HKUST XRVislab
description: > # this means to ignore newlines until "baseurl:"
HKUST VisLab is a multidisciplinary group. The group is interested in Big Data Analytics, Data Visualization, Human Computer Interaction, Urban Informatics, Explainable AI, E-Learning, Social Media, Social Network/Graph, Fintech, and Augmented Reality. The lab’s mission is to build visualization solutions to address societal needs and make a real-world impact through data visualization.
baseurl: "" # the subpath of your site, e.g. /blog
baseurl: "/groups/xr-vis" # the subpath of your site, e.g. /blog
url: "https://yuanlinping.github.io" # the base hostname & protocol for your site
production_url: "https://yuanlinping.github.io"
permalink: /blog/:year/:month/:title.html
Expand Down
2 changes: 1 addition & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% assign current = page.url | downcase | split: '/' %}
<header class="page-header">
<nav class="container">
<a class="site-title" href="{{ absolute_url }}/">{{ site.title }}</a>
<a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>

<a href="{{ '/publications/' | relative_url }}" {% if current[1] == 'publications' %}class="active"{% endif %}>Publications</a>
<a href="{{ '/projects/' | relative_url }}" {% if current[1] == 'projects' %}class="active"{% endif %}>Projects</a>
Expand Down
2 changes: 1 addition & 1 deletion _includes/publication.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div class="publication" data-pub='{{ pub | jsonify | escape }}'>
<div class="thumbnail">
<img src="{{ pub.image }}"/>
<img src="{{ pub.image | relative_url }}"/>
</div>
<div class="publication-content">
<h3 id="{{ anchor }}">{% for award in pub.awards %}<i class="fas fa-{% if award == "Best Paper Award" %}trophy{% else %}award{% endif %} award-icon" title="{{ award }}"></i> {% endfor %}{{ pub.title }}</h3>
Expand Down
4 changes: 2 additions & 2 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ class: home
---

<picture>
<source srcset='/images/welcome_0.jpg' type='image/png' />
<source srcset='{{ site.baseurl }}/images/welcome_0.jpg' type='image/png' />
<img
src='/images/welcome_0.jpg'
src='{{ site.baseurl }}/images/welcome_0.jpg'
alt='HKUST XRVislab'>
</picture>

Expand Down

0 comments on commit ba4ebcb

Please sign in to comment.