mirror of
https://github.com/tjsga/website-2018.git
synced 2025-04-09 22:10:18 -04:00
08/05/2018 Push #1: News on index fix
This commit is contained in:
parent
9010ed6f86
commit
228c1bcd9e
|
@ -20,7 +20,7 @@ hbs.registerHelper('listFirstThree', function (context, options) {
|
|||
return ret
|
||||
})
|
||||
hbs.registerHelper('firstSentences', function (context) {
|
||||
return context.toString().split('.').slice(0, 1).join('.')
|
||||
return context[0].para.toString()
|
||||
})
|
||||
hbs.registerHelper('first3Sentences', function (context) {
|
||||
return context.toString().split('.').slice(0, 3).join('.')
|
||||
|
|
10
site.json
10
site.json
|
@ -64,8 +64,14 @@
|
|||
"title": "Welcome to the new SGA Website",
|
||||
"url": "news/0",
|
||||
"img": "resources/news-1.png",
|
||||
"content": "<p class='big-news-para'>Welcome to the new TJHSST Student Government Association Website, where you can find information encompassing all aspects of the TJSGA! Every year, four new SGA officers are elected: President, Vice President, Secretary, and Treasurer. On the new site you can read a brief background on your student representatives, and find a list of the people serving on the Executive Committee and Class Council. </p><p class='big-news-para'>There is a section for our SGA Mission and Vision Statements as well. These are our goals we hope to accomplish, as representatives of the student body. This section also has a link to a spreadsheet containing a list of SGA’s from previous years for your reference. Along with those, we also provide a link to a google drive folder which includes detailed documents on every SGA or SGA-related meeting and conference during the school year as well as a laid-out agenda of SGA activities.</p><p class='big-news-para'>Do you want to be a part of Student Government; whether it be SGA, ExComm, SAC, or CC? Do you want to see changes made in our school? Do you want to help plan awesome TJ events such as Homecoming, Art Gala, and J-Day? Then apply for student government! Here you can find basic instructions on how to apply for any position on the Student Leadership team.</p><p class='big-news-para'>At the bottom of every page you will be able to find links to several SGA and school provided resources such as the SGA Constitution and the Student-Run TJ website.</p>",
|
||||
"date": "June 22nd, 2018"
|
||||
"content": [{
|
||||
"para": "Welcome to the new TJHSST Student Government Association Website, where you can find information encompassing all aspects of the TJSGA! Every year, four new SGA officers are elected: President, Vice President, Secretary, and Treasurer. On the new site you can read a brief background on your student representatives, and find a list of the people serving on the Executive Committee and Class Council."
|
||||
},{
|
||||
"para": "There is a section for our SGA Mission and Vision Statements as well. These are our goals we hope to accomplish, as representatives of the student body. This section also has a link to a spreadsheet containing a list of SGA’s from previous years for your reference. Along with those, we also provide a link to a google drive folder which includes detailed documents on every SGA or SGA-related meeting and conference during the school year as well as a laid-out agenda of SGA activities."
|
||||
},{
|
||||
"para": "Do you want to be a part of Student Government; whether it be SGA, ExComm, SAC, or CC? Do you want to see changes made in our school? Do you want to help plan awesome TJ events such as Homecoming, Art Gala, and J-Day? Then apply for student government! Here you can find basic instructions on how to apply for any position on the Student Leadership team.</p><p class='big-news-para'>At the bottom of every page you will be able to find links to several SGA and school provided resources such as the SGA Constitution and the Student-Run TJ website."
|
||||
}],
|
||||
"date": "August 6th, 2018"
|
||||
}],
|
||||
"quote": {
|
||||
"text": "“We envision a school where the brightest minds can come together to research, create, and explore, stretching beyond the limits of the classroom in expressing diverse cultures, fostering a sense of community, and creating social impact.”",
|
||||
|
|
|
@ -123,7 +123,7 @@
|
|||
</div>
|
||||
<div class='news-content'>
|
||||
<a href='{{url}}' class='news-title'>{{title}}</a>
|
||||
<p class='news-para'>{{#firstSentences content}}{{/firstSentences}}.</p>
|
||||
<p class='news-para'>{{#firstSentences content}}{{/firstSentences}}</p>
|
||||
<a href='{{url}}' class='news-read-more'>Read More →</a>
|
||||
<p class='news-date'>{{date}}</p>
|
||||
</div>
|
||||
|
|
|
@ -108,7 +108,11 @@
|
|||
<img src='{{img}}'/>
|
||||
</div>
|
||||
<div class='news-content'>
|
||||
<p class='big-news-para'>{{#first3Sentences content}}{{/first3Sentences}}.</p>
|
||||
{{#each content}}
|
||||
{{#if (eq @index 0)}}
|
||||
<p class='big-news-para'>{{para}}</p>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
<a href='{{url}}' class='big-news-read-more'>Read More →</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -104,7 +104,9 @@
|
|||
<a href='https://sga.tjhsst.edu/{{url}}' class='big-news-title'>{{title}}</a>
|
||||
<p class='big-news-date'>{{date}}</p>
|
||||
<div class='news-content'>
|
||||
{{{content}}}
|
||||
{{#each content}}
|
||||
<p class='big-news-para'>{{para}}</p>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
Loading…
Reference in New Issue
Block a user