Skip to content

Commit

Permalink
Merge pull request #13 from chakru-r/master
Browse files Browse the repository at this point in the history
Refactor site to remove jekyll-bootstrap, use midnight theme
  • Loading branch information
hrj authored Feb 29, 2024
2 parents 72e60fe + d8f5f14 commit 66e4835
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 96 deletions.
78 changes: 3 additions & 75 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,79 +24,7 @@ author :
#
production_url : http://bas-org.github.io

# All Jekyll-Bootstrap specific configurations are namespaced into this hash
#
JB :
version : 0.3.0

# All links will be namespaced by BASE_PATH if defined.
# Links in your website should always be prefixed with {{BASE_PATH}}
# however this value will be dynamically changed depending on your deployment situation.
#
# CNAME (http://yourcustomdomain.com)
# DO NOT SET BASE_PATH
# (urls will be prefixed with "/" and work relatively)
#
# GitHub Pages (http://username.github.io)
# DO NOT SET BASE_PATH
# (urls will be prefixed with "/" and work relatively)
#
# GitHub Project Pages (http://username.github.io/project-name)
#
# A GitHub Project site exists in the `gh-pages` branch of one of your repositories.
# REQUIRED! Set BASE_PATH to: http://username.github.io/project-name
#
# CAUTION:
# - When in Localhost, your site will run from root "/" regardless of BASE_PATH
# - Only the following values are falsy: ["", null, false]
# - When setting BASE_PATH it must be a valid url.
# This means always setting the protocol (http|https) or prefixing with "/"
BASE_PATH : false

# By default, the asset_path is automatically defined relative to BASE_PATH plus the enabled theme.
# ex: [BASE_PATH]/assets/themes/[THEME-NAME]
#
# Override this by defining an absolute path to assets here.
# ex:
# http://s3.amazonaws.com/yoursite/themes/watermelon
# /assets
#
ASSET_PATH : false

# These paths are to the main pages Jekyll-Bootstrap ships with.
# Some JB helpers refer to these paths; change them here if needed.
#
archive_path: /archive.html
categories_path : /categories.html
tags_path : /tags.html
atom_path : /atom.xml
rss_path : /rss.xml
remote_theme: pages-themes/[email protected]
plugins:
- jekyll-remote-theme # add this line to the plugins list if you already have one

# Settings for comments helper
# Set 'provider' to the comment provider you want to use.
# Set 'provider' to false to turn commenting off globally.
#
comments :
provider : disqus
disqus :
short_name : jekyllbootstrap

# Settings for sharing helper.
# Sharing is for things like tweet, plusone, like, reddit buttons etc.
# Set 'provider' to the sharing provider you want to use.
# Set 'provider' to false to turn sharing off globally.
#
sharing :
provider : false

# Settings for all other include helpers can be defined by creating
# a hash with key named for the given helper. ex:
#
# pages_list :
# provider : "custom"
#
# Setting any helper's provider to 'custom' will bypass the helper code
# and include your custom code. Your custom file must be defined at:
# ./_includes/custom/[HELPER]
# where [HELPER] is the name of the helper you are overriding.

34 changes: 28 additions & 6 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
---
theme :
name : bootstrap
---
{% include JB/setup %}
{% include themes/bootstrap/default.html %}
<!doctype html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

{% seo %}
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script src="{{ '/assets/js/respond.js' | relative_url }}"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="{{ '/assets/css/ie.css' | relative_url }}">
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
{% include head-custom.html %}
</head>
<body>

<div class="wrapper">
<section>
{{ content }}
</section>
</div>
</body>
</html>
9 changes: 7 additions & 2 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---
layout: default
---
{% include JB/setup %}
{% include themes/bootstrap/page.html %}
<div class="page-header">
<h1>{{ page.title }} {% if page.tagline %} <small>{{ page.tagline }}</small>{% endif %}</h1>
</div>

<div class="wrapper">
{{ content }}
</div>
10 changes: 8 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
---
layout: default
---
{% include JB/setup %}
{% include themes/bootstrap/post.html %}
<div class="page-header">
<h1>{% if page.tagline %}{{ page.tagline }}{%else%}{{pge.title}} {% endif %}</h1>
</div>

<div class="wrapper">
{{ content }}
</div>

2 changes: 1 addition & 1 deletion _posts/2015-11-12-beginning-with-binoculars.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ category : article
tagline: "Binocular Stargazing for Beginners"
tags : [intro, beginner, binoculars]
---
{% include JB/setup %}


## Stargazing with Binoculars
Karthik Subramanian, karthik !remove spaces! 301176 !+! bas !AT! gmail !DOT! com
Expand Down
2 changes: 1 addition & 1 deletion _posts/2015-11-27-buying-a-telescope.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ category : article
tagline: "Buying a Telescope"
tags : [beginner, intro]
---
{% include JB/setup %}


## Opinionated Guide to Buying Telescopes
Karthik Subramanian, karthik !remove spaces! 301176 !+! bas !AT! gmail !DOT! com
Expand Down
2 changes: 1 addition & 1 deletion _posts/2015-11-27-do-it-yourself-dew-heater.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ category : article
tagline: "DIY Dew Heater (Sanath)"
tags : [diy]
---
{% include JB/setup %}


## A Do-It-Yourself Dew Heater (Courtesy Sanath)

Expand Down
2 changes: 1 addition & 1 deletion _posts/2024-02-26-Challakere-event.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tagline: "BAS Challakere Event "
tags : [Public Outreach]
---

{% include JB/setup %}


## Challakere Stargazing event by Bangalore Astronomical Society
As a part of the public outreach, BAS conducted a public outreach program at Sri Venketeshwara Rural High School on 24th February,2024 evening at Challakere,Karnataka.
Expand Down
2 changes: 1 addition & 1 deletion atom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: nil
layout: null
title : Atom Feed
---
<?xml version="1.0" encoding="utf-8"?>
Expand Down
4 changes: 2 additions & 2 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: page
title: The Bangalore Astronomical Society
tagline:
---
{% include JB/setup %}


Welcome to the Bangalore Astronomical Society.

Expand Down Expand Up @@ -41,7 +41,7 @@ BAS also conducted a session on astrophotography at Amrita Institute of Technolo

BAS conducted an outreach program for school children at Sri Venketeshwara Rural High School on
24th February,2024 evening at Challakere,Karnataka. Pictures and a general description will be updated soon.
[Link to Challakere event page](/_posts/2024-02-26-Challakere-event.markdown)
[Link to Challakere event page]({% link _posts/2024-02-26-Challakere-event.markdown %})

BAS participated at IIA's koramangala branch for National Science Day on Sunday,25th February,2024.
An update with pictures from the event will be updated here soon.
Expand Down
12 changes: 9 additions & 3 deletions pages.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@
header: Pages
group: navigation
---
{% include JB/setup %}

<h2>All Pages</h2>
<ul>
{% assign pages_list = site.pages %}
{% include JB/pages_list %}
{% for page in site.pages %}
<h2>
<a href="{{ page.url }}">
{{ page.title }}
</a>
</h2>

{% endfor %}

</ul>
2 changes: 1 addition & 1 deletion rss.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: nil
layout: null
title : RSS Feed
---

Expand Down

0 comments on commit 66e4835

Please sign in to comment.