Changes for page 生徒会Wiki
Last modified by Super Admin on 2026/04/01 16:27
From version
40.1
edited by Super Admin
on 2026/03/22 19:10
on 2026/03/22 19:10
Change comment:
There is no comment for this version
To version
42.1
edited by Super Admin
on 2026/03/24 17:20
on 2026/03/24 17:20
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -2,6 +2,25 @@ 2 2 ## ユーザーごとに異なるコンテンツ(ゲストCTA等)があるためキャッシュ無効化 3 3 #set($discard = $xcontext.put('rendering.cache.disabled', true)) 4 4 {{html clean="false"}} 5 +<script> 6 +// OGPメタタグ(トップページ) 7 +(function() { 8 + var tags = [ 9 + ['og:title', '生徒会Wiki — 全国の生徒会活動を共有するプラットフォーム'], 10 + ['og:description', '全国の高校・中学校の生徒会活動事例を集積・共有するWiki。学校ごとの活動報告、組織情報、校則見直し事例などを閲覧できます。'], 11 + ['og:type', 'website'], 12 + ['og:url', location.href], 13 + ['og:site_name', '生徒会Wiki'], 14 + ['twitter:card', 'summary'] 15 + ]; 16 + tags.forEach(function(t) { 17 + var m = document.createElement('meta'); 18 + m.setAttribute(t[0] === 'twitter:card' ? 'name' : 'property', t[0]); 19 + m.setAttribute('content', t[1]); 20 + document.head.appendChild(m); 21 + }); 22 +})(); 23 +</script> 5 5 ## メンテナンスバナー(インラインで記述し、<p>タグ挿入を回避) 6 6 #set($bannerDoc = $xwiki.getDocument('SeitokaiAdmin.MaintenanceBanner')) 7 7 #set($bannerObj = $bannerDoc.getObject('SeitokaiCode.MaintenanceBannerClass')) ... ... @@ -58,6 +58,12 @@ 58 58 <div class="home-card-desc">あなたの学校のページを新規作成</div> 59 59 </a> 60 60 80 + <a href="$xwiki.getURL('SeitokaiCode.UserGuide', 'view')" class="home-card"> 81 + <div class="home-card-icon"><svg class="ico" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 015.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg></div> 82 + <div class="home-card-title">はじめての方へ</div> 83 + <div class="home-card-desc">使い方をステップで紹介</div> 84 + </a> 85 + 61 61 <a href="$xwiki.getURL('SeitokaiCode.Guidelines', 'view')" class="home-card"> 62 62 <div class="home-card-icon"><svg class="ico" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/></svg></div> 63 63 <div class="home-card-title">ガイドライン</div>