Skip to content

Commit

Permalink
allow website to be located not at the domain root
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Aug 31, 2024
1 parent a8f3947 commit 3ad975a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
16 changes: 8 additions & 8 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<meta name="viewport" content="width=device-width,initial-scale=1,target-densitydpi=device-dpi" />

<title>RGB FAQ</title>
<link rel="stylesheet" href="/tachyons-ext.css">
<link rel="stylesheet" href="/fonts.css">
<link rel="stylesheet" href="/front.css">
<link rel="stylesheet" href="tachyons-ext.css">
<link rel="stylesheet" href="fonts.css">
<link rel="stylesheet" href="front.css">

<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
Expand All @@ -24,7 +24,7 @@
<nav class="flex flex-row justify-center justify-end-l items-center flex-wrap ph2 pl3-ns pr3-ns pb3">
<div id="logo" class="flex-auto w-100 w-auto-l self-start self-center tc tl-l">
<a href="/">
<img alt="RGB Logo" src="/logo/rgb-symbol-color.svg">
<img alt="RGB Logo" src="logo/rgb-symbol-color.svg">
</a>
</div>
</nav>
Expand All @@ -41,10 +41,10 @@
<div class="flex flex-column mw8 w-100 measure-wide-l pv2 pv5-m pv2-ns ph4-m ph4-l">
<h4>Social</h4>
<div class="flex flex-row flex-wrap">
<a href="https://twitter.com/lnp_bp"><img src="/social/twitter.svg" alt="twitter logo" title="Twitter"></a>
<a href="https://www.youtube.com/LNP-BP"><img class="pv2" src="/social/youtube.svg" alt="youtube logo" title="YouTube"></a>
<a href="https://reddit.com/r/RGB_protocol"><img src="/social/reddit.svg" alt="discord logo" title="Discord"></a>
<a href="https://github.com/RGB-WG"><img src="/social/github.svg" alt="github logo" title="GitHub"></a>
<a href="https://twitter.com/lnp_bp"><img src="social/twitter.svg" alt="twitter logo" title="Twitter"></a>
<a href="https://www.youtube.com/LNP-BP"><img class="pv2" src="social/youtube.svg" alt="youtube logo" title="YouTube"></a>
<a href="https://reddit.com/r/RGB_protocol"><img src="social/reddit.svg" alt="discord logo" title="Discord"></a>
<a href="https://github.com/RGB-WG"><img src="social/github.svg" alt="github logo" title="GitHub"></a>
</div>
</div>

Expand Down
14 changes: 4 additions & 10 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
{% block social_media %}
<meta name="description" content="{{ section.description }}">

<meta property="og:title" content="RGB protocol" />
<meta property="og:title" content="RGB FAQ" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://rgb.tech/rgb-banner.png" />
<meta property="og:image" content="https://rgbfaq.com/rgb-banner.png" />
<meta name="twitter:card" content="summary_large_image">

<meta property="og:description" content="{{ section.description }}">
<meta property="og:site_name" content="RGB protocol">
<meta property="og:site_name" content="RGB FAQ">

<meta name="twitter:site" content="@lnp_bp">
{% endblock social_media %}
Expand All @@ -20,17 +20,11 @@
<div class="w-70-l mw8-l">
{{ section.content | safe }}
</div>
<div class="w-30-l flex-column pl0-l pr0-l pl3 pr3">
<a class="button button-download ph4 mt0 w-100" href="/guide">
Get Started
</a>
</div>
</div>
</header>
{% set bg = ["section-white", "section-red", "section-green", "section-purple"] %}
{%- for page in section.pages %}
{% set idx = loop.index % 4 %}
<section class="{{bg[idx]}} li-columns">
<section class="li-columns">
<div>
<header class="pb0">
<h2>{{ page.title }}</h2>
Expand Down

0 comments on commit 3ad975a

Please sign in to comment.