Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Researcher2 #3

Merged
merged 11 commits into from
Jan 28, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Merge blog into main build."
This reverts commit 8eb5516.
  • Loading branch information
researcher2 committed Jan 26, 2021
commit d1e43f5d4d3f9b031d3077d8d1cc5677416a2ca2
3 changes: 2 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ publishDir = "public"
logo="EleutherAI"
logo_image_url="images/eai_logo.png"
contact_mail="[email protected]"
site_type="website"
[menu]
[[menu.main]]
name = "Home"
Expand All @@ -19,7 +20,7 @@ publishDir = "public"
weight = 2
[[menu.main]]
name = "Blog"
url = "/blog-posts"
url = "https://eleuther.ai/eleuther-blog/"
weight = 3
[[menu.main]]
name = "Publications"
Expand Down
10 changes: 0 additions & 10 deletions content/blog-posts/welcome-to-eleutherai.md

This file was deleted.

6 changes: 5 additions & 1 deletion themes/eai-theme/layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{{ define "main" }}
{{- partial "home.html" . -}}
{{ if eq .Site.Params.site_type "blog" }}
{{- partial "home-blog.html" . -}}
{{ else }}
{{- partial "home.html" . -}}
{{ end }}
{{ end }}
15 changes: 15 additions & 0 deletions themes/eai-theme/layouts/partials/home-blog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<div class="main-container">
<div class="content-wrapper">
<div class="grid-1-1">
<div class="page-content">
<h2>Blog</h2>
{{ range .Site.RegularPages }}
<ul class="project-section">
<li><a href="{{ .Permalink }}">{{.Name}}</li>
</ul>
{{ end }}
</div>
</div>

</div>
</div>