<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>@Summitt Dweller’s Personal Blog - Announcement</title>
    <link>https://blog.summittdweller.com/tags/announcement/</link>
    <description>All entries in Announcement on Personal Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    
    <lastBuildDate>Sun, 13 Sep 2020 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.summittdweller.com/tags/announcement/" rel="self" type="application/rss+xml" />
    
      
      <item>
        <title>New Announcement Feature</title>
        <link>https://blog.summittdweller.com/posts/2020/09/new-announcement-feature/</link>
        <pubDate>Sun, 13 Sep 2020 00:00:00 +0000</pubDate>
        <author>Mark McFate</author>
        <guid>https://blog.summittdweller.com/posts/2020/09/new-announcement-feature/</guid>
        <description>&lt;p&gt;Quite some time ago I added an &lt;strong&gt;Announcement&lt;/strong&gt; feature to the &lt;a href=&#34;https://rootstalk.grinnell.edu&#34;&gt;Rootstalk&lt;/a&gt; website that I helped design and maintain for &lt;a href=&#34;https://grinnell.edu&#34;&gt;Grinnell College&lt;/a&gt;. Events of the past week have driven me to implement this feature as part of this blog and one other site, with some minor improvements.&lt;/p&gt;
&lt;p&gt;The original &lt;a href=&#34;https://rootstalk.grinnell.edu&#34;&gt;Rootstalk&lt;/a&gt; version of the feature is very simple, it works around this logic:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The site&amp;rsquo;s &lt;code&gt;content/_index.html&lt;/code&gt; page invokes a shortcode named &lt;code&gt;announcement.html&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;announcement.html&lt;/code&gt; shortcode checks for existence of a file path of &lt;code&gt;static/announcement.md&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If the &lt;code&gt;static/announcement.md&lt;/code&gt; file exists, its &lt;em&gt;markdown&lt;/em&gt; content is read and displayed prominently on the home page.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Removing or disabling the announcement is as simple as deleting the file, or simply changing the filename to something like &lt;code&gt;static/.announcement.md&lt;/code&gt;, and republishing the site.&lt;/p&gt;
&lt;h2 id=&#34;implemented-for-the-compass-rose-band&#34;&gt;Implemented for the Compass Rose Band&lt;/h2&gt;
&lt;p&gt;My brother-in-law, the founder and lead-singer for the &lt;a href=&#34;https://compassroseband.net&#34;&gt;Compass Rose Band&lt;/a&gt;, out of greater metropolitan Cedar Rapids, fell ill, and literally fell down the stairs, on Thursday evening, September 10, 2020.  Since my daughter publishes the aforementioned &lt;a href=&#34;https://compassroseband.net&#34;&gt;CRB&lt;/a&gt; website, we wanted to alert their fans that the show set for Friday evening, September 11, would be canceled. We immediately thought of the &lt;a href=&#34;https://rootstalk.grinnell.edu&#34;&gt;Rootstalk&lt;/a&gt; &lt;strong&gt;Announcement&lt;/strong&gt; feature and subsequently implemented it for the &lt;a href=&#34;https://compassroseband.net&#34;&gt;CRB&lt;/a&gt; site.&lt;/p&gt;
&lt;p&gt;In the case of &lt;a href=&#34;https://compassroseband.net&#34;&gt;CRB&lt;/a&gt; the feature is implemented just a little differently:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Instead of a shortcode the &lt;code&gt;layouts/index.html&lt;/code&gt; file includes a new block of code that looks for a file named &lt;code&gt;content/announcement.md&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If the file exists, its &lt;em&gt;markdown&lt;/em&gt; content is prominently displayed with an orange border near the top of the home page.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Removing or disabling the announcement is just like in &lt;a href=&#34;https://rootstalk.grinnell.edu&#34;&gt;Rootstalk&lt;/a&gt;, we delete or change the filename to something like &lt;code&gt;content/.announcement.md&lt;/code&gt;, and republish the site.&lt;/p&gt;
&lt;h2 id=&#34;implemented-here-in-this-blog&#34;&gt;Implemented Here In This blog&lt;/h2&gt;
&lt;p&gt;Since I&amp;rsquo;m essentially documenting the new feature here, I thought it only prudent to also implement it here, and that implementation is currently &lt;strong&gt;identical&lt;/strong&gt; to what we did for the &lt;a href=&#34;https://compassroseband.net&#34;&gt;CRB&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;So watch the top of this blog&amp;rsquo;s home for prominent announcements in the future, hopefully none that report dire emergencies. &amp;#x1f603;&lt;/p&gt;
&lt;p&gt;That&amp;rsquo;s a warp. Until next time&amp;hellip;&lt;/p&gt;</description>
      </item>
      
    
  </channel>
</rss>
