Skip to content

Commit

Permalink
New footer
Browse files Browse the repository at this point in the history
  • Loading branch information
CorganMaillet committed Oct 1, 2024
1 parent 1a6dfc7 commit 584f082
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 24 deletions.
2 changes: 1 addition & 1 deletion _data/copy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
global:
- about: "<b>We are the Northwest Arkansas chapter of Democratic Socialists of America (DSA).</b> Democratic socialists believe both the economy and society should be run democratically to meet human needs, not to make profits for the wealthy."
- about: "<b>We are the Northwest Arkansas chapter of Democratic Socialists of America (DSA).</b> Our goal is to help each other and create a society that is more fair and equal than what we see today. Democratic Socialists want to focus their help to those in need and heed the call for peace around the world. Capitalism is a system designed by the owning class to exploit the rest of us for their own profit. We must replace it with democratic socialism, a system where ordinary people have a real voice in our workplaces, neighborhoods, and society."
- welcome: "Welcome to Northwest Arkansas DSA!"
- welcome-image: ""
12 changes: 6 additions & 6 deletions _data/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ footer:
- label: "Instagram"
icon: "fab fa-fw fa-instagram"
url: "https://www.instagram.com/nwadsa/"
- label: "GitHub"
icon: "fab fa-fw fa-github"
url: "https://github.com/dsa-ntc"
- label: "Email"
icon: "fa fa-envelope"
url: "mailto:nwademsoc@gmail.com"
- feed:
- label: "Sitemap"
- ardsa:
- label: "Central Arkansas DSA"
icon: "fas fa-sitemap"
url: "/sitemap.xml"
- label: "RSS"
- label: "Fort Smith DSA"
icon: "fas fa-fw fa-rss-square"
url: "/feed.xml"
- label: "Northwest Arkansas DSA"
icon: "fas fa-fw fa-rss-square"
url: "/feed.xml"
7 changes: 0 additions & 7 deletions _data/social.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ instagram: &instagram
url: "https://www.instagram.com/nwadsa/"
username: nwadsa

github: &github
label: "GitHub"
icon: "fab fa-fw fa-github"
url: "https://github.com/dsa-ntc"
username: dsa-ntc

email: &email
label: "Email"
icon: "fa fa-envelope"
Expand All @@ -36,7 +30,6 @@ footer:
- *facebook
- *twitter
- *instagram
- *github
- *email

# This list appears in the dropdown of every blog post
Expand Down
22 changes: 12 additions & 10 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
{% assign owner = site.data.nav.footer[0] %}
{% assign social = site.data.nav.footer[1] %}
{% assign feed = site.data.nav.footer[2] %}
{% assign ardsa = site.data.nav.footer[2] %}
{% assign about = site.data.copy.global[0] %}

<footer class="page-footer">
<div class="page-footer-owner">
<div class="container">
<div class="row my-3">
<div class="col-md-12">
<h2>{{ owner.owner }} <span class="float-right">🌹</span></h1>
</div>
</div>
<div class="row my-3">
<div class="col-md-8 col-sm-12">
<div class="col-md-6 col-sm-12">
<p class="my-3">{{ about.about }}</p>
</div>
<div class="col-md-2 col-sm-12">
Expand All @@ -31,15 +26,22 @@ <h4 class="text-red m-0">Socials</h3>
</ul>
</div>
<div class="col-md-2 col-sm-12">
<h4 class="text-red m-0">Sitemap</h3>
<h4 class="text-red m-0">Arkansas DSA</h3>
<ul class="my-3">
{% for fd_link in feed.feed %}
{% for fd_link in ardsa.ardsa %}
<li>
<i class="{{ fd_link.icon }}"></i> <a href="{{ fd_link.url | relative_url }}">{{ fd_link.label }}</a>
{% if fd_link.url %}
<i class="{{ fd_link.icon }}"></i><a href="{{ fd_link.url }}" target="_blank">{{ fd_link.label }}</a>
{% else %}
<strong>{{ fd_link.label }}</strong>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<div class="col-md-2 col-sm-12">

</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 584f082

Please sign in to comment.