Skip to content

Commit

Permalink
Blog5 Render Fix (#307)
Browse files Browse the repository at this point in the history
This PR fixes the rendering issue with blog 5 on small screen.
This PR **does not** change the content of the blog.
  • Loading branch information
HuanzhiMao authored Apr 4, 2024
1 parent b62ddd7 commit 95875a8
Show file tree
Hide file tree
Showing 15 changed files with 610 additions and 796 deletions.
7 changes: 1 addition & 6 deletions assets/css/blog.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,4 @@ pre {
}


.navbar {
display: flex;
justify-content: flex-end;
align-items: flex-start;
flex-wrap: wrap;
}

48 changes: 48 additions & 0 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.navbar a:not(:last-child)::after {
content: "|";
margin: 0 2px;
color: #000;
}

@media only screen and (min-width: 768px) {
.navbar a:not(:last-child)::after {
margin: 0 10px;
}
}

.navbar {
display: flex;
flex-wrap: wrap;
}


pre {
white-space: pre-wrap;
width: 100%;
overflow-x: auto;
background-color: #f4f4f4;
}


body, html, p, h1, h2, h3, .author-date, .blog-title, .author, .date {
white-space: normal;
word-wrap: break-word;
overflow-wrap: break-word;
}


.container {
max-width: 100%;
width: auto;
}


@media (max-width: 768px) {
h1 {
font-size: 24px;
}

h2 {
font-size: 18px;
}
}
9 changes: 1 addition & 8 deletions blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/Team-Clean.css">
<link rel="stylesheet" href="../assets/css/blog.css">
<style>
/* Bars to separate titles in nav bar */
.navbar a:not(:last-child)::after {
content: "|";
margin: 0 10px;
color: #000;
}
</style>

</head>

<body>
Expand Down
15 changes: 4 additions & 11 deletions blogs/1_gorilla_intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,10 @@
<title>Introduction to Gorilla LLM</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro">
<link rel="stylesheet" href="assets/css/Highlight-Clean.css">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/Team-Clean.css">
<style>
/* Bars to separate titles in nav bar */
.navbar a:not(:last-child)::after {
content: "|";
margin: 0 10px;
color: #000;
}
</style>
<link rel="stylesheet" href="../assets/css/Highlight-Clean.css">
<link rel="stylesheet" href="../assets/css/styles.css">
<link rel="stylesheet" href="../assets/css/Team-Clean.css">

</head>

<body>
Expand Down
15 changes: 4 additions & 11 deletions blogs/2_hallucination.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,10 @@
<title>Hallucination</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro">
<link rel="stylesheet" href="assets/css/Highlight-Clean.css">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/Team-Clean.css">
<style>
/* Bars to separate titles in nav bar */
.navbar a:not(:last-child)::after {
content: "|";
margin: 0 10px;
color: #000;
}
</style>
<link rel="stylesheet" href="../assets/css/Highlight-Clean.css">
<link rel="stylesheet" href="../assets/css/styles.css">
<link rel="stylesheet" href="../assets/css/Team-Clean.css">

</head>

<body>
Expand Down
349 changes: 0 additions & 349 deletions blogs/3_retreiver_aware_training.html

This file was deleted.

15 changes: 4 additions & 11 deletions blogs/3_retriever_aware_training.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,10 @@
<title>RAT (Retrieval Aware Training)</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro">
<link rel="stylesheet" href="assets/css/Highlight-Clean.css">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/Team-Clean.css">
<style>
/* Bars to separate titles in nav bar */
.navbar a:not(:last-child)::after {
content: "|";
margin: 0 10px;
color: #000;
}
</style>
<link rel="stylesheet" href="../assets/css/Highlight-Clean.css">
<link rel="stylesheet" href="../assets/css/styles.css">
<link rel="stylesheet" href="../assets/css/Team-Clean.css">

</head>

<body>
Expand Down
15 changes: 4 additions & 11 deletions blogs/4_open_functions.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,10 @@
<title>OpenFunctions</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro">
<link rel="stylesheet" href="assets/css/Highlight-Clean.css">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/Team-Clean.css">
<style>
/* Bars to separate titles in nav bar */
.navbar a:not(:last-child)::after {
content: "|";
margin: 0 10px;
color: #000;
}
</style>
<link rel="stylesheet" href="../assets/css/Highlight-Clean.css">
<link rel="stylesheet" href="../assets/css/styles.css">
<link rel="stylesheet" href="../assets/css/Team-Clean.css">

</head>

<body>
Expand Down
Loading

0 comments on commit 95875a8

Please sign in to comment.