diff --git a/server.js b/server.js index aeff979..34f5a92 100644 --- a/server.js +++ b/server.js @@ -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('.') diff --git a/site.json b/site.json index 756c437..473698d 100644 --- a/site.json +++ b/site.json @@ -64,8 +64,14 @@ "title": "Welcome to the new SGA Website", "url": "news/0", "img": "resources/news-1.png", - "content": "

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.

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.

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.

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": "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.

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.”", diff --git a/views/index.hbs b/views/index.hbs index 90f881a..6bfe496 100644 --- a/views/index.hbs +++ b/views/index.hbs @@ -123,7 +123,7 @@

{{title}} -

{{#firstSentences content}}{{/firstSentences}}.

+

{{#firstSentences content}}{{/firstSentences}}

Read More →

{{date}}

diff --git a/views/news.hbs b/views/news.hbs index e396918..9223399 100644 --- a/views/news.hbs +++ b/views/news.hbs @@ -108,7 +108,11 @@
-

{{#first3Sentences content}}{{/first3Sentences}}.

+ {{#each content}} + {{#if (eq @index 0)}} +

{{para}}

+ {{/if}} + {{/each}} Read More →
diff --git a/views/newsArticle.hbs b/views/newsArticle.hbs index 13c5912..9cddd21 100644 --- a/views/newsArticle.hbs +++ b/views/newsArticle.hbs @@ -104,7 +104,9 @@ {{title}}

{{date}}

- {{{content}}} + {{#each content}} +

{{para}}

+ {{/each}}