Skip to content

Add blogtastic theme #10

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

Merged
merged 4 commits into from
Jul 11, 2022
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
Added dynamic content to blogtastic theme, emulating Medium
  • Loading branch information
anuran-roy committed Jul 11, 2022
commit 329998cffd9a498d679f2d4c562d9c680246462e
68 changes: 25 additions & 43 deletions fossfolio/templates/blogtastic/base/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,16 @@
>
{% block navbar %}
<div
class="h-screen overflow-hidden justify-center flex flex-col text-center col-span-1"
class="h-100 overflow-hidden justify-center flex flex-col text-center col-span-1"
>
<a
class="m-2 py-2 hover:bg-gray-800 hover:text-white rounded-md"
id="link1"
href="/link1"
>Link 1</a
>
<a
class="m-2 py-2 hover:bg-gray-800 hover:text-white rounded-md"
id="link2"
href="/link2"
>Link 2</a
>
<a
class="m-2 py-2 hover:bg-gray-800 hover:text-white rounded-md"
id="link3"
href="/link3"
>Link 3</a
>
<a
class="m-2 py-2 hover:bg-gray-800 hover:text-white rounded-md"
id="link4"
href="/link4"
>Link 4</a
>
{% for i in links %}
<a
class="m-2 py-2 hover:bg-gray-800 hover:text-white rounded-md"
id="{{ i }}"
href="{{ links[i] }}"
>{{ i }}</a
>
{% endfor %}
</div>
{% endblock %}
<div class="border-r-2 border-l-2 col-span-7 overflow-y-scroll" id="content">
Expand All @@ -51,26 +35,24 @@
</div>
{% block meta %}
<div
class="sticky top-0 bottom-0 h-screen justify-center flex flex-col col-span-2 text-center m-3"
class="sticky top-0 bottom-0 h-screen justify-center content-center align-center object-center flex flex-col col-span-2 text-center m-3"
id="meta"
>
<p>{{ meta }}</p>
<p class="flex flex-col">
<a
class="m-2 py-2 hover:bg-gray-800 hover:text-white rounded-md"
href="{{ github }}"
>Github</a
>
<a
class="m-2 py-2 hover:bg-gray-800 hover:text-white rounded-md"
href="{{ twitter }}"
>Twitter</a
>
<a
class="m-2 py-2 hover:bg-gray-800 hover:text-white rounded-md"
href="{{ linkedin }}"
>LinkedIn</a
>
<p class="flex justify-center items-center flex-col">
<img src="{{ about_pic_source }}" alt="Author Picture" class="rounded-full py-5 my-5" width="30%">
<div class="text-2xl text-center font-bold">
About
</div>
{{ about }}
</p>
<p class="flex flex-col lg:columns-3 columns-1 py-5 my-5">
{% for i in socials %}
<a
class="m-2 py-2 hover:bg-gray-800 hover:text-white rounded-md"
href="{{ socials[i] }}"
>{{ i }}</a
>
{% endfor %}
</p>
</div>
{% endblock %}
Expand Down
21 changes: 21 additions & 0 deletions fossfolio/templates/blogtastic/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
links:
Home: "/"
Posts: "/posts"
About : "/intro"
Sitemap: "/sitemap.xml"
about: "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Accusantium, accusamus
explicabo a veritatis culpa, expedita quos illo quibusdam earum mollitia
molestiae ducimus sed sunt sit. Magnam earum quia est a iure voluptatem eligendi
excepturi placeat facilis. Quaerat explicabo omnis consequatur officiis amet
fugiat laboriosam quibusdam. Voluptatem obcaecati quos minus nostrum voluptatum
accusantium sequi, aliquam repellendus, recusandae mollitia esse consequatur
quidem. Vero impedit natus accusamus nobis blanditiis rerum quo corporis
necessitatibus dolores recusandae iusto, temporibus a itaque obcaecati quisquam
illo alias cum. Quibusdam odio porro officia, eos magnam eligendi sit voluptate
rerum ipsam cum perspiciatis deleniti saepe reiciendis quam blanditiis iure!
"
about_pic_source: "https://pbs.twimg.com/profile_images/1421779872364564482/vZljyGHa_400x400.jpg"
socials:
GitHub: http://github.com/fossworx-labs/
LinkedIn: http://www.linkedin.com/in/anuran-roy/
Twitter: http://twitter.com/AnuranRoy